Skip to content

pailoro/2048AiPlayer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages