A python clone of the game 2048 by Gabriele Cirulli, written to compare the expectimax algorithm agaist a custom neural network.
To use this repository, follow these steps:
Clone the Repository: Clone this repository to your local machine using
git clone https://github.com/TheL0L/2048-Python.git.Optional: Create a Virtual Environment: Make sure you have Python installed on your machine. It's recommended to use a virtual environment to manage dependencies.
- Navigating to the project directory.
- Create a virtual environment using
python -m venv env.
Install Dependencies: Install the project dependencies by running
pip install -r requirements.txt.- In case you're planning on training models, consider installing a version of
torchthat supports GPU usage, you can find more details here.
- In case you're planning on training models, consider installing a version of
Optional: Modify Constants: If desired, you can modify the constants in
constants.pyto customize the game settings according to your preferences.Optional: Modify Agent: You can choose the AI agent to play the game by modifying the
AGENTvariable inapp.py.Run the Application: Start the game by running
app.py.
This project is licensed under the MIT License.