diff --git a/autumn2013/players.yml b/autumn2013/players.yml index 4eea98a..052bace 100644 --- a/autumn2013/players.yml +++ b/autumn2013/players.yml @@ -77,6 +77,7 @@ lor: LongLiveUbuntu lichess: LLU elo: 1203 + status: withdrew - number: 17 lor: raven_cler @@ -87,6 +88,7 @@ lor: uroboros lichess: Uroboros elo: 1439 + status: withdrew - number: 19 lor: farzeet diff --git a/lib/lorchess/tournament_table.rb b/lib/lorchess/tournament_table.rb index dedd5a0..d6baf6a 100644 --- a/lib/lorchess/tournament_table.rb +++ b/lib/lorchess/tournament_table.rb @@ -26,8 +26,10 @@ module LORChess @berger_coefs = [] @buffer = '' - # Players who abandoned tournament - @players_retired = ['uroboros', 'LongLiveUbuntu'] + # Players withdrew from tournament + @players_withdrew = @@db_players + .select { |player| player['status'] == 'withdrew' } + .map { |player| player['lor'] } # Correlate the player with his number @player_numbers = {} @@ -37,8 +39,8 @@ module LORChess calculate results_to_s - # Remove retired players from the tournament (seppuku) - @players_retired.each do |player| + # Withdraw players from tournament (seppuku) + @players_withdrew.each do |player| num = @player_numbers[player] @players[num] = "#{player}" end