TicTacToe Backend
An API to play TicTacToe game.
Created with CodeIgniter Framework
How to run
All config instructions and API parameters are explained in README.md file
Puzzle
You can play either normal TicTacToe game or SuperTicTacToe game.
SuperTicTacToe is only a name I choiced for Ultimate TicTacToe (http://bejofo.net/ttt).
APIs
POST /api/new_game
POST /api/join_game
POST /api/game_status
POST /api/game_mark
Why I made this code?
This code was make to Vanhackathon challenge.
Original proposal:
Back-end challenge: Tic-Tac-Toe API
Hiring for: Back-end developer
Programming language: PHP
Tools to be used: Up to you. Symfony Framework is preferred.
Skills to demonstrate:
- Ability to design & build RESTful APIs
- Good project structure
- Modern PHP practices
- Bonus: Dependency Injection
Objective The goal of this challenge is to build a small RESTful API allowing users to play Tic-Tac-Toe. The API should allow for multiple games to be played simultaneously and should be accessible from any API client (cli/curl, Postman, etc). It should also return proper responses for illegal moves and victory.
Deliver your submission in a .zip file, with instructions on how to run it in a README file. Make sure it can be run as easily as possible.
Bonus Add the possibility to also play Ultimate Tic-Tac-Toe (http://bejofo.net/ttt).
Tools used
WampServer 2.5 64bits
PhpStorm
HeidiSQL
SmartGit
Postman
Log in or sign up for Devpost to join the conversation.