https://github.com/bcorfman/pgx-connectfour
PGX - MCTX - JAX ConnectFour example converted to use a browser interface instead of a Jupyter notebook
https://github.com/bcorfman/pgx-connectfour
connect-four jax mcts mctx monte-carlo-tree-search nicegui pgx python rye svg
Last synced: 17 days ago
JSON representation
PGX - MCTX - JAX ConnectFour example converted to use a browser interface instead of a Jupyter notebook
- Host: GitHub
- URL: https://github.com/bcorfman/pgx-connectfour
- Owner: bcorfman
- License: mit
- Created: 2024-06-06T01:38:51.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-28T05:46:35.000Z (about 2 years ago)
- Last Synced: 2024-06-29T04:49:45.848Z (about 2 years ago)
- Topics: connect-four, jax, mcts, mctx, monte-carlo-tree-search, nicegui, pgx, python, rye, svg
- Language: Python
- Homepage:
- Size: 106 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PgxConnectFour
A version of this example game that uses Google's [PGX](https://github.com/sotetsuk/pgx) and [Monte-Carlo Tree Search in JAX](https://github.com/google-deepmind/mctx) to play Connect Four. The [original Jupyter notebook version](https://colab.research.google.com/github/sotetsuk/pgx/blob/main/colab/mcts_connect_four.ipynb#scrollTo=aPYOMRQZamsk) had stopped working over time. I reimplemented it as a real browser-based game using [NiceGUI](https://nicegui.io/).

## To run the game
* At a command prompt, type `make install` to install the [Rye dependency manager](https://rye.astral.sh/) on your system (if needed). After Rye is installed, it will download the supporting Python libraries inside a virtual environment.
* Once the install has completed, type `make run` to launch the game.