func Join
crossing ActionJoin claims the X or O mark for the calling account. Each mark may only be claimed once per game; call Reset to start a new game.
Package tictactoe is a two-player tic-tac-toe realm.
Package tictactoe is a two-player tic-tac-toe realm.
Join(cur, "X") / Join(cur, "O") claims a mark; Play(cur, pos) plays cell pos (0-8, row-major); Reset(cur) clears the board once a game has ended. Render shows the current board.
Join claims the X or O mark for the calling account. Each mark may only be claimed once per game; call Reset to start a new game.
Play places the calling player's mark at pos (0-8, row-major).
Render draws the current board and game status as markdown.
Reset clears the board and both player slots. Only a current player may reset, and only after the game has ended.