typo
authorChristian Urban <christian dot urban at kcl dot ac dot uk>
Mon, 31 Oct 2016 10:43:11 +0000
changeset 2 e0ec73c462c7
parent 1 b595d654cb2d
child 3 575a5c07c7fe
typo
progs/knight.scala
--- a/progs/knight.scala	Mon Oct 31 10:41:23 2016 +0000
+++ b/progs/knight.scala	Mon Oct 31 10:43:11 2016 +0000
@@ -26,7 +26,7 @@
   if (steps.length ==  n * n && moves(n)(steps.head).contains(steps.last))
     print_board(n)(steps)
   else 
-    for (x <- moves(n)(steps.head).par; if (!steps.contains(x))) tour(n)(x :: steps)
+    for (x <- moves(n)(steps.head); if (!steps.contains(x))) tour(n)(x :: steps)
 }
 
 val n = 6