]> git.cworth.org Git - lmno-server/commit
game/tictactoe: Expand player to include a team property
authorCarl Worth <cworth@cworth.org>
Fri, 5 Jun 2020 13:36:41 +0000 (06:36 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 5 Jun 2020 14:28:57 +0000 (07:28 -0700)
commit16564f558ee42c3fbc0ca5ee56c91407253747b5
tree480e09fdbede1bc34551af5ca972bc71e9848115
parent5c589dc3c8016c2f43174b1cf6de3e934835a142
game/tictactoe: Expand player to include a team property

The existing /player endpoint is expanded to allow a player to choose
which team to join. The team must be either an empty string, (to leave
all teams and be just a spectator), or must be one of the defined
teams of the current game. As expected, TicTacToe defines its teams as
"X" and "O".

Commit includes testing.
game.js
lmno.js
test
tictactoe.js