diff --git a/extra/24-game/24-game.factor b/extra/24-game/24-game.factor index 15c610ce7a..a973cf3367 100644 --- a/extra/24-game/24-game.factor +++ b/extra/24-game/24-game.factor @@ -56,7 +56,7 @@ DEFER: check-status [ end-game ] [ dup quit? [ quit-game ] [ repeat ] if ] if ; -: build-quad ( -- array ) 4 [ 10 random ] replicate >array ; +: build-quad ( -- array ) 4 [ 10 iota random ] replicate ; : 24-able? ( quad -- t/f ) [ makes-24? ] with-datastack first ; : 24-able ( -- vector ) build-quad dup 24-able? [ drop build-quad ] unless ; : set-commands ( -- ) { + - * / rot swap q } commands set ;