From 671801eb1b4f2902763e586a3591694f8fe7303d Mon Sep 17 00:00:00 2001 From: Eduard Prokhorikhin Date: Tue, 16 Apr 2024 18:42:16 +0200 Subject: [PATCH] feat: settup for genetic alg agent --- src/agents/geneticAlgAgent.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/agents/geneticAlgAgent.py 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