]> gitweb.factorcode.org Git - factor.git/commitdiff
fix 24-game compile error
authorDoug Coleman <doug.coleman@gmail.com>
Fri, 6 Feb 2009 22:53:41 +0000 (16:53 -0600)
committerDoug Coleman <doug.coleman@gmail.com>
Fri, 6 Feb 2009 22:53:41 +0000 (16:53 -0600)
extra/24-game/24-game.factor

index 126215ab131945eca73631e24ba7a2b2b4a0d851..f842d5f4cb4a2ea32a985eb125e6d888b1a5329e 100644 (file)
@@ -15,7 +15,8 @@ SYMBOL: commands
     { nop rot -rot swap spin swapd } amb-execute ;
 : makes-24? ( a b c d -- ? )
         [
-            2 [ some-rots do-something ] times
+            some-rots do-something
+            some-rots do-something
             maybe-swap do-something
             24 =
         ]
@@ -60,4 +61,4 @@ DEFER: check-status
 : 24-able ( -- vector ) build-quad dup 24-able? [ drop build-quad ] unless ;
 : set-commands ( -- ) { + - * / rot swap q } commands set ;
 : play-game ( -- ) set-commands 24-able repeat ;
-MAIN: play-game
\ No newline at end of file
+MAIN: play-game