Debug Functions

printPath

printPath(const Path& path)Function

Parameters: path – the path to display

Returns: void

Prints the sequence of squares in a path to stdout using FEN algebraic notation, e.g.:

Path (4 squares): e4 e5 e6 e7

printMovePlan

printMovePlan(const MovePlan& plan)Function

Parameters: plan – the move plan to display

Returns: void

Prints a complete human-readable summary of a MovePlan. For invalid plans it displays the error message. For valid plans it prints the primary move, primary path, each relocation with its path, and each restoration with its path (or a note if no path was found). Example output:

=== Move Plan ===
Primary Move: e2 -> e4
Primary Path: Path (2 squares): e3 e4

Relocations (1):
  1. d3 -> a3: Path (3 squares): c3 b3 a3

Restorations (1):
  1. a3 -> d3: Path (3 squares): b3 c3 d3
=================