Solve a Holy Knight's tour: Difference between revisions
→{{header|Perl 6}}: Fix failing example ("0" is true now), space out the solution a bit
Thundergnat (talk | contribs) m (→{{header|Perl 6}}: Include referenced routine to make runnable file) |
Thundergnat (talk | contribs) (→{{header|Perl 6}}: Fix failing example ("0" is true now), space out the solution a bit) |
||
Line 2,883:
[+1,-2], [+1,+2],
[ +2, -1], [ +2, 1];
put "\n" xx 60;
solveboard q:to/END/;
Line 2,939 ⟶ 2,941:
my $old = @grid[$y][$x];
return False if +$old and $old != $v;
return False if @known[$v] and @known[$v] !eqv $coord;
|