#begintest koth
#beginconfig
division a a.t
division b b.t
division c c.t
config gibson = 1
config max_rounds = 4
config prize_bands{'A'} = [1,2];
config prize_bands{'B'} = [1,2];
config prize_bands{'C'} = [1,2];
config auto_koth_repeats = 2
config force_koth = 4
config colour = 'no'
perl srand 123
#endconfig
#beginifile a.t
Chew, John 1800    
Chew, Kristen 1300 
Chew, Jamie 500    
Chew, Liam 0       
#endifile
#beginifile b.t
Player, A 1900 4 3 2 ; 400 400 400
Player, B 1800 3 4 1 ; 302 300 300
Player, C 1700 2 1 4 ; 201 200 200
Player, D 1600 1 2 3 ; 100 500 100
#endifile
#beginifile c.t
Player, E 1900
Player, F 1800
Player, G 1700
Player, H 1600
Player, I 1500
Player, J 1400
#endifile
#begincommands
debug CBPF 0
debug GIB 0
debug GRT 0
debug KOTH 1
koth 0 0 a
koth 0 0 a
koth 0 0 a
sp 3 a
koth 0 0 a
koth 1 0 a
koth 1 0 a
koth 1 3 b
rat b
sp 4 b
sp 1 c
rand c
sp 2 c
rat c
rand c
sp 3 c
rat c
rand c
q
#endcommands
#beginstdout
Debug: [KOTH] Computing KOTH pairings (repeats=0 sr0=-1 incomplete=)
Debug: [KOTH] Computing KOTH pairings (repeats=0 sr0=-1 incomplete=)
Debug: [KOTH] Computing KOTH pairings (repeats=0 sr0=-1 incomplete=)
Division A Round 3 Ranked Pairings

Board Who Plays Whom
   1  Chew, John (A1) vs. Chew, Liam (A4).
   2  Chew, Kristen (A2) vs. Chew, Jamie (A3).
Debug: [KOTH] Computing KOTH pairings (repeats=0 sr0=-1 incomplete=)
Debug: [KOTH] Computing KOTH pairings (repeats=1 sr0=-1 incomplete=)
Debug: [KOTH] Computing KOTH pairings (repeats=1 sr0=2 incomplete=)
Division B Round 3 Ratings

Rnk Won-Lost Spread OldR NewR +-R Player         Last Game
  1 3.0-0.0    +600 1900 1918 +18 Player, A (B1) W:400-300:B2
  2 1.0-2.0    -199 1800 1787 -13 Player, B (B2) L:300-400:B1
  3 1.0-2.0    -200 1600 1599  -1 Player, D (B4) L:100-200:B3
  4 1.0-2.0    -201 1700 1693  -7 Player, C (B3) W:200-100:B4
Division B Round 4 Ranked Pairings

Board Who Plays Whom
   1  Player, A (B1) vs. Player, C (B3) repeat.
   2  Player, B (B2) vs. Player, D (B4) repeat.
Debug: [CP] 6 players and 4 round(s) left
Debug: [CP] Using KOTH pairings.
Debug: [KOTH] Computing KOTH pairings (repeats=2 sr0=-1 incomplete=)
Division C Round 1 Ranked Pairings

Board Who Plays Whom
   1  Player, E (C1) vs. Player, F (C2).
   2  Player, G (C3) vs. Player, H (C4).
   3  Player, I (C5) vs. Player, J (C6).
Player, E (C1): 356
Player, F (C2): 354
Player, G (C3): 486
Player, H (C4): 472
Player, I (C5): 305
Player, J (C6): 322
Debug: [CP] 6 players and 3 round(s) left
Debug: [CP] Using KOTH pairings.
Debug: [KOTH] Computing KOTH pairings (repeats=2 sr0=0 incomplete=)
Division C Round 2 Ranked Pairings

Board Who Plays Whom
   1  Player, J (C6) vs. Player, G (C3).
   2  Player, E (C1) vs. Player, F (C2) repeat.
   3  Player, H (C4) vs. Player, I (C5).
Division C Round 1 Ratings

Rnk Won-Lost Spread OldR NewR +-R Player         Last Game
  1 1.0-0.0     +17 1400 1418 +18 Player, J (C6) W:322-305:C5
  2 1.0-0.0     +14 1700 1712 +12 Player, G (C3) W:486-472:C4
  3 1.0-0.0      +2 1900 1908  +8 Player, E (C1) W:356-354:C2
  4 0.0-1.0      -2 1800 1792  -8 Player, F (C2) L:354-356:C1
  5 0.0-1.0     -14 1600 1592  -8 Player, H (C4) L:472-486:C3
  6 0.0-1.0     -17 1500 1489 -11 Player, I (C5) L:305-322:C6
Player, E (C1): 356 406
Player, F (C2): 354 329
Player, G (C3): 486 352
Player, H (C4): 472 429
Player, I (C5): 305 350
Player, J (C6): 322 330
Debug: [CP] 6 players and 2 round(s) left
Debug: [CP] Using KOTH pairings.
Debug: [KOTH] Computing KOTH pairings (repeats=2 sr0=1 incomplete=)
Division C Round 3 Ranked Pairings

Board Who Plays Whom
   1  Player, E (C1) vs. Player, G (C3).
   2  Player, H (C4) vs. Player, J (C6).
   3  Player, F (C2) vs. Player, I (C5).
Division C Round 2 Ratings

Rnk Won-Lost Spread OldR NewR +-R Player         Last Game
  1 2.0-0.0     +79 1900 1917 +17 Player, E (C1) W:406-329:C2
  2 2.0-0.0     +36 1700 1718 +18 Player, G (C3) W:352-330:C6
  3 1.0-1.0     +65 1600 1600  +0 Player, H (C4) W:429-350:C5
  4 1.0-1.0      -5 1400 1406  +6 Player, J (C6) L:330-352:C3
  5 0.0-2.0     -79 1800 1784 -16 Player, F (C2) L:329-406:C1
  6 0.0-2.0     -96 1500 1480 -20 Player, I (C5) L:350-429:C4
Player, E (C1): 356 406 327
Player, F (C2): 354 329 361
Player, G (C3): 486 352 485
Player, H (C4): 472 429 492
Player, I (C5): 305 350 326
Player, J (C6): 322 330 344
#endstdout
#beginstderr
Error: Pairings failed. [epfail]
Error: You cannot compute pairings for Round 5 because config max_rounds = 4. [ebigrd]
#endstderr
#endtest
