Skip to content

Commit

Permalink
feat: settup for genetic alg agent
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduard-Prokhorikhin committed Apr 16, 2024
1 parent 63fab48 commit 671801e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/agents/geneticAlgAgent.py
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 671801e

Please sign in to comment.