Merge branch 'master' of https://github.com/fat0troll/lorchess
This commit is contained in:
commit
565e2933bf
@ -181,3 +181,8 @@
|
|||||||
black: HunOL
|
black: HunOL
|
||||||
result: '0:1'
|
result: '0:1'
|
||||||
|
|
||||||
|
- date: 22.03.2014
|
||||||
|
white: aptyp
|
||||||
|
black: J
|
||||||
|
result: '0:1'
|
||||||
|
|
||||||
|
@ -164,8 +164,8 @@ module LORChess
|
|||||||
@buffer << " <th>Участник</th>\n"
|
@buffer << " <th>Участник</th>\n"
|
||||||
@buffer << " <th>elo*</th>\n"
|
@buffer << " <th>elo*</th>\n"
|
||||||
|
|
||||||
(@@dim * @@rounds).times do |i|
|
@@dim.times do |i|
|
||||||
@buffer << " <th class=\"{sorter: false}\">" << (i + 1).to_s << "</th>\n"
|
@buffer << " <th class=\"opponent\" colspan=\"#{@@rounds.to_s}\">#{(i + 1).to_s}</th>\n"
|
||||||
end
|
end
|
||||||
|
|
||||||
@buffer << " <th>Игры</th>\n"
|
@buffer << " <th>Игры</th>\n"
|
||||||
@ -176,32 +176,32 @@ module LORChess
|
|||||||
@buffer << " </thead>\n"
|
@buffer << " </thead>\n"
|
||||||
@buffer << " <tfoot>\n"
|
@buffer << " <tfoot>\n"
|
||||||
@buffer << " <tr>\n"
|
@buffer << " <tr>\n"
|
||||||
@buffer << " <td colspan=\"" << (@@dim * @@rounds + 7).to_s << "\">* Средний elo на начало турнира</td>\n"
|
@buffer << " <td colspan=\"#{(@@dim * @@rounds + 7).to_s}\">* Средний elo на начало турнира</td>\n"
|
||||||
@buffer << " </tr>\n"
|
@buffer << " </tr>\n"
|
||||||
@buffer << " </tfoot>\n"
|
@buffer << " </tfoot>\n"
|
||||||
@buffer << " <tbody>\n"
|
@buffer << " <tbody>\n"
|
||||||
|
|
||||||
@@dim.times do |i|
|
@@dim.times do |i|
|
||||||
|
|
||||||
@buffer << " <tr class=\"place-" << @player_places[i] << "\">\n"
|
@buffer << " <tr class=\"place-#{@player_places[i]}\">\n"
|
||||||
@buffer << " <td class=\"number\">" << (i + 1).to_s << "</td>\n"
|
@buffer << " <td class=\"number\">#{(i + 1).to_s}</td>\n"
|
||||||
@buffer << " <td class=\"player\"><strong>" << @players[i] << "</strong></td>\n"
|
@buffer << " <td class=\"player\"><strong>#{@players[i]}</strong></td>\n"
|
||||||
@buffer << " <td class=\"elo\">" << @elo_points[i] << "</td>\n"
|
@buffer << " <td class=\"elo\">#{@elo_points[i]}</td>\n"
|
||||||
|
|
||||||
@@rounds.times do |round|
|
@@dim.times do |j|
|
||||||
@@dim.times do |j|
|
unless j == i
|
||||||
unless j == i
|
@@rounds.times do |round|
|
||||||
@buffer << " <td class=\"score\">" << @game_scores[round][i][j] << "</td>\n"
|
@buffer << " <td class=\"score\">#{@game_scores[round][i][j]}</td>\n"
|
||||||
else
|
|
||||||
@buffer << " <td class=\"diagonal\"></td>\n"
|
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
@buffer << " <td class=\"diagonal\"></td>\n" * @@rounds
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@buffer << " <td class=\"games\">" << @player_games[i] << "</td>\n"
|
@buffer << " <td class=\"games\">#{@player_games[i]}</td>\n"
|
||||||
@buffer << " <td class=\"total\">" << @total_scores[i] << "</td>\n"
|
@buffer << " <td class=\"total\">#{@total_scores[i]}</td>\n"
|
||||||
@buffer << " <td class=\"place\">" << @player_places[i] << "</td>\n"
|
@buffer << " <td class=\"place\">#{@player_places[i]}</td>\n"
|
||||||
@buffer << " <td class=\"berger\">" << @berger_coefs[i] << "</td>\n"
|
@buffer << " <td class=\"berger\">#{@berger_coefs[i]}</td>\n"
|
||||||
@buffer << " </tr>\n"
|
@buffer << " </tr>\n"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user