An open API service indexing awesome lists of open source software.

https://github.com/bcorfman/pettingzoo-classicenvs

PettingZoo ConnectFour and TicTacToe examples, configured with Rye as dependency manager
https://github.com/bcorfman/pettingzoo-classicenvs

gymnasium-environment multi-agent-reinforcement-learning pettingzoo reinforcement-learning rye sb3-contrib stable-baselines3

Last synced: about 1 month ago
JSON representation

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

Awesome Lists containing this project

README

          

# PettingZoo-ClassicEnvs

[PettingZoo](https://pettingzoo.farama.org/) ConnectFour and TicTacToe examples, configured with [Rye](https://rye.astral.sh/) 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.
* [Run On Save](https://marketplace.visualstudio.com/items?itemName=emeraldwalk.RunOnSave)
* [Make support and task provider](https://marketplace.visualstudio.com/items?itemName=carlos-algms.make-task-provider)
* 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.