An AI that solves the Rotating Arrow Game, using Keras Core
Guide to installing repository and required packages
- Python 3.12.7
- Project will not work on Python 3.13
- Single command that installs project. Requires Python 3.12.7
-
Linux
git clone https://github.com/EricL521/Rotating-Arrow-Game-AI.git && cd Rotating-Arrow-Game-AI && python -m venv .venv && source .venv/bin/activate && pip install -r requirements.txt
-
Windows
git clone https://github.com/EricL521/Rotating-Arrow-Game-AI.git && cd Rotating-Arrow-Game-AI && python -m venv .venv && .venv\Scripts\activate && pip install -r requirements.txt
-
-
Clone repository
git clone https://github.com/EricL521/Rotating-Arrow-Game-AI.git
-
Enter newly created folder
cd Rotating-Arrow-Game-AI
-
Create Python virtual environment
python -m venv .venv
-
Activate Python virtual environment
-
Linux
source .venv/bin/activate
-
Windows
.venv\Scripts\activate
-
-
Download packages
pip install -r requirements.txt
Guide to testing model, or training your own
-
Make sure
best_model.keras
is in base directory -
Run
test-ai.py
scriptpython test-ai.py
-
Change
data/config.yaml
if desired -
Generate new data points if needed
python data/generate-data.py
-
Train new model
python train-ai.py
-
Copy
model/best_model.keras
to base directory (i.e.best_model.keras
) to test