#begintest chewpair
#beginconfig
division a a.t
config max_rounds = 5
config colour = 'no'
config track_firsts = 1
config assign_firsts = 0
#endconfig
#beginifile a.t
Chew, John 1800    
Chew, Kristen 1300 
Chew, Jamie 500    
Chew, Liam 0       
#endifile
#begincommands
sp 3 a
a 1 a
1 400 4 100
2 300 3 200

a 2 a
1 400 3 200
4 300 2 100

sp 4 a
a 3 a
1 400 2 300
3 200 4 100

sp 4 a
q
#endcommands
#beginstdout
Round 3 Pairings

Board Players
   1  Chew, John (#1) vs. Chew, Kristen (#2).
   2  Chew, Jamie (#3) vs. Chew, Liam (#4).
[A1]:pn1 ps1 pn2 ps2 (4 scores left)? #1 Chew, John 400 (1.0 +300) - #4 Chew, Liam 100 (0.0 -300).
[A1]:pn1 ps1 pn2 ps2 (2 scores left)? #2 Chew, Kristen 300 (1.0 +100) - #3 Chew, Jamie 200 (0.0 -100).
[A1]:pn1 ps1 pn2 ps2 (0 scores left)? Updating Division A.
[A2]:pn1 ps1 pn2 ps2 (4 scores left)? #1 Chew, John 400 (2.0 +500) - #3 Chew, Jamie 200 (0.0 -300).
[A2]:pn1 ps1 pn2 ps2 (2 scores left)? #4 Chew, Liam 300 (1.0 -100) - #2 Chew, Kristen 100 (1.0 -100).
[A2]:pn1 ps1 pn2 ps2 (0 scores left)? Updating Division A.
[A3]:pn1 ps1 pn2 ps2 (4 scores left)? #1 Chew, John 400 (3.0 +600) - #2 Chew, Kristen 300 (1.0 -200).
[A3]:pn1 ps1 pn2 ps2 (2 scores left)? #3 Chew, Jamie 200 (1.0 -200) - #4 Chew, Liam 100 (1.0 -200).
[A3]:pn1 ps1 pn2 ps2 (0 scores left)? Updating Division A.
Debug: [CP] Beginning Chew Pairings for 4 players in round 4 based on round 3.
Debug: [CP] Number of players still unpaired: 4
Debug: [GIB] PairAllGibsons(4,2,2,1)
Debug: [GIB] Gibson-equivalent ranks: 1 starting at 1
Debug: [GIB] Gibsons found: 1
Debug: [GIB] 1 gibson.
Debug: [GIB] Pairing one gibson from 4 players, lpr=1.
Debug: [GIB]   1=>  1  5.0 +950 Chew, John #1
Debug: [GIB]   2=>  2  3.0 +150 Chew, Kristen #2
Debug: [GIB]   3=>  2  3.0 +150 Chew, Jamie #3
Debug: [GIB]   4=>  2  3.0 +150 Chew, Liam #4
Debug: [GIB] ... victim (rep=1) = Chew, Liam (#4)
Debug: [GIB] ... better victim (rep 1=1) = Chew, Jamie (#3)
Debug: [GIB] ... better victim (rep 1=1) = Chew, Kristen (#2)
Debug: [GIB] Gibson-equivalent ranks: 1 starting at 2
Debug: [GIB] Gibsons found: 0
Debug: [CP] Contending rnks 2-2?  Plyrs left: 2.  Rds left: 2 as of Rd 3.
Debug: [CP] Now=>Fnl Wins Sprd Player (theoretical best finishes)
Debug: [GIB]   1=>  1  3.0 +150 Chew, Jamie #3
Debug: [GIB]   2=>  1  3.0 +150 Chew, Liam #4
Debug: [CP] There are 2 contenders.
Debug: [CP] Flight can be paired with repeats=1.
Debug: [CP] Everyone is a contender, will pair Swiss.
Debug: [CP] 0 second(s) runtime
Round 4 Pairings

Board Players
   1  Chew, Kristen (#2) *starts* vs. Chew, John (#1).
   2  Chew, Jamie (#3) *draws* vs. Chew, Liam (#4).
#endstdout
#beginstderr
Error: Chew, John (#1) was supposed to go second. [easbad12]
Error: Chew, Jamie (#3) was supposed to go first. [easbad12]
Error: If you are sure you want to pair Round 4 based on Round 2, please specify config session_breaks. [eacpnsb]
Error: No pairings yet for Division A Round 4. [enopryet]
Error: Chew, John (#1) was supposed to go second. [easbad12]
Error: Chew, Kristen (#2) was supposed to go first. [easbad12]
Warning: You should specify config prize_bands to use this command. [wwant_prize_bands]
#endstderr
#endtest
