diag-win ( board -- ? )


Vocabulary
gamelib.demos.tic-tac-toe

Inputs
boardan object


Outputs
?an object


Definition


:: diag-win ( board -- ? )
{ "vocab:gamelib/demos/tic-tac-toe/resources/X.png" } board
{ { 0 0 } { 1 1 } { 2 2 } } get-cells all-equal-value?
{ "vocab:gamelib/demos/tic-tac-toe/resources/X.png" } board
{ { 2 0 } { 1 1 } { 0 2 } } get-cells all-equal-value? or
{ "vocab:gamelib/demos/tic-tac-toe/resources/O.png" } board
{ { 0 0 } { 1 1 } { 2 2 } } get-cells all-equal-value? or
{ "vocab:gamelib/demos/tic-tac-toe/resources/O.png" } board
{ { 2 0 } { 1 1 } { 0 2 } } get-cells all-equal-value? or ;