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

Connect4

Play a game of Connect4 against Artificial Intelligence!

API KEY REQURIED

POST /connect4

- ai (REQUIRED): Specifies ("🔴" or "🟡") 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 42 elements.

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

CODE 200: (OBJECT)

{ 
    "status": "success", 
    "updatedboard": "['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '🔴', '', '', '', '', '', '', '', '', '', '', '', '', '']" 
}

CODE 400: (OBJECT)

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

PreviousLevel SystemNextTic-Tac-Toe

Last updated 1 year ago

2ī¸âƒŖ
Page cover image