diff --git a/src/agents/geneticAlgAgent.py b/src/agents/geneticAlgAgent.py new file mode 100644 index 0000000..83f61a8 --- /dev/null +++ b/src/agents/geneticAlgAgent.py @@ -0,0 +1,7 @@ +# From paper: https://codemyroad.wordpress.com/2013/04/14/tetris-ai-the-near-perfect-player/ +# the weigts the author got: +# a x (Aggregate Height) + b x (Complete Lines) + c x (Holes) + d x (Bumpiness) +# a = -0.510066 b = 0.760666 c = -0.35663 d = -0.184483 +# TODO Read the part of the article about the genetic algorithm +# TODO Create a fitness function +# TODO Create a genetic algorithm based on the \ No newline at end of file