main/display.rb
def breaker_rounds(who)
    while @round < 11
      @board.update_total_matches
      return win_screen if win? # check for if the breaker got everything right

      round_result
      @board.breaker.create_number if who == 'player'
      @board.breaker.random_number if who == 'computer'
    end
    @board.update_total_matches
    return win_screen if win? # check for if the breaker got everything right

    announce_code
  end
# the breaker round, if the person playing chooses maker
# the rounds will be automatic, else it asks the player
# for input every round
the breaker round, if the person playing chooses maker
the rounds will be automatic, else it asks the player
for input every round
the breaker round if the person playing chooses maker the rounds will be automatic else it asks the player for input every round
def breaker_rounds(who)
    while @round < 11
      @board.update_total_matches
      return win_screen if win? 
      round_result
      @board.breaker.create_number if who == 'player'
      @board.breaker.random_number if who == 'computer'
    end
    @board.update_total_matches
    return win_screen if win? 
    announce_code
  end
def breaker_rounds ( who ) while @round < 11 @board . update_total_matches return win_screen if win? round_result @board . breaker . create_number if who == 'player' @board . breaker . random_number if who == 'computer' end @board . update_total_matches return win_screen if win? announce_code end
the breaker round, if the person playing chooses maker
the rounds will be automatic, else it asks the player
for input every round
the breaker round if the person playing chooses maker the rounds will be automatic else it asks the player for input every round
# check for if the breaker got everything right # check for if the breaker got everything right
who