Round-robin tournament schedule: Difference between revisions
Content added Content deleted
(Added BASIC256 and Yabasic. Grouping BASIC dialects) |
imported>Thebeez |
||
Line 430: | Line 430: | ||
End |
End |
||
' helper function to allow byes to be printed intelligently |
|||
_Nob Param (3) : Return (Iif (a@ = b@ * c@, Dup(" B"), Str("_#", b@))) |
|||
_Roundrob |
_Roundrob |
||
Line 447: | Line 444: | ||
For c@ = 1 To a@-1 ' print the pairings according to the scheme |
For c@ = 1 To a@-1 ' print the pairings according to the scheme |
||
For c@ = 1 To a@-1 ' print the pairings according to the scheme |
|||
Print Using "Round __: |
Print Using "Round __: ";c@; |
||
' 1 2 3 4 |
' 1 2 3 4 |
||
For d@ = 1 To a@/2 ' 5 6 7 8 |
For d@ = 1 To a@/2 ' 5 6 7 8 |
||
Print |
Print Show(Iif (a@ = @(d@) * b@, "( B - ", Str(" (_# -! ", @(d@)))); |
||
Print Show( |
Print Show(Iif (a@ = @(d@+a@/2) * b@, " B) ", Str("_#) ", @(d@+a@/2)))); |
||
Next |
Next |
||