https://github.com/frioux/tic-toc
https://github.com/frioux/tic-toc
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/frioux/tic-toc
- Owner: frioux
- Created: 2015-03-24T00:03:14.000Z (about 10 years ago)
- Default Branch: main
- Last Pushed: 2020-06-13T18:26:19.000Z (almost 5 years ago)
- Last Synced: 2025-02-04T17:24:22.561Z (4 months ago)
- Language: Perl
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TicTacToe for EML code review
## URL API
* create new game: `POST /`, new game will be accessible via Location header
* make move: `PUT $location` x=y=
* query state: `GET $location`## DB Layout
* Games (id)
* Moves (id, game_id, x, y, player, timestamp)## Usage
* `plackup -Ilib -p 3001`
* `curl -v -X POST http://localhost:3001/`
* `curl -v -X PUT http://lcoalhost:3001/$foo` -d 'x=0&y=0'
* `curl http://localhost:3001/$foo`