PettingZoo ConnectFour and TicTacToe examples, configured with Rye as dependency manager. Tested with MacOS Sonoma and Ubuntu on WSL2.
- 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 justmake install
to set up the code as runnable only.
- 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.
- 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 runmake format
andmake lint
on eachFile:Save
. - Display available Make targets within the Makefile Tasks sidebar pane and allow them to be run with a mouse click.
- Use the code in