bcorfman / pettingzoo-classicenvs

PettingZoo ConnectFour and TicTacToe examples, configured with Rye as dependency manager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PettingZoo-ClassicEnvs

PettingZoo ConnectFour and TicTacToe examples, configured with Rye as dependency manager. Tested with MacOS Sonoma and Ubuntu on WSL2.

Prerequisites

  • At a command prompt in the project directory, type make devinstall to set up Rye with the appropriate Python version plus the project-level dependencies in development mode, or just make install to set up the code as runnable only.

To run the examples

  • At a command prompt in the project directory, type make run.
  • The first time through, the RL model will be trained and then saved to disk. After that, the trained model will be loaded from disk before evaluation.
  • If retraining is desired, delete the model .zip files from the project directory.

Notes for Visual Studio Code users

  • I've included some extension recommendations that can make your development easier.
  • These recommendations will pop up when opening the project inside VSCode.
  • Installing both extensions will
    • Use the code in settings.json to run make format and make lint on each File:Save.
    • Display available Make targets within the Makefile Tasks sidebar pane and allow them to be run with a mouse click.

About

PettingZoo ConnectFour and TicTacToe examples, configured with Rye as dependency manager

License:MIT License


Languages

Language:Python 92.9%Language:Makefile 7.1%