System Online

XO Game API

The backend core system is fully operational. Access the developer portal to interact with all available endpoints, test authentication, and manage tournament features.

View Swagger Docs

🤖 Match vs Bot (Singleplayer)

POST /api/games/bot/start

Initializes a new match against the AI bot. Returns a Match and Game object.

POST /api/games/bot/move/:id

Pass { position: 0-8 } to make a move. The bot will automatically respond. Pass -1 to skip your turn.

👥 Local Match (Offline 1v1)

POST /api/games/local/start

Initializes a new match pairing the logged-in user with a 'Guest' player.

POST /api/games/local/move/:id

Pass { position: 0-8 } to make a move. This endpoint tracks both Player 1 and Player 2 turns seamlessly.