Tic-Tac-Toe API

This is a simple API for playing Tic-Tac-Toe using Python and Flask.

Endpoints

  • POST /make_move: Makes a move on the board.

    • Request Body:
      {
        "move": <int>,  # 0 to 8, representing a cell on the 3x3 board
        "player": "<str>"  # 'X' or 'O'
      }
      
    • Response:
      {
        "board": [[<row1>], [<row2>], [<row3>]],
        "message": "Move successful."
      }
      
  • GET /get_board: Returns the current state of the board.

    • Response:
      {
        "board": [[<row1>], [<row2>], [<row3>]]
      }
      

Running the Project

  1. Install dependencies:
    pip install -r requirements.txt
    
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model is not currently available via any of the supported Inference Providers.
The model cannot be deployed to the HF Inference API: The model has no library tag.