Downloads · 30 days
0
mishasamin/alphazero-quoridor
alphazero-quoridor is a reinforcement learning model from mishasamin. Use it for the reinforcement learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
0
Access
Public
Updated Aug 25, 2023
Repo size
2.8 GB
Likes
2
Public
Click a slice to open those files.
.tar2.8 GB · 100%
From the Hugging Face model README
Based on the framework provided here.
To start training, modify parameters in main.py and then start using
python main.py

Once you're done training, you need to modify pit.py to create one NN player, pointing it to your best.pth.tar and a human player.
During the game, you have a choice of ten actions:
u (up)d (down)r (right)l (left)ur, ul, dr, dlIn order to place walls, you type h (for horizontal wall) or v (for vertical wall), press enter followed by x y of where you want the wall to be placed.