ReLearn is a project aimed at exploring and understanding how reinforcement learning models work by implementing them in basic games. The platform currently features games like Snake, Tic Tac Toe, and Flappy Bird, allowing users to engage with AI-driven gameplay.
python -m venv rl_env
source rl_env/bin/activate
.\rl_env\Scripts\activate
Once the virtual environment is activated, install the required packages using the requirements.txt
file:
pip install -r requirements.txt
relearn.py
: Main entry point for the ReLearn app. SnakeGame/
: Contains the implementation of the Snake game and related AI. TicTacToeGame/
: Contains the implementation of the Tic Tac Toe game and related AI. FlappyBirdGame/
: Contains the implementation of the Flappy Bird game and related AI. Icons/
: Contains icons used in the game interface. Models/
: Contains the pretrained models for the given games. To start the ReLearn platform, run the following command in your terminal:
python relearn.py
If you prefer not to run the code manually, you can download the pre-compiled executables for Windows and MacOS from the Releases Section of this repository.
Head over to the Releases section and download the version 0.1 files for your operating system.