Draw a puzzle from the bundled set: a position with a known best move or mating sequence.
Value
A gm_puzzle object: a list with position (gm_position),
solution (character vector of SAN moves), theme and rating.
Details
The set ships as inst/extdata/puzzles.rds and is built by
data-raw/puzzles.R, which checks every solution against the move
generator: each move must be legal in turn, every forced reply must be the
opponent's only legal move, and any line ending in # must really end in
checkmate.
See also
Other puzzles:
gm_check_solution()