Skip to content

abdualrhman/2048-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages