Moves

Note

When the Towers is iterated over, a series of Move‘s are yielded.

class towers.core.moves.Move[source]
Parameters:
  • disk (Disk) – The disk that will be moved.
  • start (Rod) – The state of the start_rod prior to the move.
  • end (Rod) – The state of the end_rod prior to the move.
  • moves (int) – The number of moves prior to the move.