Skip to content

pSapien/tic-tac-toe

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 63.3%
  • CSS 17.9%
  • JavaScript 14.0%
  • HTML 4.8%