Skip to content

JoshiMinh/LivingRPS

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Game Icon

LivingRPS

AI-powered Rock-Paper-Scissors simulation — each entity is a DQN agent, hunting its prey and evading its predator. Game Preview

🚀 Requirements

  • Python 3.9+
  • Dependencies from requirements.txt

Install dependencies:

pip install -r requirements.txt

🕹️ Running the Simulation

Quick Start (Windows)

Double-click run.bat to:

  • Check for Python
  • Install dependencies (if needed)
  • Train the model (if weights are missing)
  • Launch the game

Manual Launch

python main.py

🧠 Training the Model (Optional)

A pre-trained model is included at models/rps_agent.pth.

To train a new model from scratch:

python train.py

About

Inspired by a TikTok Account. Idea is not mine, but the implementation is. And this is an improved and refined version from Ethan Schaffer's Github version.

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages

  • Python 94.8%
  • Batchfile 5.2%