Method: Upwords::MoveManager#undo_all

Defined in:
lib/upwords/move_manager.rb

#undo_all(player) ⇒ Object



35
36
37
38
39
# File 'lib/upwords/move_manager.rb', line 35

def undo_all(player)
  until @pending_move.empty? do
    undo_last(player)
  end
end