# File lib/libttc.rb, line 401 def apply_moves(moves) moves.each do |move| if move.via_base? moved_distance = board.distance_between[move.piece.position.place][@current_player] + board.distance_between[@current_player][move.destination.place] else moved_distance = board.distance_between[move.piece.position.place][move.destination.place] end self.apply_move(move, @current_player) next_player unless moved_distance == 6 end end