Jena Project
  • Welcome
  • Changelogs
    • Discord (Jena)
    • Discord (JenTunes)
    • Roblox
  • 2️⃣[V2] Discord
    • Commands
      • Animals
      • Information
    • Welcome to Jena API
      • Authorization
      • Fetch Guide
      • Post Guide
        • Level System
        • Connect4
        • Tic-Tac-Toe
  • 💬[V1] Discord
    • Animals
    • Configuration
    • Economy
    • Fun
    • Info
    • Minigames
    • Moderation
    • Music
    • Utilities
    • Verification
    • Message Apps
      • Translate
  • 🕹️Roblox Games
    • Avatar Paradise
    • Game Hub
Powered by GitBook
On this page
  1. [V2] Discord
  2. Welcome to Jena API
  3. Post Guide

Tic-Tac-Toe

Play a game of Tic Tac Toe against Artificial Intelligence!

API KEY REQURIED

POST /tictactoe

- ai (REQUIRED): Specifies ("x" or "o") of the AI opponent.

- board (REQUIRED): Current state of the board. It is an array of strings, where each string represents a cell on the board. The array needs 9 elements.

- difficulty (REQUIRED): Specifies the difficulty level of the AI opponent. Valid values are "easy", "medium", or "hard".

CODE 200: (OBJECT)

{ 
    "status": "success", 
    "updatedboard": "[ '', '', '', 'o', 'x', '', '', '', '' ]" 
}

CODE 400: (OBJECT)

{ "status": "fatal", "error": "error message" } 

PreviousConnect4NextAnimals

Last updated 1 year ago

2️⃣
Page cover image