Knight's tour: Difference between revisions

Content added Content deleted
Line 8,601: Line 8,601:
`path_car($1)`'$0(path_cdr($1),string_cdr($2))')')')
`path_car($1)`'$0(path_cdr($1),string_cdr($2))')')')


dnl Find possible next moves for the given path.
dnl Find potential next moves for the given path.
define(`next_moves',
define(`next_moves',
`ifelse(path_length($1),63,`possible_moves(path_last($1),$1)',
`ifelse(path_length($1),63,`possible_moves(path_last($1),$1)',