Skip to content

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Get started

Navigate to the project forlder and run the program by typing:

python3 boardManeger.py

Adjusting the expectimax algorithm depth

The default depth of the algorithm is 5 if there are 5 or more empty cells, otherwise 6. The depth can be adjusted in the aotumate() frunction in boardManeger.py

Adjusting the heuristic function

The heuristic function is implemetented using matrix wieght, and it prioritize moves that merges cells upwards and towards the corner. It can be adjusted in the getScore() function in ai.py.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages