Skip to content

Latest commit

 

History

History
31 lines (18 loc) · 1.13 KB

README.md

File metadata and controls

31 lines (18 loc) · 1.13 KB

2048 AI Player

This is a work in progress project aimed at developing an AI player for the popular 2048 game. Currently, the game part is ready and can be played by running the command in the terminal python3 game/play.py.

It is developed using Python3 and the Pygame library for the game interface. The AI player is developed using the Gynasium and Numpy libraries.

Installation

To install the necessary dependencies, use the following command:

pip install -r requirements.txt

Training the Model

The model training is ready and can be initiated by running the following command:

python3 ai/train.py

In the ai/train.py file, you can adjust the timesteps parameter in the agent.train(timesteps=100000) function to define the number of training iterations for the model.

Future Work

  • TODO: Implement showing the interface playing from the trained model.

  • TODO: Create a Dockerfile to set up the entire environment needed to run the project locally.

  • TODO: Add animations to the game interface.