]> git.cworth.org Git - lmno.games/commit
Add an enum (or an enum-like object) for Team values
authorCarl Worth <cworth@cworth.org>
Thu, 4 Jun 2020 23:15:42 +0000 (16:15 -0700)
committerCarl Worth <cworth@cworth.org>
Thu, 4 Jun 2020 23:15:42 +0000 (16:15 -0700)
commit2b049fa2c736d7d35beb07a74469e71a56f637ac
tree3c3d33e1f1b94ea8c3c1016b738e82b46dbf69a6
parentcd1247338dd987b8796ad5ca6d0f655ececa22ee
Add an enum (or an enum-like object) for Team values

We replace the existing xIsNext Boolean in the state with a new
next_to_play property takign a value from this enum.

And we will soon also be using this enum to track the team from whose
point of view the game is being shown.
tictactoe/tictactoe.jsx