fix 24-game compile error
parent
01f6c5a7f6
commit
71d176716b
|
@ -15,7 +15,8 @@ SYMBOL: commands
|
||||||
{ nop rot -rot swap spin swapd } amb-execute ;
|
{ nop rot -rot swap spin swapd } amb-execute ;
|
||||||
: makes-24? ( a b c d -- ? )
|
: makes-24? ( a b c d -- ? )
|
||||||
[
|
[
|
||||||
2 [ some-rots do-something ] times
|
some-rots do-something
|
||||||
|
some-rots do-something
|
||||||
maybe-swap do-something
|
maybe-swap do-something
|
||||||
24 =
|
24 =
|
||||||
]
|
]
|
||||||
|
@ -60,4 +61,4 @@ DEFER: check-status
|
||||||
: 24-able ( -- vector ) build-quad dup 24-able? [ drop build-quad ] unless ;
|
: 24-able ( -- vector ) build-quad dup 24-able? [ drop build-quad ] unless ;
|
||||||
: set-commands ( -- ) { + - * / rot swap q } commands set ;
|
: set-commands ( -- ) { + - * / rot swap q } commands set ;
|
||||||
: play-game ( -- ) set-commands 24-able repeat ;
|
: play-game ( -- ) set-commands 24-able repeat ;
|
||||||
MAIN: play-game
|
MAIN: play-game
|
||||||
|
|
Loading…
Reference in New Issue