Downloads · 30 days
0
dalyk34/noughts
noughts is a machine learning model from dalyk34. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
This is a simple API for playing Tic-Tac-Toe using Python and Flask.
Downloads · 30 days
0
Access
Public
Updated Nov 14, 2024
Repo size
—
Likes
0
Public
Click a slice to open those files.
.py1.9 KB · 39%
From the Hugging Face model README
This is a simple API for playing Tic-Tac-Toe using Python and Flask.
POST /make_move: Makes a move on the board.
{
"move": <int>, # 0 to 8, representing a cell on the 3x3 board
"player": "<str>" # 'X' or 'O'
}
{
"board": [[<row1>], [<row2>], [<row3>]],
"message": "Move successful."
}
GET /get_board: Returns the current state of the board.
{
"board": [[<row1>], [<row2>], [<row3>]]
}
pip install -r requirements.txt