Skip to content

joeyl426/2048

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Genetic algorithm for the game 2048

TO RUN:

  1. Navigate to 2048 directory
  2. javac *.java
  3. java Game

This will run 10 iterations of the following with a new initial population each time (it can take up to 10 mins):

20 generations

- Mutation Probability: 100%
- Population Size: 65
- Tournament Size: 5
- Tree depth: 3-7

These settings can be changed at the top of Breeder.

Results: Initial and final population are printed each run. The best individual of each generation is printed along with its score and max tile. The best individual of each run, and of all 10 runs is also printed.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages