0-1

[tic-tac-toe] Tic-tac-toe

Basic information

Description

The tic-tac-toe player implements the Tic-tac-toe game. It mainly serves the purpose of RICH player demonstration.

RICH snippet format

> play={mark} height={height} maxbutton=1
.x.
.o.
...
  • height={height} (optional)
    • The game board height (in pixels). If it appears in the ```rich-tic-tac-toe ... line, the height is adjusted before player execution. If it appears in the > play=... line, the height is adjusted after player loading, so the user will see the height adjustment.
  • play={mark} (optional)
    • The next player (o or x). The game is playable.
  • maxbutton=1 (optional)
    • Show the fullscreen button. In fullscreen mode, press the restore button or ESC key to return to normal mode.

Example

A static (non-playable) game board:

.xo
xoo
x..

A playable game with the fullscreen button:

> play=x maxbutton=1
..o
...
...
0 comment Comment