Skip to content

akshat-rawat/2048

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2048

2048 Game built using tkinter. The game comes with integrated AI which uses the Monte Carlo Tree Search algorithm to find the best possible move at any given step.

2048

How to play:

  • Make sure you have tkinter module.
      pip install tk
  • Clone this repository.
      git clone https://github.com/akshat-rawat/2048.git
  • Start the game and use “a”, “w”, “s” and “d” keys to move tiles left, up, down and right respectively.
      python main.py
  • Get to 2048 and you win.
  • However, you can also fire up the AI to solve the game for you.
  • Just click the “i” key and the AI will start right up.

File description

  • constants.py initializes required constants.
  • ai_logic.py implements MCTS for AI.
  • logic.py contains the functionality of the game.
  • main.py compiles of all the module and frontend for the game.

About

2048 game with integrated AI.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages