The TTTM Challenge: The machine-to-machine challenge of tic-tac-toe 🕹️

The tttm is a game of tic-tac-toe played between APIs that players implement themselves.

Rules

  1. Players can use any language and any technology.
  2. The player can submit as many servers as he or she wants.
  3. The player must submit the URL to a server via the PR request to the tttm repository - players.yml.
  4. The player server needs to follow the Player Server Protocol described in this document.
  5. The player server needs to respond in 2 seconds. Otherwise, the opposing server wins the game.
  6. All players and their servers are listed in players.yml.

Notes

Player Server Protocol

The players need to implement an HTTP server that needs to have one endpoint.

The GET /move request

The game server will pass the following URL query parameters to the player server.

Body

The content of the successful response (HTTP status 200) needs to be a string that should have the following structure:

Move:X-2-2

The player server replied by placing the symbol X in position 2,2 in the grid—in this case, the very bottom right.

If, for some reason, the server is unable to reply or parse, please use the following payload structure:

Error:Sorry. Can't do it bro.

Example Player Servers

Why?

Why not? We want to see who can build the universe’s fastest and most “intelligent” APIs for the lolz.

Authors