Knight's tour: Difference between revisions
Content added Content deleted
m (→{{header|Python}}: spelling) |
|||
Line 3,220:
knightMoves :: Square -> [Square]
knightMoves (x, y) =
let
in bool [] [(a, b)] (onBoard a && onBoard b
onBoard :: Int -> Bool
onBoard = (&&) . (0 <) <*> (9 >)
-- TEST ---------------------------------------------------
|