From f0c55e6b97edf8971ce4adad3ee53cbfa406b7ef Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Wed, 27 Dec 2017 20:38:53 -0800 Subject: 4165 --- html/nqueens.mu.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'html/nqueens.mu.html') diff --git a/html/nqueens.mu.html b/html/nqueens.mu.html index ac2fe88c..54cdecbc 100644 --- a/html/nqueens.mu.html +++ b/html/nqueens.mu.html @@ -78,7 +78,7 @@ if ('onhashchange' in window) { 17 ¦ done?:bool <- greater-or-equal added-so-far, n 18 ¦ break-unless done? 19 ¦ stash queens - 20 ¦ return 1 + 20 ¦ return 1 21 } 22 # still work to do 23 next-rank:num <- copy 0 @@ -102,7 +102,7 @@ if ('onhashchange' in window) { 41 ¦ ¦ result <- add result, sub-result 42 ¦ } 43 ¦ next-file <- add next-file, 1 - 44 ¦ loop + 44 ¦ loop 45 } 46 ] 47 @@ -129,9 +129,9 @@ if ('onhashchange' in window) { 68 ¦ file-match?:bool <- equal curr-file, qfile 69 ¦ return-if file-match?, 1/conflict-found 70 ¦ queens <- rest queens - 71 ¦ loop + 71 ¦ loop 72 } - 73 return 0/no-conflict-found + 73 return 0/no-conflict-found 74 ] 75 76 def conflicting-diagonal? curr:square, queens:&:list:square -> result:bool [ @@ -151,9 +151,9 @@ if ('onhashchange' in window) { 90 ¦ diagonal-match?:bool <- equal rank-delta, file-delta 91 ¦ return-if diagonal-match?, 1/conflict-found 92 ¦ queens <- rest queens - 93 ¦ loop + 93 ¦ loop 94 } - 95 return 0/no-conflict-found + 95 return 0/no-conflict-found 96 ] 97 98 def main [ -- cgit 1.4.1-2-gfad0