This is the starter code for 2048 AI project hosted by UC Berkeley IEEE Student Branch
- User_game: The traditional one-human-player 2048 game
- AI_game: Run one-AI-player 2048 game
- AI_Move: the basic tile move/merge logic based on 2048 rules
- AI_Minimax: Minimax algorithm for 2048 tree. Max is the AI playing the game, and Min is the computer which generates new 2 or 4 tile randomly
- AI_Heuristics: The heuristics function to rank/compare possible branch grids. This will be used to collect the best possible move in AI_Minimax
This AI is built based on the 2048 pypi package made by user 'quantum'. If you don't have this package on your laptop, run pip install 2048
in your terminal.
Then, in the directory, run py AI_game.py
to test your AI performance.
The GUI will automatically pops up, and AI will start search.