Skip to content

SiddhantAttavar/2048-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2048 AI

This is a algorithm, written in Python, which plays the game 2048. It reaches the 2048 tile about 60% of the time and 1024 tile nearly 100% of the time.

Image

The algorithm is based on the Monte Carlo Tree Search algorithm. At each move, the algorithm performs a number of simulations, each of which is a random game of 2048. The algorithm then selects the move that has the best score.

Prerequisites

  • Python 3+
  • Tkinter

How to run

To run the 2048 algorithm on your system, follow these steps:

  • Clone the repository
  • Open the folder on the terminal / command line
  • Run the following command: python3 main.py

Releases

No releases published

Packages

No packages published

Languages