empty
uint8Value
0
markX
uint8Value
1
markO
uint8Value
2
board
[9]uint8- OID
- 024a44…01ba:4
board details
turn
uint8Value
2
playerX
.uverse.addressValue
<gnolang.StringValue>
playerO
.uverse.addressValue
<zero>
winner
uint8Value
0
moveCount
intValue
1
gameOver
boolValue
false
zeroAddr
.uverse.addressValue
<zero>
Join
func(mark string)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.
- OID
- 024a44…01ba:12
Join details
Play
func(pos int)Play places the calling player's mark at pos (0-8, row-major).
- OID
- 024a44…01ba:14
Play details
Reset
func()Reset clears the board and both player slots. Only a current player may reset, and only after the game has ended.
- OID
- 024a44…01ba:15
Reset details
winLines
[8][3]int- OID
- 024a44…01ba:17
winLines details
checkWinner
func() uint8- OID
- 024a44…01ba:26
checkWinner details
markString
func(m uint8) string- OID
- 024a44…01ba:27
markString details
Render
func(string) stringRender draws the current board and game status as markdown.
- OID
- 024a44…01ba:28
Render details
empty
:
uint8
=0
markX
:
uint8
=1
markO
:
uint8
=2
board : [9]uint8 Inspect
turn
:
uint8
=2
playerX
:
.uverse.address
=<gnolang.StringValue>
playerO
:
.uverse.address
=<zero>
winner
:
uint8
=0
moveCount
:
int
=1
gameOver
:
bool
=false
zeroAddr
:
.uverse.address
=<zero>