#begintest guelph
#beginconfig
division a a.t
division b b.t
division c c.t
config pairing_system = 'guelph'
config colour = 'no'
config prize_bands{'A'} = [1,2]
config prize_bands{'B'} = [1,2]
config prize_bands{'C'} = [1,2]
perl srand 123
#endconfig
#beginifile a.t
Player, A 1800
Player, B 1700
Player, C 1600
Player, D 1500
Player, E 1400
Player, F 1300
Player, G 1200
Player, H 1100
#endifile
#beginifile b.t
Player, BA 1800
Player, BB 1700
Player, BC 1600
Player, BD 1500
Player, BE 1400
Player, BF 1300
#endifile
#beginifile c.t
Player, CA 1800
Player, CB 1700
Player, CC 1600
Player, CD 1500
Player, CE 1400
Player, CF 1300
Player, CG 1200
Player, CH 1100
Player, CI 1000
Player, CJ  900
#endifile
#begincommands
dryrun a
sp 1 b
sp 1 c
quit
#endcommands
#beginstdout
Division A Round 1 Ranked Pairings

Board Who Plays Whom
   1  Player, A (A1) vs. Player, H (A8).
   2  Player, B (A2) vs. Player, G (A7).
   3  Player, C (A3) vs. Player, F (A6).
   4  Player, D (A4) vs. Player, E (A5).
Division A Round 2 Ranked Pairings

Board Who Plays Whom
   1  Player, A (A1) vs. Player, E (A5).
   2  Player, B (A2) vs. Player, F (A6).
   3  Player, C (A3) vs. Player, G (A7).
   4  Player, D (A4) vs. Player, H (A8).
Division A Round 3 Ranked Pairings

Board Who Plays Whom
   1  Player, A (A1) vs. Player, D (A4).
   2  Player, B (A2) vs. Player, C (A3).
   3  Player, E (A5) vs. Player, H (A8).
   4  Player, F (A6) vs. Player, G (A7).
Player, A (A1): 516
Player, B (A2): 540
Player, C (A3): 464
Player, D (A4): 402
Player, E (A5): 292
Player, F (A6): 260
Player, G (A7): 459
Player, H (A8): 346
Division A Round 1 Ratings

Rnk Won-Lost Spread OldR NewR +-R Player         Last Game
  1 1.0-0.0    +204 1600 1606  +6 Player, C (A3) W:464-260:A6
  2 1.0-0.0    +170 1800 1802  +2 Player, A (A1) W:516-346:A8
  3 1.0-0.0    +110 1500 1512 +12 Player, D (A4) W:402-292:A5
  4 1.0-0.0     +81 1700 1703  +3 Player, B (A2) W:540-459:A7
  5 0.0-1.0     -81 1200 1197  -3 Player, G (A7) L:459-540:A2
  6 0.0-1.0    -110 1400 1392  -8 Player, E (A5) L:292-402:A4
  7 0.0-1.0    -170 1100 1098  -2 Player, H (A8) L:346-516:A1
  8 0.0-1.0    -204 1300 1294  -6 Player, F (A6) L:260-464:A3
Player, A (A1): 516 423
Player, B (A2): 540 535
Player, C (A3): 464 561
Player, D (A4): 402 466
Player, E (A5): 292 266
Player, F (A6): 260 347
Player, G (A7): 459 352
Player, H (A8): 346 399
Division A Round 2 Ratings

Rnk Won-Lost Spread OldR NewR +-R Player         Last Game
  1 2.0-0.0    +413 1600 1610 +10 Player, C (A3) W:561-352:A7
  2 2.0-0.0    +327 1800 1805  +5 Player, A (A1) W:423-266:A5
  3 2.0-0.0    +269 1700 1708  +8 Player, B (A2) W:535-347:A6
  4 2.0-0.0    +177 1500 1516 +16 Player, D (A4) W:466-399:A8
  5 0.0-2.0    -237 1100 1094  -6 Player, H (A8) L:399-466:A4
  6 0.0-2.0    -267 1400 1387 -13 Player, E (A5) L:266-423:A1
  7 0.0-2.0    -290 1200 1192  -8 Player, G (A7) L:352-561:A3
  8 0.0-2.0    -392 1300 1290 -10 Player, F (A6) L:347-535:A2
Player, A (A1): 516 423 557
Player, B (A2): 540 535 411
Player, C (A3): 464 561 268
Player, D (A4): 402 466 484
Player, E (A5): 292 266 368
Player, F (A6): 260 347 386
Player, G (A7): 459 352 216
Player, H (A8): 346 399 359
Division A Round 3 Ratings

Rnk Won-Lost Spread OldR NewR +-R Player         Last Game
  1 3.0-0.0    +412 1700 1717 +17 Player, B (A2) W:411-268:A3
  2 3.0-0.0    +400 1800 1809  +9 Player, A (A1) W:557-484:A4
  3 2.0-1.0    +270 1600 1602  +2 Player, C (A3) L:268-411:A2
  4 2.0-1.0    +104 1500 1507  +7 Player, D (A4) L:484-557:A1
  5 1.0-2.0    -222 1300 1299  -1 Player, F (A6) W:386-216:A7
  6 1.0-2.0    -258 1400 1393  -7 Player, E (A5) W:368-359:A8
  7 0.0-3.0    -246 1100 1088 -12 Player, H (A8) L:359-368:A5
  8 0.0-3.0    -460 1200 1184 -16 Player, G (A7) L:216-386:A6
Debug: [GUELPH] A: 1 4 5 8
Debug: [GUELPH] B: 2 3 6 7
Division A Round 4 Ranked Pairings

Board Who Plays Whom
   1  Player, B (A2) vs. Player, D (A4).
   2  Player, A (A1) vs. Player, C (A3).
   3  Player, F (A6) vs. Player, H (A8).
   4  Player, E (A5) vs. Player, G (A7).
Division A Round 5 Ranked Pairings

Board Who Plays Whom
   1  Player, B (A2) vs. Player, A (A1).
   2  Player, C (A3) vs. Player, D (A4).
   3  Player, F (A6) vs. Player, E (A5).
   4  Player, H (A8) vs. Player, G (A7).
Player, A (A1): 516 423 557 382
Player, B (A2): 540 535 411 617
Player, C (A3): 464 561 268 461
Player, D (A4): 402 466 484 384
Player, E (A5): 292 266 368 301
Player, F (A6): 260 347 386 500
Player, G (A7): 459 352 216 360
Player, H (A8): 346 399 359 393
Division A Round 4 Ratings

Rnk Won-Lost Spread OldR NewR +-R Player         Last Game
  1 4.0-0.0    +645 1700 1726 +26 Player, B (A2) W:617-384:A4
  2 3.0-1.0    +349 1600 1615 +15 Player, C (A3) W:461-382:A1
  3 3.0-1.0    +321 1800 1799  -1 Player, A (A1) L:382-461:A3
  4 2.0-2.0    -115 1300 1306  +6 Player, F (A6) W:500-393:A8
  5 2.0-2.0    -129 1500 1500  +0 Player, D (A4) L:384-617:A2
  6 1.0-3.0    -317 1400 1380 -20 Player, E (A5) L:301-360:A7
  7 1.0-3.0    -401 1200 1197  -3 Player, G (A7) W:360-301:A5
  8 0.0-4.0    -353 1100 1081 -19 Player, H (A8) L:393-500:A6
Player, A (A1): 516 423 557 382 359
Player, B (A2): 540 535 411 617 160
Player, C (A3): 464 561 268 461 196
Player, D (A4): 402 466 484 384 429
Player, E (A5): 292 266 368 301 550
Player, F (A6): 260 347 386 500 412
Player, G (A7): 459 352 216 360 314
Player, H (A8): 346 399 359 393 378
Division A Round 5 Ratings

Rnk Won-Lost Spread OldR NewR +-R Player         Last Game
  1 4.0-1.0    +520 1800 1806  +6 Player, A (A1) W:359-160:A2
  2 4.0-1.0    +446 1700 1715 +15 Player, B (A2) L:160-359:A1
  3 3.0-2.0    +116 1600 1603  +3 Player, C (A3) L:196-429:A4
  4 3.0-2.0    +104 1500 1512 +12 Player, D (A4) W:429-196:A3
  5 2.0-3.0    -179 1400 1388 -12 Player, E (A5) W:550-412:A6
  6 2.0-3.0    -253 1300 1297  -3 Player, F (A6) L:412-550:A5
  7 1.0-4.0    -289 1100 1093  -7 Player, H (A8) W:378-314:A7
  8 1.0-4.0    -465 1200 1185 -15 Player, G (A7) L:314-378:A8
Debug: [GIB] PairAllGibsons(8,4,1,2)
Debug: [GIB] Optimizing by computing BPFs only down to 5.
Debug: [CBPF] Now=>Fnl Wins Sprd Player (theoretical best finishes)
Debug: [CBPF]   1=>  1  5.0 +770 Player, A #1
Debug: [CBPF]   2=>  1  5.0 +696 Player, B #2
Debug: [CBPF]   3=>  2  4.0 +366 Player, C #3
Debug: [CBPF]   4=>  2  4.0 +354 Player, D #4
Debug: [CBPF]   5=>  4  3.0  +71 Player, E #5
Debug: [GIB] Gibson-equivalent ranks: 1 starting at 1
Debug: [GIB] Player ranked 2 can rise to 1, so player ranked 1 is not a Gibson.
Debug: [GIB] Gibsons found: 0
Debug: [GIB] 0 gibsons.
Debug: [GIB] PairAllGibsons(8,4,1,2)
Debug: [GIB] Optimizing by computing BPFs only down to 5.
Debug: [CBPF] Now=>Fnl Wins Sprd Player (theoretical best finishes)
Debug: [CBPF]   1=>  1  5.0 +770 Player, A #1
Debug: [CBPF]   2=>  1  5.0 +696 Player, B #2
Debug: [CBPF]   3=>  2  4.0 +366 Player, C #3
Debug: [CBPF]   4=>  2  4.0 +354 Player, D #4
Debug: [CBPF]   5=>  4  3.0  +71 Player, E #5
Debug: [GIB] Gibson-equivalent ranks: 1 starting at 1
Debug: [GIB] Player ranked 2 can rise to 1, so player ranked 1 is not a Gibson.
Debug: [GIB] Gibsons found: 0
Debug: [GIB] 0 gibsons.
Division A Round 6 Ranked Pairings

Board Who Plays Whom
   1  Player, A (A1) vs. Player, B (A2) repeat.
   2  Player, C (A3) vs. Player, D (A4) repeat.
   3  Player, E (A5) vs. Player, F (A6) repeat.
   4  Player, H (A8) vs. Player, G (A7) repeat.
Player, A (A1): 516 423 557 382 359 371
Player, B (A2): 540 535 411 617 160 404
Player, C (A3): 464 561 268 461 196 272
Player, D (A4): 402 466 484 384 429 308
Player, E (A5): 292 266 368 301 550 442
Player, F (A6): 260 347 386 500 412 336
Player, G (A7): 459 352 216 360 314 331
Player, H (A8): 346 399 359 393 378 428
Division A Round 6 Ratings

Rnk Won-Lost Spread OldR NewR +-R Player         Last Game
  1 5.0-1.0    +479 1700 1726 +26 Player, B (A2) W:404-371:A1
  2 4.0-2.0    +487 1800 1796  -4 Player, A (A1) L:371-404:A2
  3 4.0-2.0    +140 1500 1523 +23 Player, D (A4) W:308-272:A3
  4 3.0-3.0     +80 1600 1591  -9 Player, C (A3) L:272-308:A4
  5 3.0-3.0     -73 1400 1397  -3 Player, E (A5) W:442-336:A6
  6 2.0-4.0    -192 1100 1104  +4 Player, H (A8) W:428-331:A7
  7 2.0-4.0    -359 1300 1289 -11 Player, F (A6) L:336-442:A5
  8 1.0-5.0    -562 1200 1174 -26 Player, G (A7) L:331-428:A8
Debug: [GIB] PairAllGibsons(6,-1,6,2)
Debug: [GIB] Optimizing by computing BPFs only down to 5.
Debug: [CBPF] Now=>Fnl Wins Sprd Player (theoretical best finishes)
Debug: [CBPF]   1=>  1  6.0 +900 Player, BA #1
Debug: [CBPF]   2=>  1  6.0 +900 Player, BB #2
Debug: [CBPF]   3=>  1  6.0 +900 Player, BC #3
Debug: [CBPF]   4=>  1  6.0 +900 Player, BD #4
Debug: [CBPF]   5=>  1  6.0 +900 Player, BE #5
Debug: [GIB] Gibson-equivalent ranks: 1 starting at 1
Debug: [GIB] Player ranked 2 can rise to 1, so player ranked 1 is not a Gibson.
Debug: [GIB] Gibsons found: 0
Debug: [GIB] 0 gibsons.
Division B Round 1 Ranked Pairings

Board Who Plays Whom
   1  Player, BA (B1) vs. Player, BF (B6).
   2  Player, BB (B2) vs. Player, BE (B5).
   3  Player, BC (B3) vs. Player, BD (B4).
Debug: [GIB] PairAllGibsons(10,-1,6,2)
Debug: [GIB] Optimizing by computing BPFs only down to 5.
Debug: [CBPF] Now=>Fnl Wins Sprd Player (theoretical best finishes)
Debug: [CBPF]   1=>  1  6.0 +900 Player, CA #1
Debug: [CBPF]   2=>  1  6.0 +900 Player, CB #2
Debug: [CBPF]   3=>  1  6.0 +900 Player, CC #3
Debug: [CBPF]   4=>  1  6.0 +900 Player, CD #4
Debug: [CBPF]   5=>  1  6.0 +900 Player, CE #5
Debug: [GIB] Gibson-equivalent ranks: 1 starting at 1
Debug: [GIB] Player ranked 2 can rise to 1, so player ranked 1 is not a Gibson.
Debug: [GIB] Gibsons found: 0
Debug: [GIB] 0 gibsons.
Division C Round 1 Ranked Pairings

Board Who Plays Whom
   1  Player, CA (C1) vs. Player, CI (C9).
   2  Player, CB (C2) vs. Player, CJ (C10).
   3  Player, CC (C3) vs. Player, CF (C6).
   4  Player, CD (C4) vs. Player, CE (C5).
   5  Player, CG (C7) vs. Player, CH (C8).
#endstdout
#beginstderr
Error: You still need results for Round 3. [ernos]
Error: No pairings yet for Division A Round 4. [enopryet]
Error: You still need results for Round 3. [ernos]
Error: No pairings yet for Division A Round 4. [enopryet]
Error: You still need results for Round 3. [ernos]
Error: No pairings yet for Division A Round 4. [enopryet]
Error: You still need results for Round 5. [ernos]
Error: No pairings yet for Division A Round 6. [enopryet]
Error: You still need results for Round 5. [ernos]
Error: No pairings yet for Division A Round 6. [enopryet]
#endstderr
#endtest
