<Phony Benoni> has done an outstanding job in the intro of this tournament – allowing you to share the excitement as if you were watching each round as it was played.
But the Final (or Playoff) rounds are intermixed in the tournament – which means SCID can’t share in the excitement. We’re here to remedy that. First, let’s look at the output that alerted me to the problem:
>>> pts( RR_p ) [...] 79503 14 100 91 R13 Rice Memorial (1916) // New York USA (1916.01.17) [...]
So there appears to be 9 extra games in a 14-RR (14-player, single Round Robin). Reading <Phony>’s intro we see that there was a 5-player RR playoff (5*4/2 = 10 games). But we only have need to account for 9 extra games, not 10. Ah, the intro also mentions a missing game from the main tournament. So a stub needs to be created as well. OK, let’s save that for another post.
Right now we want to partition the tournament into a main tournament and a final. The last round of the main tournament was played on 1916.02.03, and the Finals commenced on 1916.02.06. That should make the following code more understandable:
>>> t = 79503 >>> TN[t] 'Rice Memorial (1916)' >>> G = TG[t] >>> for g in [g for g in G if g.Date > '1916.02.03']: g 1916.02.06 C01 56 (R1) = Capablanca, Jose Raul -- Kostic, Borislav 1916.02.06 D30 26 (R1) 1-0 Janowski, David -- Chajes, Oscar 1916.02.07 C12 66 (R2) 1-0 Chajes, Oscar -- Capablanca, Jose Raul 1916.02.07 A46 63 (R2) = Kostic, Borislav -- Kupchik, Abraham 1916.02.08 D37 34 (R3) = Chajes, Oscar -- Kupchik, Abraham 1916.02.08 D15 46 (R3) 0-1 Janowski, David -- Capablanca, Jose Raul 1916.02.09 D37 30 (R4) = Kupchik, Abraham -- Capablanca, Jose Raul 1916.02.09 C30 66 (R4) = Kostic, Borislav -- Janowski, David 1916.02.11 D15 44 (R5) 1-0 Janowski, David -- Kupchik, Abraham 1916.02.11 A46 30 (R5) 0-1 Kostic, Borislav -- Chajes, Oscar >>> f = open( "CG-update.pgn", "a" ) # Write the main tournament out. >>> for g in [g for g in G if g.Date <= '1916.02.03']: f.write( str(g) ) # Write the Final section out. >>> for g in [g for g in G if g.Date > '1916.02.03']: g.Event += " Final" g.EventDate = "1916.02.06" f.write( str(g) ) >>> f.close()