Description Usage Arguments Value
View source: R/01_Knights_Tour.R
Can the proposed next position be appended to the given partial knight's tour to create a larger knight's tour (which may or may not be a complete knight's tour)?
1 | kt_valid_move(position = position, solution)
|
position |
A numeric vector of length 2 describing the coordinates of the proposed next position on a chess board. |
solution |
A numeric 8x8 matrix describing the current partial solution on a chess board. |
TRUE
if the proposed next position can be appended to the
given partial knight's tour to form another knight's tour (which may or may
not be a complete knight's tour). Otherwise FALSE
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.