Skip to content

EricL521/Rotating-Arrow-Game-AI

Repository files navigation

Rotating-Arrow-Game-AI

An AI that solves the Rotating Arrow Game, using Keras Core

Setup

Guide to installing repository and required packages

Prerequisites

  • Python 3.12.7
    • Project will not work on Python 3.13

Quick Start

  • 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

Manual Installation

  • 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

Testing and Training

Guide to testing model, or training your own

Prerequisites

Testing

  • Make sure best_model.keras is in base directory

  • Run test-ai.py script

    python test-ai.py

Training

  • 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

About

An AI that solves the Rotating Arrow Game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages