col-win ( board -- ? )


Vocabulary
gamelib.demos.tic-tac-toe

Inputs
boardan object


Outputs
?an object


Definition


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