POST /games
request: { players: [ "pc1", "pc2", "pc3" ] }
response: { id : "1" }
GET /games
response: { games: [ { game: "1" }, { game: "2" } ] }
GET /games/:id
response: { id: "1", players: [ "pc1", "pc2", "pc3" ] }
DELETE /games/:id
response: { id: "1" }
GET /games/:id/deck
response: { id: "1", deck: { length: 108 } }
PUT /games/:id/deck/discard
response: { id: "1", deck: { length: 107 } }
PUT /games/:id/deck/recycle
response: { id: "1", deck: { length: 108 } }
GET /games/:id/pile
response: { id: "1", pile: { length: 1, card: card } }
PUT /games/:id/pile/shuffle
response: { id: "1", pile: { length: 0 } }
GET /games/:id/players/:pid
response: { id: "1", pid: "1", player: "pc1", hand: { cards: [ array of card ] } }
PUT /games/:id/players/:pid/draw
response: { id: "1", pid: "1", player: "pc1", hand: { cards: [ array of card ] } }
PUT /games/:id/players/:pid/recycle
response: { id: "1", pid: "1", player: "pc1", hand: { cards: [ array of card ] } }
GET /games/:id/players/:pid/cards/:cid
response: { id: "1", pid: "1", player: "pc1", cid: "1", card: card }
PUT /games/:id/players/:pid/cards/:cid/discard
response: { id: "1", pid: "1", player: "pc1", hand: { cards: [ array of card ] } }
PUT /games/:id/players/:pid/cards/:cid/pass/:tid
response: { id: "1", pid: "1", player: "pc1", hand: { cards: [ array of card ] } }
PUT /games/:id/players/:pid/pick/:tid
response: { id: "1", pid: "1", player: "pc1", hand: { cards: [ array of card ] } }
GET /games/:id/tarot/deck
response: { id: "1", deck: { length: 1 } }
PUT /games/:id/tarot/deck/discard
response: { id: "1", deck: { length: 1 } }
GET /games/:id/tarot/pile
response: { id: "1", pile: { length: 1, card: card } }
GET /games/:id/tarot/players/:pid
response: { id: "1", pid: "1", player: "pc1", hand: { card: card } }
PUT /games/:id/tarot/players/:pid/discard
response: { id: "1", pid: "1", player: "pc1", hand: { card: card } }