examples/pending/netris/src/grid.rb
# Update game data like score and check to see
# if we should progress to the next level
Update game data like score and check to see
if we should progress to the next level
Update game data like score and check to see if we should progress to the next level
def update_game_data(removing)
    if removing == 4
      @game_info.score += 1000
    else
      @game_info.score += 100 * removing
    end
    @line_count += removing
    if @line_count >= @tnl
      puts "Next level!"
      self.next_level
    end
  end
def update_game_data ( removing ) if removing == 4 @game_info . score += 1000 else @game_info . score += 100 * removing end @line_count += removing if @line_count >= @tnl puts "Next level!" self . next_level end end
Update game data like score and check to see
if we should progress to the next level
Update game data like score and check to see if we should progress to the next level
removing
<not_specific>