]> git.cworth.org Git - lmno.games/commit
Add two buttons to allow the player to choose a team to join
authorCarl Worth <cworth@cworth.org>
Fri, 5 Jun 2020 17:18:17 +0000 (10:18 -0700)
committerCarl Worth <cworth@cworth.org>
Sat, 6 Jun 2020 11:46:51 +0000 (04:46 -0700)
commit80b53fb35b2026f0100572fc744d659532efe3f0
treef44426c8400b6ffd398c8039bf6f68d7b27c6a53
parente804009ec5cc7bb804c229915ce1c8ebedaa88c7
Add two buttons to allow the player to choose a team to join

This demonstrates how a "Join Team" button could actually work.

Of course, the notion of teams and being able to switch from one to
the other is a bit much for tic tac toe, (but could actually be useful
for a case of two people playing on a single computer for example).

What we definitely want here is some implicit team membership. Such as
"Either play can make the first move" and then having that assign the
player that moves to Team X.

If we did that, then we could also simplify by having just a single
"Swith Teams" button instead of having one button for each team.
style.css
tictactoe/tictactoe.jsx