Knight's tour: Difference between revisions

Content added Content deleted
Line 8,555: Line 8,555:


define(`random_position',`path_nth($1,randnum(path_length($1)))')
define(`random_position',`path_nth($1,randnum(path_length($1)))')

dnl For example, a1d3c5 -> c5d3a1
define(`path_reverse',`ifelse($1,`',`',`$0(path_cdr($1))`'path_car($1)')') dnl FIXME: IS THIS NEEDED? FIXME FIXME FIXME


dnl Is the position $1 contained in the path $2?
dnl Is the position $1 contained in the path $2?