Merge branch 'master' of https://github.com/fat0troll/lorchess
This commit is contained in:
commit
23cc679e84
@ -77,6 +77,7 @@
|
|||||||
lor: LongLiveUbuntu
|
lor: LongLiveUbuntu
|
||||||
lichess: LLU
|
lichess: LLU
|
||||||
elo: 1203
|
elo: 1203
|
||||||
|
status: withdrew
|
||||||
|
|
||||||
- number: 17
|
- number: 17
|
||||||
lor: raven_cler
|
lor: raven_cler
|
||||||
@ -87,6 +88,7 @@
|
|||||||
lor: uroboros
|
lor: uroboros
|
||||||
lichess: Uroboros
|
lichess: Uroboros
|
||||||
elo: 1439
|
elo: 1439
|
||||||
|
status: withdrew
|
||||||
|
|
||||||
- number: 19
|
- number: 19
|
||||||
lor: farzeet
|
lor: farzeet
|
||||||
|
@ -26,8 +26,10 @@ module LORChess
|
|||||||
@berger_coefs = []
|
@berger_coefs = []
|
||||||
@buffer = ''
|
@buffer = ''
|
||||||
|
|
||||||
# Players who abandoned tournament
|
# Players withdrew from tournament
|
||||||
@players_retired = ['uroboros', 'LongLiveUbuntu']
|
@players_withdrew = @@db_players
|
||||||
|
.select { |player| player['status'] == 'withdrew' }
|
||||||
|
.map { |player| player['lor'] }
|
||||||
|
|
||||||
# Correlate the player with his number
|
# Correlate the player with his number
|
||||||
@player_numbers = {}
|
@player_numbers = {}
|
||||||
@ -37,8 +39,8 @@ module LORChess
|
|||||||
calculate
|
calculate
|
||||||
results_to_s
|
results_to_s
|
||||||
|
|
||||||
# Remove retired players from the tournament (seppuku)
|
# Withdraw players from tournament (seppuku)
|
||||||
@players_retired.each do |player|
|
@players_withdrew.each do |player|
|
||||||
num = @player_numbers[player]
|
num = @player_numbers[player]
|
||||||
@players[num] = "<del>#{player}</del>"
|
@players[num] = "<del>#{player}</del>"
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user