]> gitweb.factorcode.org Git - factor.git/commitdiff
Typo fixed in wordlet.factor file
authorSmoothieewastaken <subash.lmch39@gmail.com>
Fri, 20 Oct 2023 05:13:31 +0000 (10:58 +0545)
committerJohn Benediktsson <mrjbq7@gmail.com>
Fri, 20 Oct 2023 06:49:17 +0000 (23:49 -0700)
extra/wordlet/wordlet.factor

index 7dfdbda84a10dd5857f8eca42463de2859103cce..d5636250f4c6a5d70c81f74931294f4415e6cca1 100644 (file)
@@ -44,7 +44,7 @@ TUPLE: wordlet-game secret-word chances guesses ;
         { COLOR: green [ 3 ] }
     } case ;
 
-: reamining-chars ( game -- chars )
+: remaining-chars ( game -- chars )
     [ secret-word>> ] [ guesses>> ] bi [
         guess>chars
     ] with map concat members
@@ -54,7 +54,7 @@ TUPLE: wordlet-game secret-word chances guesses ;
     CHAR: a CHAR: z [a..b] [ 1string COLOR: white ] { } map>assoc [ or ] assoc-merge ;
 
 : print-remaining-chars ( game -- )
-    reamining-chars [ background associate format ] assoc-each nl ;
+    remaining-chars [ background associate format ] assoc-each nl ;
 
 : print-guesses ( game -- )
     [ secret-word>> ] [ guesses>> ] bi [