Zebra puzzle: Difference between revisions
m
→{{header|AppleScript}}: Minor correction in output code.
(Added AppleScript.) |
m (→{{header|AppleScript}}: Minor correction in output code.) |
||
Line 485:
set solutionCount to (count solutions)
if (solutionCount = 0) then return {zebraOwners:
set owners to {}
repeat with
set owners's end to thisHouse's resident
end if▼
exit repeat
▲ end if
end repeat
end repeat
return {zebraOwners:owners, numberOfSolutions:solutionCount, solutions:solutions}
|