]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/path-finding/path-finding-tests.factor
Harmonize spelling
[factor.git] / extra / path-finding / path-finding-tests.factor
index 3bdf77ca284947d1ba4c8bd1fdbc9b4f81b705d3..e5466d0326aa25c9c4fa055aed0894334b85783c 100644 (file)
@@ -30,7 +30,7 @@ TUPLE: maze < astar ;
   8  X X X X X X X X X X"
         split-lines ] nth nth CHAR: X = not ;
 
-M: maze neighbours
+M: maze neighbors
     drop
     first2
     { [ 1 + 2array ] [ 1 - 2array ] [ [ 1 + ] dip 2array ] [ [ 1 - ] dip 2array ] } 2cleave
@@ -99,7 +99,7 @@ M: maze cost
 
 MEMO: routes ( -- hash ) $[ { "ABD" "BC" "C" "DCE" "ECF" } [ unclip swap 2array ] map >hashtable ] ;
 
-: n ( pos -- neighbours )
+: n ( pos -- neighbors )
     routes at ;
 
 : c ( from to -- cost )