Knight's tour: Difference between revisions
Content added Content deleted
m (→{{header|REXX}}: changed the display for the knight's starting and ending position.) |
m (added an image of a white chess knight.) |
||
Line 1: | Line 1: | ||
{{task}} |
{{task}} |
||
[[File:chess_black_knight.jpg|400px||right]] |
|||
[[wp:Knight%27s_tour|Problem]]: you have a standard 8x8 chessboard, empty but for a single knight on some square. Your task is to emit a series of legal knight moves that result in the knight visiting every square on the chessboard exactly once. Note that it is ''not'' a requirement that the tour be "closed"; that is, the knight need not end within a single move of its start position. |
[[wp:Knight%27s_tour|Problem]]: you have a standard 8x8 chessboard, empty but for a single knight on some square. Your task is to emit a series of legal knight moves that result in the knight visiting every square on the chessboard exactly once. Note that it is ''not'' a requirement that the tour be "closed"; that is, the knight need not end within a single move of its start position. |
||