Anonymous user
Generate random chess position: Difference between revisions
m
→{{header|zkl}}: update
(→{{header|zkl}}: doh) |
m (→{{header|zkl}}: update) |
||
Line 224:
# We try to find suitable king positions on non-adjacent squares.
# If we could not find any, we return recursively
kings :=
a!=b and (a/8 - b/8).abs() or (a%8 - b%8).abs()>1
}); # (a,b) on success, False on fail
|