Skip to content

qw/2048-neat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2048-neat (WIP)

Uses https://neat-python.readthedocs.io/en/latest/ to explore what Neural Evolving Augmenting Topologies (NEAT) could do with 2048.

evolve_2048.py contains the fitness function.

The aim of this project is to experience NEAT in action and explore things such as how difference fitness functions improves optimization while staying general (i.e. not specifically telling the neural net of what's good and bad). Note that NEAT is not particularly the best approach to solve an optimal solution for the game 2048 (See: this Stack Overflow post on Expectimax).

Some examples of general vs non-general (but better performing) fitness functions are:

  • f(x) = Score, the most general.
  • f(x) = Score * Highest Tile, here the importance of obtaining higher tiles is explicit.
  • f(x) = Score * x, where x is a multiplier when the game ends with two equal tiles adjacent to each other.

Average fitness after 50 generations

Average fitness after 50 generations

The A.I. training in generation #9 The A.I. training in generation #9

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published