anmolpdl / tic-tac-toe

A simple tic-tac-toe game implementation

Home Page:https://bhoos.github.io/tic-tac-toe/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tic Tac Toe (Sandbox)

Application is available https://bhoos.github.io/tic-tac-toe/

Make sure you run the bot server at http://localhost:7777/play

Payload

The payload would be provided in the following format:

{
  "turn": 3,
  "state": [
    [ "x", "o", ""],
    [ "" , "x", ""],
    [ "" , "" , ""]
  ]
}

Note that the even number turn (0, 2, 4, 8) is for x and odd number turn (1, 3, 5, 7) is for o.

Response

The response is expected in the following format:

{
  "row": 2,
  "col": 2
}

About

A simple tic-tac-toe game implementation

https://bhoos.github.io/tic-tac-toe/

License:MIT License


Languages

Language:Python 42.1%Language:TypeScript 36.6%Language:CSS 10.4%Language:JavaScript 8.1%Language:HTML 2.8%