#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): 441
Player, B (A2): 337
Player, C (A3): 403
Player, D (A4): 474
Player, E (A5): 372
Player, F (A6): 310
Player, G (A7): 453
Player, H (A8): 309
Division A Round 1 Ratings

Rnk Won-Lost Spread OldR NewR +-R Player         Last Game
  1 1.0-0.0    +132 1800 1802  +2 Player, A (A1) W:441-309:A8
  2 1.0-0.0    +116 1200 1228 +28 Player, G (A7) W:453-337:A2
  3 1.0-0.0    +102 1500 1512 +12 Player, D (A4) W:474-372:A5
  4 1.0-0.0     +93 1600 1606  +6 Player, C (A3) W:403-310:A6
  5 0.0-1.0     -93 1300 1294  -6 Player, F (A6) L:310-403:A3
  6 0.0-1.0    -102 1400 1392  -8 Player, E (A5) L:372-474:A4
  7 0.0-1.0    -116 1700 1684 -16 Player, B (A2) L:337-453:A7
  8 0.0-1.0    -132 1100 1098  -2 Player, H (A8) L:309-441:A1
Player, A (A1): 441 494
Player, B (A2): 337 369
Player, C (A3): 403 434
Player, D (A4): 474 466
Player, E (A5): 372 410
Player, F (A6): 310 341
Player, G (A7): 453 275
Player, H (A8): 309 271
Division A Round 2 Ratings

Rnk Won-Lost Spread OldR NewR +-R Player         Last Game
  1 2.0-0.0    +297 1500 1516 +16 Player, D (A4) W:466-271:A8
  2 2.0-0.0    +252 1600 1610 +10 Player, C (A3) W:434-275:A7
  3 2.0-0.0    +216 1800 1805  +5 Player, A (A1) W:494-410:A5
  4 1.0-1.0     -43 1200 1215 +15 Player, G (A7) L:275-434:A3
  5 1.0-1.0     -88 1700 1688 -12 Player, B (A2) W:369-341:A6
  6 0.0-2.0    -121 1300 1290 -10 Player, F (A6) L:341-369:A2
  7 0.0-2.0    -186 1400 1387 -13 Player, E (A5) L:410-494:A1
  8 0.0-2.0    -327 1100 1094  -6 Player, H (A8) L:271-466:A4
Player, A (A1): 441 494 425
Player, B (A2): 337 369 483
Player, C (A3): 403 434 370
Player, D (A4): 474 466 348
Player, E (A5): 372 410 316
Player, F (A6): 310 341 312
Player, G (A7): 453 275 441
Player, H (A8): 309 271 423
Division A Round 3 Ratings

Rnk Won-Lost Spread OldR NewR +-R Player         Last Game
  1 3.0-0.0    +293 1800 1809  +9 Player, A (A1) W:425-348:A4
  2 2.0-1.0    +220 1500 1507  +7 Player, D (A4) L:348-425:A1
  3 2.0-1.0    +139 1600 1602  +2 Player, C (A3) L:370-483:A2
  4 2.0-1.0     +86 1200 1233 +33 Player, G (A7) W:441-312:A6
  5 2.0-1.0     +25 1700 1697  -3 Player, B (A2) W:483-370:A3
  6 1.0-2.0    -220 1100 1108  +8 Player, H (A8) W:423-316:A5
  7 0.0-3.0    -250 1300 1279 -21 Player, F (A6) L:312-441:A7
  8 0.0-3.0    -293 1400 1373 -27 Player, E (A5) L:316-423:A8
Debug: [GUELPH] A: 1 4 8 5
Debug: [GUELPH] B: 3 7 2 6
Division A Round 4 Ranked Pairings

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

Board Who Plays Whom
   1  Player, A (A1) vs. Player, C (A3).
   2  Player, D (A4) vs. Player, G (A7).
   3  Player, B (A2) vs. Player, H (A8).
   4  Player, F (A6) vs. Player, E (A5).
Player, A (A1): 441 494 425 354
Player, B (A2): 337 369 483 500
Player, C (A3): 403 434 370 467
Player, D (A4): 474 466 348 321
Player, E (A5): 372 410 316 292
Player, F (A6): 310 341 312 319
Player, G (A7): 453 275 441 441
Player, H (A8): 309 271 423 390
Division A Round 4 Ratings

Rnk Won-Lost Spread OldR NewR +-R Player         Last Game
  1 3.0-1.0    +285 1600 1611 +11 Player, C (A3) W:467-321:A4
  2 3.0-1.0    +233 1700 1703  +3 Player, B (A2) W:500-292:A5
  3 3.0-1.0    +206 1800 1796  -4 Player, A (A1) L:354-441:A7
  4 3.0-1.0    +173 1200 1263 +63 Player, G (A7) W:441-354:A1
  5 2.0-2.0     +74 1500 1499  -1 Player, D (A4) L:321-467:A3
  6 2.0-2.0    -149 1100 1122 +22 Player, H (A8) W:390-319:A6
  7 0.0-4.0    -321 1300 1267 -33 Player, F (A6) L:319-390:A8
  8 0.0-4.0    -501 1400 1367 -33 Player, E (A5) L:292-500:A2
Player, A (A1): 441 494 425 354 409
Player, B (A2): 337 369 483 500 482
Player, C (A3): 403 434 370 467 495
Player, D (A4): 474 466 348 321 449
Player, E (A5): 372 410 316 292 358
Player, F (A6): 310 341 312 319 362
Player, G (A7): 453 275 441 441 274
Player, H (A8): 309 271 423 390 286
Division A Round 5 Ratings

Rnk Won-Lost Spread OldR NewR +-R Player         Last Game
  1 4.0-1.0    +429 1700 1705  +5 Player, B (A2) W:482-286:A8
  2 4.0-1.0    +371 1600 1624 +24 Player, C (A3) W:495-409:A1
  3 3.0-2.0    +249 1500 1505  +5 Player, D (A4) W:449-274:A7
  4 3.0-2.0    +120 1800 1782 -18 Player, A (A1) L:409-495:A3
  5 3.0-2.0      -2 1200 1246 +46 Player, G (A7) L:274-449:A4
  6 2.0-3.0    -345 1100 1119 +19 Player, H (A8) L:286-482:A2
  7 1.0-4.0    -317 1300 1278 -22 Player, F (A6) W:362-358:A5
  8 0.0-5.0    -505 1400 1356 -44 Player, E (A5) L:358-362:A6
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 +679 Player, B #2
Debug: [CBPF]   2=>  1  5.0 +621 Player, C #3
Debug: [CBPF]   3=>  2  4.0 +499 Player, D #4
Debug: [CBPF]   4=>  2  4.0 +370 Player, A #1
Debug: [CBPF]   5=>  2  4.0 +248 Player, G #7
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 +679 Player, B #2
Debug: [CBPF]   2=>  1  5.0 +621 Player, C #3
Debug: [CBPF]   3=>  2  4.0 +499 Player, D #4
Debug: [CBPF]   4=>  2  4.0 +370 Player, A #1
Debug: [CBPF]   5=>  2  4.0 +248 Player, G #7
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, B (A2) vs. Player, C (A3) repeat.
   2  Player, D (A4) vs. Player, A (A1) repeat.
   3  Player, G (A7) vs. Player, H (A8).
   4  Player, F (A6) vs. Player, E (A5) repeat.
Player, A (A1): 441 494 425 354 409 407
Player, B (A2): 337 369 483 500 482 433
Player, C (A3): 403 434 370 467 495 478
Player, D (A4): 474 466 348 321 449 439
Player, E (A5): 372 410 316 292 358 370
Player, F (A6): 310 341 312 319 362 456
Player, G (A7): 453 275 441 441 274 409
Player, H (A8): 309 271 423 390 286 347
Division A Round 6 Ratings

Rnk Won-Lost Spread OldR NewR +-R Player         Last Game
  1 5.0-1.0    +416 1600 1640 +40 Player, C (A3) W:478-433:A2
  2 4.0-2.0    +384 1700 1694  -6 Player, B (A2) L:433-478:A3
  3 4.0-2.0    +281 1500 1520 +20 Player, D (A4) W:439-407:A1
  4 4.0-2.0     +60 1200 1258 +58 Player, G (A7) W:409-347:A8
  5 3.0-3.0     +88 1800 1768 -32 Player, A (A1) L:407-439:A4
  6 2.0-4.0    -231 1300 1290 -10 Player, F (A6) W:456-370:A5
  7 2.0-4.0    -407 1100 1111 +11 Player, H (A8) L:347-409:A7
  8 0.0-6.0    -591 1400 1344 -56 Player, E (A5) L:370-456:A6
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
