Skip to content

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

License

Notifications You must be signed in to change notification settings

bcorfman/pettingzoo-classicenvs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.