#macro(rank $rank)#if( $rank<0 )#set( $k = -$rank )${k}k#else#set( $d=$rank+1 )${d}d#end#end #if (!$tour)

Invalid tournament id

#stop #end #set($round = $math.toInteger($!params.round)) #if(!$round) #set($round = 1) #else #set($round = $math.min($math.max($round, 1), $tour.rounds)) #end
#if($tour.type == 'INDIVIDUAL' || $tour.type.startsWith('TEAM')) #set($parts = $api.get("tour/${params.id}/part")) #else #set($parts = $api.get("tour/${params.id}/team")) #end #set($pmap = $utils.toMap($parts)) #set($roundPairing = $api.get("tour/${params.id}/pair/$round")) #if($roundPairing.error) #stop #end #set($games = $utils.removeBye($roundPairing.games)) #set($numOfPlay = $games.size() - 1) #foreach($i in [0..$numOfPlay]) #set($game = $games[$i]) #set($white = $pmap[$game.w]) #set($black = $pmap[$game.b]) #set($komi = $tour.komi) #if($game.h) #set($komi = $komi - $math.floor($komi)) #end #set($table = $i + 1) #end
Table Black Rank White Rank Handicap Komi
Table $table $black.name $!black.firstname #rank($black.rank) $white.name $!white.firstname #rank($white.rank) $game.h $komi