Handbook
Glossary
tick-update ( game-state -- )
Vocabulary
gamelib
.
demos
.
tic-tac-toe
Inputs
game-state
an
object
Outputs
None
Definition
USING:
accessors
gamelib.loop
kernel
sequences
ui.gadgets
;
IN:
gamelib.demos.tic-tac-toe
:
tick-update
( game-state -- )
dup
gadget>>
board>>
first
check-win
[
gadget>>
game-over
relayout-1
stop-game
]
[
gadget>>
relayout-1
]
if
;