Tourney Tree
A double-elimination tournament tree which will manage a tournament of 5-8 players. For those unfamiliar, a double-elimination tournament requires each player to lose 2 games before being knocked out of the tournament. In the end, the champion will be the one player who *didn't* lose two games.
Instructions
Copy and paste the below code into a compatible MUSH or MUX.
MUSHCode for Tourney Tree
@create Tourney Tree
@link Tourney Tree = #8808
@set Tourney Tree = LINK_OK
@set Tourney Tree = VISUAL
@set Tourney Tree = !NO_COMMAND
&10 Tourney Tree=[space(10)]
&2 Tourney Tree=[space(2)]
&7 Tourney Tree=[space(7)]
&8 Tourney Tree=[space(8)]
&9 Tourney Tree=[space(9)]
&CMD.CUSTOM Tourney Tree=$+tourney/custom ?=*:@pemit %#={Custom Text Line #%0 set to: [left(%1,34)]};&custom%0 me=[left(%1,34)]
&CMD.FILL Tourney Tree=$+tourney/fill *=*:@pemit %#={[left(%1,9)] placed on Line #%0};&line%0 me=%1
&CMD.HELP Tourney Tree=$+tourney/help:@pemit %#=Tourney Controller Commands%r%r[ansi(h,+tourney/reset)]%rResets the tree to the 'blank' or 'unseeded' version (i.e., it wipes the tree).%r%r[ansi(h,+tourney custom <#>=<less than or equal to 34 characters of text>)]%rThis sets the various custom text slots to your custom text.%r%r[ansi(h,+tourney/fill <#>=<Name>)]%rUsed for seeding, this places <Name> on line number <#>.%r Example: +tourney/fill 1=Trispis%r%r[ansi(h,+tourney/winner <#>=<Name>)]%rRecords <Name> as the winner of game number <#>.%r%r[ansi(h,+tourney/loser <#>=<Name>)]%rRecords <Name> as the loser of game number <#>.%r%r[ansi(h,+tourney/score <#>=<#-#>)]%rRecords the score <#-#> for game number <#>.%r%r[ansi(h,+tourney/week <#>)]%rSets the current 'week' (as displayed in the view> to number <#>%r%r[ansi(h,+tourney/place <#>=<Name>)]%rPuts the name <Name> into place number <#>.%r
&CMD.LOSER Tourney Tree=$+tourney/loser *=*:@pemit %#={[left(%1,9)] set as Loser of game %0};@set me=l%0:%1
&CMD.PLACE Tourney Tree=$+tourney/place ?=*:@pemit %#={Place #%0 set to %1.};&pl%0 me=%1
&CMD.RESET Tourney Tree=$+tourney/reset:@pemit %#=Tournament Tree RESET;&trig.reset me=iter([lattr(setr(p,last(lparent(me)))/reset.w*)] [lattr(%qp/reset.score*)] [lattr(%qp/reset.pl*)] [lattr(%qp/reset.l*)] [lattr(%qp/reset.disp*)] [lattr(%qp/reset.custom*)],@cpattr %qp/%i0=me/[after(%i0,RESET.)];);@trig me/trig.reset;&trig.reset me
&CMD.SCORE Tourney Tree=$+tourney/score *=*:@pemit %#={Game %0 score set: %1};&score%0 me=%1
&CMD.WEEK Tourney Tree=$+tourney/week ?:@pemit %#={Week set to %0};&week me=%0
&CMD.WINNER Tourney Tree=$+tourney/winner *=*:@pemit %#={[left(%1,9)] set as Winner of game %0};@set me=w%0:%1
&CUSTOM1 Tourney Tree=+tourney/custom 1=This line's text
&CUSTOM2 Tourney Tree=+tourney/custom 2=This line's text
&CUSTOM3 Tourney Tree=+tourney/custom 3=This line's text
&CUSTOM4 Tourney Tree=Week --- Games
@set Tourney Tree=CUSTOM5:%b 1 %b<-> %b1-12
@set Tourney Tree=CUSTOM6:%b 2 %b<-> 13-20
@set Tourney Tree=CUSTOM7:%b 3 %b<-> 21-26
@set Tourney Tree=CUSTOM8:%b 4 %b<-> 27\,28
@set Tourney Tree=CUSTOM9:%b 5 %b<-> 29-31
&DESCRIBE Tourney Tree=[iter(lnum(1,51),%r[switch(%#,#1623,rjust(%i0,2))] [u(disp%i0)])]
@set Tourney Tree/DESCRIBE=no_command visual prefixmatch public nearby
&DISP1 Tourney Tree=[center(left(v(line1),9),9,_)] [u(10)][u(10)] [u(2)] [repeat(:,40)]
&DISP10 Tourney Tree=[u(7)] [ansi(rh,3)]|[center(left(s(v(w3)),9),9,_)] [u(9)]|[u(9)]|[u(10)] [u(2)] :: [center(v(custom5),14)] ::
&DISP11 Tourney Tree=[center(left(v(line6),9),9,_)]|[rjust(s(v(score3)),7)][u(2)]|[u(9)]|[u(9)]|[u(10)] [u(2)] :: [center(v(custom6),14)] ::
&DISP12 Tourney Tree=[u(10)][u(7)][ansi(rh,14)]|[center(left(s(v(w14)),9),9,_)]|[u(9)]|[u(10)] [u(2)] :: [center(v(custom7),14)] ::
&DISP13 Tourney Tree=[center(left(v(line7),9),9,_)] [u(9)]|[rjust(s(v(score14)),7)][u(2)] [u(9)]|[u(10)] [u(2)] :: [center(v(custom8),14)] ::
&DISP14 Tourney Tree=[u(7)] [ansi(rh,4)]|[center(left(s(v(w4)),9),9,_)]|[u(10)][u(9)]|[u(10)] [u(2)] :: [center(v(custom9),14)] ::
&DISP15 Tourney Tree=[center(left(v(line8),9),9,_)]|[rjust(s(v(score4)),7)][u(2)] [u(10)][u(9)]|[u(10)] [u(2)] [repeat(:,20)]
&DISP16 Tourney Tree=[u(10)][u(10)][u(10)][u(7)][ansi(rh,28)]|_[center(left(v(w28),9),9,_)]
&DISP17 Tourney Tree=[center(left(v(line9),9),9,_)] [u(10)][u(10)][u(9)]|[rjust(v(score28),7)][u(2)] :
&DISP18 Tourney Tree=[u(7)] [ansi(rh,5)]|[center(left(s(v(w5)),9),9,_)] [u(10)][u(9)]|[u(10)]:
&DISP19 Tourney Tree=[center(left(v(line10),9),9,_)]|[rjust(s(v(score5)),7)][u(2)]|[u(10)][u(9)]|[u(10)]:
&DISP2 Tourney Tree=[u(7)] [ansi(rh,1)]|[center(left(s(v(w1)),9),9,_)] [u(10)] [u(2)] :: [center(v(custom1),34)] ::
&DISP20 Tourney Tree=[u(10)][u(7)][ansi(rh,15)]|[center(left(s(v(w15)),9),9,_)] [u(9)]|[u(10)]:
&DISP21 Tourney Tree=[center(left(v(line11),9),9,_)] [u(9)]|[rjust(s(v(score15)),7)][u(2)]|[u(9)]|[u(10)]:
&DISP22 Tourney Tree=[u(7)] [ansi(rh,6)]|[center(left(s(v(w6)),9),9,_)]|[u(9)]|[u(9)]| [u(7)][ansi(r,30)]:...[center(left(v(w30),9),9,.)]
&DISP23 Tourney Tree=[center(left(v(line12),9),9,_)]|[rjust(s(v(score6)),7)][u(2)] [u(9)]|[u(9)]| [u(9)]:[u(2)] [rjust(v(score30),7)][u(2)]
&DISP24 Tourney Tree=[u(10)][u(10)][u(7)][ansi(rh,22)]|[center(left(v(w22),9),9,_)]| [u(9)]: [u(2)] :
&DISP25 Tourney Tree=[center(left(v(line13),9),9,_)] [u(10)][u(9)]|[rjust(v(score22),7)][u(2)] [u(10)]: [ansi(r,31)] :[center(v(pl1),15,_)]
&DISP26 Tourney Tree=[u(7)] [ansi(rh,7)]|[center(left(s(v(w7)),9),9,_)] [u(9)]| [u(10)][u(9)]: [u(2)] [u(2)][center(v(score31),15)]
&DISP27 Tourney Tree=[center(left(v(line14),9),9,_)]|[rjust(s(v(score7)),7)][u(2)]|[u(9)]| [center(left(v(l28),9),9,.)].[u(9)]:
&DISP28 Tourney Tree=[u(10)][u(7)][ansi(rh,16)]|[center(left(s(v(w16)),9),9,_)]| [u(7)][ansi(r,29)]:[center(left(v(w29),9),9,.)]: [u(2)][u(2)][center(v(pl2),15,_)]
&DISP29 Tourney Tree=[center(left(v(line15),9),9,_)] [u(9)]|[rjust(s(v(score16)),7)] [u(2)] [center(left(v(w27),9),9,.)]:[rjust(v(score29),7)]
&DISP3 Tourney Tree=[center(left(v(line2),9),9,_)]|[rjust(s(v(score1)),7)][u(2)]|[u(10)] [u(2)] :: [center(v(custom2),34)] ::
&DISP30 Tourney Tree=[u(7)] [ansi(rh,8)]|[center(left(s(v(w8)),9),9,_)]|[u(10)][u(10)][u(9)]
&DISP31 Tourney Tree=[center(left(v(line16),9),9,_)]|[rjust(s(v(score8)),7)][u(2)] [u(10)] [u(10)] [u(10)] [u(2)] [center(v(pl3),15,_)]
&DISP32 Tourney Tree=[u(10)][u(10)][u(10)][center(left(v(l22),9),9,_)]
&DISP33 Tourney Tree=[u(10)][center(left(v(l13),9),9,_)] [u(10)][u(9)]|
&DISP34 Tourney Tree=[center(left(s(v(l8)),9),9,_)] [u(7)][ansi(rh,17)]|[center(left(s(v(w17)),9),9,_)] [u(9)]|
&DISP35 Tourney Tree=[u(8)][ansi(rh,9)]|[center(left(s(v(w9)),9),9,_)]|[rjust(s(v(score17)),7)][u(2)]|[u(7)][ansi(rh,25)]|[center(left(v(w25),9),9,_)] [u(9)]
&DISP36 Tourney Tree=[center(left(s(v(l7)),9),9,_)]|[rjust(s(v(score9)),7)][u(2)] [u(9)]|[u(9)]|[rjust(v(score25),7)][u(2)]|[u(9)]
&DISP37 Tourney Tree=[u(10)][u(10)][u(7)][ansi(rh,23)]|[center(left(v(w23),9),9,_)]|[u(9)]|[u(9)]
&DISP38 Tourney Tree=[u(10)][center(left(s(v(l14)),9),9,_)] [u(9)]|[rjust(v(score23),7)][u(2)] [u(9)]|[u(9)]
&DISP39 Tourney Tree=[center(left(s(v(l6)),9),9,_)] [u(7)][ansi(rh,18)]|[center(left(s(v(w18)),9),9,_)]|[u(10)][u(9)]|[u(9)]
&DISP4 Tourney Tree=[u(10)][u(7)][ansi(rh,13)]|[center(left(s(v(w13)),9),9,_)][u(2)][u(2)] :: [center(v(custom3),34)] ::
&DISP40 Tourney Tree=[u(7)][ansi(rh,10)]|[center(left(s(v(w10)),9),9,_)]|[rjust(s(v(score18)),7)][u(2)] [u(10)][u(7)][ansi(rh,27)]|[center(left(v(w27),9),9,_)]
&DISP41 Tourney Tree=[center(left(s(v(l5)),9),9,_)]|[rjust(s(v(score10)),7)][u(2)] [u(10)][u(10)][u(9)]|[rjust(v(score27),7)]
&DISP42 Tourney Tree=[u(10)][u(10)][u(10)][center(left(v(l21),9),9,_)] [u(9)]|
&DISP43 Tourney Tree=[u(10)][center(left(s(v(l15)),9),9,_)] [u(10)][u(9)]|[u(9)]|
&DISP44 Tourney Tree=[center(left(s(v(l4)),9),9,_)] [u(7)][ansi(rh,19)]|[center(left(s(v(w19)),9),9,_)] [u(9)]|[u(9)]|
&DISP45 Tourney Tree=[u(7)][ansi(rh,11)]|[center(left(s(v(w11)),9),9,_)]|[rjust(s(v(score19)),7)][u(2)]|[u(7)][ansi(rh,26)]|[center(left(v(w26),9),9,_)]|
&DISP46 Tourney Tree=[center(left(s(v(l3)),9),9,_)]|[rjust(s(v(score11)),7)][u(2)] [u(9)]|[u(9)]|[rjust(v(score26),7)]
&DISP47 Tourney Tree=[u(10)][u(10)][u(7)][ansi(rh,24)]|[center(left(v(w24),9),9,_)]|
&DISP48 Tourney Tree=[u(10)][center(left(s(v(l16)),9),9,_)] [u(9)]|[rjust(v(score24),7)]
&DISP49 Tourney Tree=[center(left(s(v(l2)),9),9,_)] [u(7)][ansi(rh,20)]|[center(left(s(v(w20)),9),9,_)]|
&DISP5 Tourney Tree=[center(left(v(line3),9),9,_)] [u(9)]|[rjust(s(v(score13)),7)][u(2)]| [u(2)] [repeat(:,40)]
&DISP50 Tourney Tree=[u(7)][ansi(rh,12)]|[center(left(s(v(w12)),9),9,_)]|[rjust(s(v(score20)),7)]
&DISP51 Tourney Tree=[center(left(u(l1),9),9,_)]|[rjust(u(score12),7)]
&DISP6 Tourney Tree=[u(7)] [ansi(rh,2)]|[center(left(s(v(w2)),9),9,_)]|[u(9)]|
&DISP7 Tourney Tree=[center(left(v(line4),9),9,_)]|[rjust(s(v(score2)),7)][u(2)][u(10)]|
&DISP8 Tourney Tree=[u(10)][u(10)][u(7)][ansi(rh,21)]|[center(left(v(w21),9),9,_)] [u(10)] [u(2)] [repeat(:,20)]
&DISP9 Tourney Tree=[center(left(v(line5),9),9,_)] [u(10)][u(9)]|[rjust(v(score21),7)][u(2)]|[u(10)] [u(2)] :: [center(v(custom4),14)] ::
&HLP.VIEW Tourney Tree=There are three ways to view the tournament tree.%r%r[ljust(+tourney/view,20)]View the whole tree (spammy).%r%r[ljust(+tourney/topview,20)]View the top half (winners bracket) only.%r%r[ljust(+tourney/botview,20)]View the bottom half (losers bracket) only.
&L1 Tourney Tree=ifelse(strmatch(ucstr(v(line2)),BYE),BYE,L G 1)
&L10 Tourney Tree=L G 10
&L11 Tourney Tree=L G 11
&L12 Tourney Tree=L G 12
&L13 Tourney Tree=L G 13
&L14 Tourney Tree=L G 14
&L15 Tourney Tree=L G 15
&L16 Tourney Tree=L G 16
&L17 Tourney Tree=L G 17
&L18 Tourney Tree=L G 18
&L19 Tourney Tree=L G 19
&L2 Tourney Tree=ifelse(strmatch(ucstr(v(line3)),BYE),BYE,L G 2)
&L20 Tourney Tree=L G 20
&L21 Tourney Tree=L G 21
&L22 Tourney Tree=L G 22
&L23 Tourney Tree=L G 23
&L24 Tourney Tree=L G 24
&L25 Tourney Tree=L G 25
&L26 Tourney Tree=L G 26
&L27 Tourney Tree=L G 27
&L28 Tourney Tree=L G 28
&L3 Tourney Tree=ifelse(strmatch(ucstr(v(line6)),BYE),BYE,L G 3)
&L4 Tourney Tree=ifelse(strmatch(ucstr(v(line7)),BYE),BYE,L G 4)
&L5 Tourney Tree=ifelse(strmatch(ucstr(v(line10)),BYE),BYE,L G 5)
&L6 Tourney Tree=ifelse(strmatch(ucstr(v(line11)),BYE),BYE,L G 6)
&L7 Tourney Tree=ifelse(strmatch(ucstr(v(line14)),BYE),BYE,L G 7)
&L8 Tourney Tree=ifelse(strmatch(ucstr(v(line15)),BYE),BYE,L G 8)
&L9 Tourney Tree=L G 9
&LINE1 Tourney Tree=Seed 1
&LINE10 Tourney Tree=Line 10
&LINE11 Tourney Tree=Line 11
&LINE12 Tourney Tree=Seed 5
&LINE13 Tourney Tree=Seed 7
&LINE14 Tourney Tree=Line 14
&LINE15 Tourney Tree=Line 15
&LINE16 Tourney Tree=Seed 2
&LINE2 Tourney Tree=Line 2
&LINE3 Tourney Tree=Line 3
&LINE4 Tourney Tree=Seed 8
&LINE5 Tourney Tree=Seed 6
&LINE6 Tourney Tree=Line 6
&LINE7 Tourney Tree=Line 7
&LINE8 Tourney Tree=Seed 4
&LINE9 Tourney Tree=Seed 3
&LINEWG2 Tourney Tree=Qua
@set Tourney Tree/LINEWG2=no_command
&PL1 Tourney Tree=First Place
&PL2 Tourney Tree=Second Place
&PL3 Tourney Tree=Third Place
&RESET.10 Tourney Tree=[space(10)]
&RESET.2 Tourney Tree=[space(2)]
&RESET.7 Tourney Tree=[space(7)]
&RESET.8 Tourney Tree=[space(8)]
&RESET.9 Tourney Tree=[space(9)]
&RESET.CUSTOM1 Tourney Tree=+tourney/custom 1=This line's text
&RESET.CUSTOM2 Tourney Tree=+tourney/custom 2=This line's text
&RESET.CUSTOM3 Tourney Tree=+tourney/custom 3=This line's text
&RESET.CUSTOM4 Tourney Tree=Week --- Games
@set Tourney Tree=RESET.CUSTOM5:%b 1 %b<-> %b1-12
@set Tourney Tree=RESET.CUSTOM6:%b 2 %b<-> 13-20
@set Tourney Tree=RESET.CUSTOM7:%b 3 %b<-> 21-26
@set Tourney Tree=RESET.CUSTOM8:%b 4 %b<-> 27\,28
@set Tourney Tree=RESET.CUSTOM9:%b 5 %b<-> 29-31
&RESET.DESCRIBE Tourney Tree=[iter(lnum(1,51),%r [u(disp%i0)])]
@set Tourney Tree/RESET.DESCRIBE=no_command visual
&RESET.DISP1 Tourney Tree=[center(left(v(line1),9),9,_)] [u(10)][u(10)] [u(2)] [repeat(:,40)]
&RESET.DISP10 Tourney Tree=[u(7)] [ansi(rh,3)]|[center(left(s(v(w3)),9),9,_)] [u(9)]|[u(9)]|[u(10)] [u(2)] :: [center(v(custom5),14)] ::
&RESET.DISP11 Tourney Tree=[center(left(v(line6),9),9,_)]|[rjust(s(v(score3)),7)][u(2)]|[u(9)]|[u(9)]|[u(10)] [u(2)] :: [center(v(custom6),14)] ::
&RESET.DISP12 Tourney Tree=[u(10)][u(7)][ansi(rh,14)]|[center(left(s(v(w14)),9),9,_)]|[u(9)]|[u(10)] [u(2)] :: [center(v(custom7),14)] ::
&RESET.DISP13 Tourney Tree=[center(left(v(line7),9),9,_)] [u(9)]|[rjust(s(v(score14)),7)][u(2)] [u(9)]|[u(10)] [u(2)] :: [center(v(custom8),14)] ::
&RESET.DISP14 Tourney Tree=[u(7)] [ansi(rh,4)]|[center(left(s(v(w4)),9),9,_)]|[u(10)][u(9)]|[u(10)] [u(2)] :: [center(v(custom9),14)] ::
&RESET.DISP15 Tourney Tree=[center(left(v(line8),9),9,_)]|[rjust(s(v(score4)),7)][u(2)] [u(10)][u(9)]|[u(10)] [u(2)] [repeat(:,20)]
&RESET.DISP16 Tourney Tree=[u(10)][u(10)][u(10)][u(7)][ansi(rh,28)]|_[center(left(v(w28),9),9,_)]
&RESET.DISP17 Tourney Tree=[center(left(v(line9),9),9,_)] [u(10)][u(10)][u(9)]|[rjust(v(score28),7)][u(2)] :
&RESET.DISP18 Tourney Tree=[u(7)] [ansi(rh,5)]|[center(left(s(v(w5)),9),9,_)] [u(10)][u(9)]|[u(10)]:
&RESET.DISP19 Tourney Tree=[center(left(v(line10),9),9,_)]|[rjust(s(v(score5)),7)][u(2)]|[u(10)][u(9)]|[u(10)]:
&RESET.DISP2 Tourney Tree=[u(7)] [ansi(rh,1)]|[center(left(s(v(w1)),9),9,_)] [u(10)] [u(2)] :: [center(v(custom1),34)] ::
&RESET.DISP20 Tourney Tree=[u(10)][u(7)][ansi(rh,15)]|[center(left(s(v(w15)),9),9,_)] [u(9)]|[u(10)]:
&RESET.DISP21 Tourney Tree=[center(left(v(line11),9),9,_)] [u(9)]|[rjust(s(v(score15)),7)][u(2)]|[u(9)]|[u(10)]:
&RESET.DISP22 Tourney Tree=[u(7)] [ansi(rh,6)]|[center(left(s(v(w6)),9),9,_)]|[u(9)]|[u(9)]| [u(7)][ansi(r,30)]:...[center(left(v(w30),9),9,.)]
&RESET.DISP23 Tourney Tree=[center(left(v(line12),9),9,_)]|[rjust(s(v(score6)),7)][u(2)] [u(9)]|[u(9)]| [u(9)]:[u(2)] [rjust(v(score30),7)][u(2)]
&RESET.DISP24 Tourney Tree=[u(10)][u(10)][u(7)][ansi(rh,22)]|[center(left(v(w22),9),9,_)]| [u(9)]: [u(2)] :
&RESET.DISP25 Tourney Tree=[center(left(v(line13),9),9,_)] [u(10)][u(9)]|[rjust(v(score22),7)][u(2)] [u(10)]: [ansi(r,31)] :[center(v(pl1),15,_)]
&RESET.DISP26 Tourney Tree=[u(7)] [ansi(rh,7)]|[center(left(s(v(w7)),9),9,_)] [u(9)]| [u(10)][u(9)]: [u(2)] [u(2)][center(v(score31),15)]
&RESET.DISP27 Tourney Tree=[center(left(v(line14),9),9,_)]|[rjust(s(v(score7)),7)][u(2)]|[u(9)]| [center(left(v(l28),9),9,.)].[u(9)]:
&RESET.DISP28 Tourney Tree=[u(10)][u(7)][ansi(rh,16)]|[center(left(s(v(w16)),9),9,_)]| [u(7)][ansi(r,29)]:[center(left(v(w29),9),9,.)]: [u(2)][u(2)][center(v(pl2),15,_)]
&RESET.DISP29 Tourney Tree=[center(left(v(line15),9),9,_)] [u(9)]|[rjust(s(v(score16)),7)] [u(2)] [center(left(v(w27),9),9,.)]:[rjust(v(score29),7)]
&RESET.DISP3 Tourney Tree=[center(left(v(line2),9),9,_)]|[rjust(s(v(score1)),7)][u(2)]|[u(10)] [u(2)] :: [center(v(custom2),34)] ::
&RESET.DISP30 Tourney Tree=[u(7)] [ansi(rh,8)]|[center(left(s(v(w8)),9),9,_)]|[u(10)][u(10)][u(9)]
&RESET.DISP31 Tourney Tree=[center(left(v(line16),9),9,_)]|[rjust(s(v(score8)),7)][u(2)] [u(10)] [u(10)] [u(10)] [u(2)] [center(v(pl3),15,_)]
&RESET.DISP32 Tourney Tree=[u(10)][u(10)][u(10)][center(left(v(l22),9),9,_)]
&RESET.DISP33 Tourney Tree=[u(10)][center(left(v(l13),9),9,_)] [u(10)][u(9)]|
&RESET.DISP34 Tourney Tree=[center(left(s(v(l8)),9),9,_)] [u(7)][ansi(rh,17)]|[center(left(s(v(w17)),9),9,_)] [u(9)]|
&RESET.DISP35 Tourney Tree=[u(8)][ansi(rh,9)]|[center(left(s(v(w9)),9),9,_)]|[rjust(s(v(score17)),7)][u(2)]|[u(7)][ansi(rh,25)]|[center(left(v(w25),9),9,_)] [u(9)]
&RESET.DISP36 Tourney Tree=[center(left(s(v(l7)),9),9,_)]|[rjust(s(v(score9)),7)][u(2)] [u(9)]|[u(9)]|[rjust(v(score25),7)][u(2)]|[u(9)]
&RESET.DISP37 Tourney Tree=[u(10)][u(10)][u(7)][ansi(rh,23)]|[center(left(v(w23),9),9,_)]|[u(9)]|[u(9)]
&RESET.DISP38 Tourney Tree=[u(10)][center(left(s(v(l14)),9),9,_)] [u(9)]|[rjust(v(score23),7)][u(2)] [u(9)]|[u(9)]
&RESET.DISP39 Tourney Tree=[center(left(s(v(l6)),9),9,_)] [u(7)][ansi(rh,18)]|[center(left(s(v(w18)),9),9,_)]|[u(10)][u(9)]|[u(9)]
&RESET.DISP4 Tourney Tree=[u(10)][u(7)][ansi(rh,13)]|[center(left(s(v(w13)),9),9,_)][u(2)][u(2)] :: [center(v(custom3),34)] ::
&RESET.DISP40 Tourney Tree=[u(7)][ansi(rh,10)]|[center(left(s(v(w10)),9),9,_)]|[rjust(s(v(score18)),7)][u(2)] [u(10)][u(7)][ansi(rh,27)]|[center(left(v(w27),9),9,_)]
&RESET.DISP41 Tourney Tree=[center(left(s(v(l5)),9),9,_)]|[rjust(s(v(score10)),7)][u(2)] [u(10)][u(10)][u(9)]|[rjust(v(score27),7)]
&RESET.DISP42 Tourney Tree=[u(10)][u(10)][u(10)][center(left(v(l21),9),9,_)] [u(9)]|
&RESET.DISP43 Tourney Tree=[u(10)][center(left(s(v(l15)),9),9,_)] [u(10)][u(9)]|[u(9)]|
&RESET.DISP44 Tourney Tree=[center(left(s(v(l4)),9),9,_)] [u(7)][ansi(rh,19)]|[center(left(s(v(w19)),9),9,_)] [u(9)]|[u(9)]|
&RESET.DISP45 Tourney Tree=[u(7)][ansi(rh,11)]|[center(left(s(v(w11)),9),9,_)]|[rjust(s(v(score19)),7)][u(2)]|[u(7)][ansi(rh,26)]|[center(left(v(w26),9),9,_)]|
&RESET.DISP46 Tourney Tree=[center(left(s(v(l3)),9),9,_)]|[rjust(s(v(score11)),7)][u(2)] [u(9)]|[u(9)]|[rjust(v(score26),7)]
&RESET.DISP47 Tourney Tree=[u(10)][u(10)][u(7)][ansi(rh,24)]|[center(left(v(w24),9),9,_)]|
&RESET.DISP48 Tourney Tree=[u(10)][center(left(s(v(l16)),9),9,_)] [u(9)]|[rjust(v(score24),7)]
&RESET.DISP49 Tourney Tree=[center(left(s(v(l2)),9),9,_)] [u(7)][ansi(rh,20)]|[center(left(s(v(w20)),9),9,_)]|
&RESET.DISP5 Tourney Tree=[center(left(v(line3),9),9,_)] [u(9)]|[rjust(s(v(score13)),7)][u(2)]| [u(2)] [repeat(:,40)]
&RESET.DISP50 Tourney Tree=[u(7)][ansi(rh,12)]|[center(left(s(v(w12)),9),9,_)]|[rjust(s(v(score20)),7)]
&RESET.DISP51 Tourney Tree=[center(left(u(l1),9),9,_)]|[rjust(u(score12),7)]
&RESET.DISP6 Tourney Tree=[u(7)] [ansi(rh,2)]|[center(left(s(v(w2)),9),9,_)]|[u(9)]|
&RESET.DISP7 Tourney Tree=[center(left(v(line4),9),9,_)]|[rjust(s(v(score2)),7)][u(2)][u(10)]|
&RESET.DISP8 Tourney Tree=[u(10)][u(10)][u(7)][ansi(rh,21)]|[center(left(v(w21),9),9,_)] [u(10)] [u(2)] [repeat(:,20)]
&RESET.DISP9 Tourney Tree=[center(left(v(line5),9),9,_)] [u(10)][u(9)]|[rjust(v(score21),7)][u(2)]|[u(10)] [u(2)] :: [center(v(custom4),14)] ::
&RESET.L1 Tourney Tree=ifelse(strmatch(ucstr(v(line2)),BYE),BYE,L G 1)
&RESET.L10 Tourney Tree=L G 10
&RESET.L11 Tourney Tree=L G 11
&RESET.L12 Tourney Tree=L G 12
&RESET.L13 Tourney Tree=L G 13
&RESET.L14 Tourney Tree=L G 14
&RESET.L15 Tourney Tree=L G 15
&RESET.L16 Tourney Tree=L G 16
&RESET.L17 Tourney Tree=L G 17
&RESET.L18 Tourney Tree=L G 18
&RESET.L19 Tourney Tree=L G 19
&RESET.L2 Tourney Tree=ifelse(strmatch(ucstr(v(line3)),BYE),BYE,L G 2)
&RESET.L20 Tourney Tree=L G 20
&RESET.L21 Tourney Tree=L G 21
&RESET.L22 Tourney Tree=L G 22
&RESET.L23 Tourney Tree=L G 23
&RESET.L24 Tourney Tree=L G 24
&RESET.L25 Tourney Tree=L G 25
&RESET.L26 Tourney Tree=L G 26
&RESET.L27 Tourney Tree=L G 27
&RESET.L28 Tourney Tree=L G 28
&RESET.L3 Tourney Tree=ifelse(strmatch(ucstr(v(line6)),BYE),BYE,L G 3)
&RESET.L4 Tourney Tree=ifelse(strmatch(ucstr(v(line7)),BYE),BYE,L G 4)
&RESET.L5 Tourney Tree=ifelse(strmatch(ucstr(v(line10)),BYE),BYE,L G 5)
&RESET.L6 Tourney Tree=ifelse(strmatch(ucstr(v(line11)),BYE),BYE,L G 6)
&RESET.L7 Tourney Tree=ifelse(strmatch(ucstr(v(line14)),BYE),BYE,L G 7)
&RESET.L8 Tourney Tree=ifelse(strmatch(ucstr(v(line15)),BYE),BYE,L G 8)
&RESET.L9 Tourney Tree=L G 9
&RESET.LINE1 Tourney Tree=Seed 1
&RESET.LINE10 Tourney Tree=Line 10
&RESET.LINE11 Tourney Tree=Line 11
&RESET.LINE12 Tourney Tree=Seed 5
&RESET.LINE13 Tourney Tree=Seed 7
&RESET.LINE14 Tourney Tree=Line 14
&RESET.LINE15 Tourney Tree=Line 15
&RESET.LINE16 Tourney Tree=Seed 2
&RESET.LINE2 Tourney Tree=Line 2
&RESET.LINE3 Tourney Tree=Line 3
&RESET.LINE4 Tourney Tree=Seed 8
&RESET.LINE5 Tourney Tree=Seed 6
&RESET.LINE6 Tourney Tree=Line 6
&RESET.LINE7 Tourney Tree=Line 7
&RESET.LINE8 Tourney Tree=Seed 4
&RESET.LINE9 Tourney Tree=Seed 3
&RESET.PL1 Tourney Tree=First Place
&RESET.PL2 Tourney Tree=Second Place
&RESET.PL3 Tourney Tree=Third Place
&RESET.SCORE1 Tourney Tree=ifelse(strmatch(ucstr(v(line2)),BYE),BYE,S G 1)
&RESET.SCORE10 Tourney Tree=ifelse(or(strmatch(ucstr(s(v(l5))),BYE),strmatch(ucstr(s(v(l6))),BYE)),BYE,S G 10)
&RESET.SCORE11 Tourney Tree=ifelse(or(strmatch(ucstr(s(v(l3))),BYE),strmatch(ucstr(s(v(l4))),BYE)),BYE,S G 11)
&RESET.SCORE12 Tourney Tree=ifelse(or(strmatch(ucstr(s(v(l1))),BYE),strmatch(ucstr(s(v(l2))),BYE)),BYE,S G 12)
&RESET.SCORE13 Tourney Tree=S G 13
&RESET.SCORE14 Tourney Tree=S G 14
&RESET.SCORE15 Tourney Tree=S G 15
&RESET.SCORE16 Tourney Tree=S G 16
&RESET.SCORE17 Tourney Tree=switch(ucstr(s(v(w16))),BYE,BYE,S G 17)
&RESET.SCORE18 Tourney Tree=switch(ucstr(s(v(w15))),BYE,BYE,S G 18)
&RESET.SCORE19 Tourney Tree=switch(ucstr(s(v(w14))),BYE,BYE,S G 19)
&RESET.SCORE2 Tourney Tree=ifelse(strmatch(ucstr(v(line3)),BYE),BYE,S G 2)
&RESET.SCORE20 Tourney Tree=switch(ucstr(s(v(w13))),BYE,BYE,S G 20)
&RESET.SCORE21 Tourney Tree=S G 21
&RESET.SCORE22 Tourney Tree=S G 22
&RESET.SCORE23 Tourney Tree=S G 23
&RESET.SCORE24 Tourney Tree=S G 24
&RESET.SCORE25 Tourney Tree=S G 25
&RESET.SCORE26 Tourney Tree=S G 26
&RESET.SCORE27 Tourney Tree=S G 27
&RESET.SCORE28 Tourney Tree=S G 28
&RESET.SCORE29 Tourney Tree=S G 29
&RESET.SCORE3 Tourney Tree=ifelse(strmatch(ucstr(v(line6)),BYE),BYE,S G 3)
&RESET.SCORE30 Tourney Tree=S G 30
&RESET.SCORE31 Tourney Tree=S G 31
&RESET.SCORE4 Tourney Tree=ifelse(strmatch(ucstr(v(line7)),BYE),BYE,S G 4)
&RESET.SCORE5 Tourney Tree=ifelse(strmatch(ucstr(v(line10)),BYE),BYE,S G 5)
&RESET.SCORE6 Tourney Tree=ifelse(strmatch(ucstr(v(line11)),BYE),BYE,S G 6)
&RESET.SCORE7 Tourney Tree=ifelse(strmatch(ucstr(v(line14)),BYE),BYE,S G 7)
&RESET.SCORE8 Tourney Tree=ifelse(strmatch(ucstr(v(line15)),BYE),BYE,S G 8)
&RESET.SCORE9 Tourney Tree=ifelse(or(strmatch(ucstr(s(v(l7))),BYE),strmatch(ucstr(s(v(l8))),BYE)),BYE,S G 9)
&RESET.W1 Tourney Tree=ifelse(strmatch(ucstr(v(line2)),BYE),v(Line1),W G 1)
&RESET.W10 Tourney Tree=switch(1,strmatch(ucstr(s(v(l5))),BYE),s(v(l6)),strmatch(ucstr(s(v(l6))),BYE),s(v(l5)),W G 10)
&RESET.W11 Tourney Tree=switch(1,strmatch(ucstr(s(v(l3))),BYE),s(v(l4)),strmatch(ucstr(s(v(l4))),BYE),s(v(l3)),W G 11)
&RESET.W12 Tourney Tree=switch(1,strmatch(ucstr(s(v(l1))),BYE),s(v(l2)),strmatch(ucstr(s(v(l2))),BYE),s(v(l1)),W G 12)
&RESET.W13 Tourney Tree=W G 13
&RESET.W14 Tourney Tree=W G 14
&RESET.W15 Tourney Tree=W G 15
&RESET.W16 Tourney Tree=W G 16
&RESET.W17 Tourney Tree=switch(ucstr(s(v(w9))),BYE,s(v(l13)),W G 17)
&RESET.W18 Tourney Tree=switch(ucstr(s(v(w10))),BYE,s(v(l14)),W G 18)
&RESET.W19 Tourney Tree=switch(ucstr(s(v(w11))),BYE,s(v(l15)),W G 19)
&RESET.W2 Tourney Tree=ifelse(strmatch(ucstr(v(line3)),BYE),v(Line4),W G 2)
&RESET.W20 Tourney Tree=switch(ucstr(s(v(w12))),BYE,s(v(l16)),W G 20)
&RESET.W21 Tourney Tree=W G 21
&RESET.W22 Tourney Tree=W G 22
&RESET.W23 Tourney Tree=W G 23
&RESET.W24 Tourney Tree=W G 24
&RESET.W25 Tourney Tree=W G 25
&RESET.W26 Tourney Tree=W G 26
&RESET.W27 Tourney Tree=W G 27
&RESET.W28 Tourney Tree=W G 28
&RESET.W29 Tourney Tree=W G 29
&RESET.W3 Tourney Tree=ifelse(strmatch(ucstr(v(line6)),BYE),v(line5),W G 3)
&RESET.W30 Tourney Tree=W G 30
&RESET.W4 Tourney Tree=ifelse(strmatch(ucstr(v(line7)),BYE),v(line8),W G 4)
&RESET.W5 Tourney Tree=ifelse(strmatch(ucstr(v(line10)),BYE),v(line9),W G 5)
&RESET.W6 Tourney Tree=ifelse(strmatch(ucstr(v(line11)),BYE),v(line12),W G 6)
&RESET.W7 Tourney Tree=ifelse(strmatch(ucstr(v(line14)),BYE),v(line13),W G 7)
&RESET.W8 Tourney Tree=ifelse(strmatch(ucstr(v(line15)),BYE),v(line16),W G 8)
&RESET.W9 Tourney Tree=switch(1,strmatch(ucstr(s(v(l7))),BYE),s(v(l8)),strmatch(ucstr(s(v(l8))),BYE),s(v(l7)),W G 9)
&SCORE1 Tourney Tree=ifelse(strmatch(ucstr(v(line2)),BYE),BYE,S G 1)
&SCORE10 Tourney Tree=ifelse(or(strmatch(ucstr(s(v(l5))),BYE),strmatch(ucstr(s(v(l6))),BYE)),BYE,S G 10)
&SCORE11 Tourney Tree=ifelse(or(strmatch(ucstr(s(v(l3))),BYE),strmatch(ucstr(s(v(l4))),BYE)),BYE,S G 11)
&SCORE12 Tourney Tree=ifelse(or(strmatch(ucstr(s(v(l1))),BYE),strmatch(ucstr(s(v(l2))),BYE)),BYE,S G 12)
&SCORE13 Tourney Tree=S G 13
&SCORE14 Tourney Tree=S G 14
&SCORE15 Tourney Tree=S G 15
&SCORE16 Tourney Tree=S G 16
&SCORE17 Tourney Tree=switch(ucstr(s(v(w16))),BYE,BYE,S G 17)
&SCORE18 Tourney Tree=switch(ucstr(s(v(w15))),BYE,BYE,S G 18)
&SCORE19 Tourney Tree=switch(ucstr(s(v(w14))),BYE,BYE,S G 19)
&SCORE2 Tourney Tree=ifelse(strmatch(ucstr(v(line3)),BYE),BYE,S G 2)
&SCORE20 Tourney Tree=switch(ucstr(s(v(w13))),BYE,BYE,S G 20)
&SCORE21 Tourney Tree=S G 21
&SCORE22 Tourney Tree=S G 22
&SCORE23 Tourney Tree=S G 23
&SCORE24 Tourney Tree=S G 24
&SCORE25 Tourney Tree=S G 25
&SCORE26 Tourney Tree=S G 26
&SCORE27 Tourney Tree=S G 27
&SCORE28 Tourney Tree=S G 28
&SCORE29 Tourney Tree=S G 29
&SCORE3 Tourney Tree=ifelse(strmatch(ucstr(v(line6)),BYE),BYE,S G 3)
&SCORE30 Tourney Tree=S G 30
&SCORE31 Tourney Tree=S G 31
&SCORE4 Tourney Tree=ifelse(strmatch(ucstr(v(line7)),BYE),BYE,S G 4)
&SCORE5 Tourney Tree=ifelse(strmatch(ucstr(v(line10)),BYE),BYE,S G 5)
&SCORE6 Tourney Tree=ifelse(strmatch(ucstr(v(line11)),BYE),BYE,S G 6)
&SCORE7 Tourney Tree=ifelse(strmatch(ucstr(v(line14)),BYE),BYE,S G 7)
&SCORE8 Tourney Tree=ifelse(strmatch(ucstr(v(line15)),BYE),BYE,S G 8)
&SCORE9 Tourney Tree=ifelse(or(strmatch(ucstr(s(v(l7))),BYE),strmatch(ucstr(s(v(l8))),BYE)),BYE,S G 9)
&W1 Tourney Tree=ifelse(strmatch(ucstr(v(line2)),BYE),v(Line1),W G 1)
&W10 Tourney Tree=switch(1,strmatch(ucstr(s(v(l5))),BYE),s(v(l6)),strmatch(ucstr(s(v(l6))),BYE),s(v(l5)),W G 10)
&W11 Tourney Tree=switch(1,strmatch(ucstr(s(v(l3))),BYE),s(v(l4)),strmatch(ucstr(s(v(l4))),BYE),s(v(l3)),W G 11)
&W12 Tourney Tree=switch(1,strmatch(ucstr(s(v(l1))),BYE),s(v(l2)),strmatch(ucstr(s(v(l2))),BYE),s(v(l1)),W G 12)
&W13 Tourney Tree=W G 13
&W14 Tourney Tree=W G 14
&W15 Tourney Tree=W G 15
&W16 Tourney Tree=W G 16
&W17 Tourney Tree=switch(ucstr(s(v(w9))),BYE,s(v(l13)),W G 17)
&W18 Tourney Tree=switch(ucstr(s(v(w10))),BYE,s(v(l14)),W G 18)
&W19 Tourney Tree=switch(ucstr(s(v(w11))),BYE,s(v(l15)),W G 19)
&W2 Tourney Tree=ifelse(strmatch(ucstr(v(line3)),BYE),v(Line4),W G 2)
&W20 Tourney Tree=switch(ucstr(s(v(w12))),BYE,s(v(l16)),W G 20)
&W21 Tourney Tree=W G 21
&W22 Tourney Tree=W G 22
&W23 Tourney Tree=W G 23
&W24 Tourney Tree=W G 24
&W25 Tourney Tree=W G 25
&W26 Tourney Tree=W G 26
&W27 Tourney Tree=W G 27
&W28 Tourney Tree=W G 28
&W29 Tourney Tree=W G 29
&W3 Tourney Tree=ifelse(strmatch(ucstr(v(line6)),BYE),v(line5),W G 3)
&W30 Tourney Tree=W G 30
&W4 Tourney Tree=ifelse(strmatch(ucstr(v(line7)),BYE),v(line8),W G 4)
&W5 Tourney Tree=ifelse(strmatch(ucstr(v(line10)),BYE),v(line9),W G 5)
&W6 Tourney Tree=ifelse(strmatch(ucstr(v(line11)),BYE),v(line12),W G 6)
&W7 Tourney Tree=ifelse(strmatch(ucstr(v(line14)),BYE),v(line13),W G 7)
&W8 Tourney Tree=ifelse(strmatch(ucstr(v(line15)),BYE),v(line16),W G 8)
&W9 Tourney Tree=switch(1,strmatch(ucstr(s(v(l7))),BYE),s(v(l8)),strmatch(ucstr(s(v(l8))),BYE),s(v(l7)),W G 9)
+tourney/help
@link Tourney Tree = #8808
@set Tourney Tree = LINK_OK
@set Tourney Tree = VISUAL
@set Tourney Tree = !NO_COMMAND
&10 Tourney Tree=[space(10)]
&2 Tourney Tree=[space(2)]
&7 Tourney Tree=[space(7)]
&8 Tourney Tree=[space(8)]
&9 Tourney Tree=[space(9)]
&CMD.CUSTOM Tourney Tree=$+tourney/custom ?=*:@pemit %#={Custom Text Line #%0 set to: [left(%1,34)]};&custom%0 me=[left(%1,34)]
&CMD.FILL Tourney Tree=$+tourney/fill *=*:@pemit %#={[left(%1,9)] placed on Line #%0};&line%0 me=%1
&CMD.HELP Tourney Tree=$+tourney/help:@pemit %#=Tourney Controller Commands%r%r[ansi(h,+tourney/reset)]%rResets the tree to the 'blank' or 'unseeded' version (i.e., it wipes the tree).%r%r[ansi(h,+tourney custom <#>=<less than or equal to 34 characters of text>)]%rThis sets the various custom text slots to your custom text.%r%r[ansi(h,+tourney/fill <#>=<Name>)]%rUsed for seeding, this places <Name> on line number <#>.%r Example: +tourney/fill 1=Trispis%r%r[ansi(h,+tourney/winner <#>=<Name>)]%rRecords <Name> as the winner of game number <#>.%r%r[ansi(h,+tourney/loser <#>=<Name>)]%rRecords <Name> as the loser of game number <#>.%r%r[ansi(h,+tourney/score <#>=<#-#>)]%rRecords the score <#-#> for game number <#>.%r%r[ansi(h,+tourney/week <#>)]%rSets the current 'week' (as displayed in the view> to number <#>%r%r[ansi(h,+tourney/place <#>=<Name>)]%rPuts the name <Name> into place number <#>.%r
&CMD.LOSER Tourney Tree=$+tourney/loser *=*:@pemit %#={[left(%1,9)] set as Loser of game %0};@set me=l%0:%1
&CMD.PLACE Tourney Tree=$+tourney/place ?=*:@pemit %#={Place #%0 set to %1.};&pl%0 me=%1
&CMD.RESET Tourney Tree=$+tourney/reset:@pemit %#=Tournament Tree RESET;&trig.reset me=iter([lattr(setr(p,last(lparent(me)))/reset.w*)] [lattr(%qp/reset.score*)] [lattr(%qp/reset.pl*)] [lattr(%qp/reset.l*)] [lattr(%qp/reset.disp*)] [lattr(%qp/reset.custom*)],@cpattr %qp/%i0=me/[after(%i0,RESET.)];);@trig me/trig.reset;&trig.reset me
&CMD.SCORE Tourney Tree=$+tourney/score *=*:@pemit %#={Game %0 score set: %1};&score%0 me=%1
&CMD.WEEK Tourney Tree=$+tourney/week ?:@pemit %#={Week set to %0};&week me=%0
&CMD.WINNER Tourney Tree=$+tourney/winner *=*:@pemit %#={[left(%1,9)] set as Winner of game %0};@set me=w%0:%1
&CUSTOM1 Tourney Tree=+tourney/custom 1=This line's text
&CUSTOM2 Tourney Tree=+tourney/custom 2=This line's text
&CUSTOM3 Tourney Tree=+tourney/custom 3=This line's text
&CUSTOM4 Tourney Tree=Week --- Games
@set Tourney Tree=CUSTOM5:%b 1 %b<-> %b1-12
@set Tourney Tree=CUSTOM6:%b 2 %b<-> 13-20
@set Tourney Tree=CUSTOM7:%b 3 %b<-> 21-26
@set Tourney Tree=CUSTOM8:%b 4 %b<-> 27\,28
@set Tourney Tree=CUSTOM9:%b 5 %b<-> 29-31
&DESCRIBE Tourney Tree=[iter(lnum(1,51),%r[switch(%#,#1623,rjust(%i0,2))] [u(disp%i0)])]
@set Tourney Tree/DESCRIBE=no_command visual prefixmatch public nearby
&DISP1 Tourney Tree=[center(left(v(line1),9),9,_)] [u(10)][u(10)] [u(2)] [repeat(:,40)]
&DISP10 Tourney Tree=[u(7)] [ansi(rh,3)]|[center(left(s(v(w3)),9),9,_)] [u(9)]|[u(9)]|[u(10)] [u(2)] :: [center(v(custom5),14)] ::
&DISP11 Tourney Tree=[center(left(v(line6),9),9,_)]|[rjust(s(v(score3)),7)][u(2)]|[u(9)]|[u(9)]|[u(10)] [u(2)] :: [center(v(custom6),14)] ::
&DISP12 Tourney Tree=[u(10)][u(7)][ansi(rh,14)]|[center(left(s(v(w14)),9),9,_)]|[u(9)]|[u(10)] [u(2)] :: [center(v(custom7),14)] ::
&DISP13 Tourney Tree=[center(left(v(line7),9),9,_)] [u(9)]|[rjust(s(v(score14)),7)][u(2)] [u(9)]|[u(10)] [u(2)] :: [center(v(custom8),14)] ::
&DISP14 Tourney Tree=[u(7)] [ansi(rh,4)]|[center(left(s(v(w4)),9),9,_)]|[u(10)][u(9)]|[u(10)] [u(2)] :: [center(v(custom9),14)] ::
&DISP15 Tourney Tree=[center(left(v(line8),9),9,_)]|[rjust(s(v(score4)),7)][u(2)] [u(10)][u(9)]|[u(10)] [u(2)] [repeat(:,20)]
&DISP16 Tourney Tree=[u(10)][u(10)][u(10)][u(7)][ansi(rh,28)]|_[center(left(v(w28),9),9,_)]
&DISP17 Tourney Tree=[center(left(v(line9),9),9,_)] [u(10)][u(10)][u(9)]|[rjust(v(score28),7)][u(2)] :
&DISP18 Tourney Tree=[u(7)] [ansi(rh,5)]|[center(left(s(v(w5)),9),9,_)] [u(10)][u(9)]|[u(10)]:
&DISP19 Tourney Tree=[center(left(v(line10),9),9,_)]|[rjust(s(v(score5)),7)][u(2)]|[u(10)][u(9)]|[u(10)]:
&DISP2 Tourney Tree=[u(7)] [ansi(rh,1)]|[center(left(s(v(w1)),9),9,_)] [u(10)] [u(2)] :: [center(v(custom1),34)] ::
&DISP20 Tourney Tree=[u(10)][u(7)][ansi(rh,15)]|[center(left(s(v(w15)),9),9,_)] [u(9)]|[u(10)]:
&DISP21 Tourney Tree=[center(left(v(line11),9),9,_)] [u(9)]|[rjust(s(v(score15)),7)][u(2)]|[u(9)]|[u(10)]:
&DISP22 Tourney Tree=[u(7)] [ansi(rh,6)]|[center(left(s(v(w6)),9),9,_)]|[u(9)]|[u(9)]| [u(7)][ansi(r,30)]:...[center(left(v(w30),9),9,.)]
&DISP23 Tourney Tree=[center(left(v(line12),9),9,_)]|[rjust(s(v(score6)),7)][u(2)] [u(9)]|[u(9)]| [u(9)]:[u(2)] [rjust(v(score30),7)][u(2)]
&DISP24 Tourney Tree=[u(10)][u(10)][u(7)][ansi(rh,22)]|[center(left(v(w22),9),9,_)]| [u(9)]: [u(2)] :
&DISP25 Tourney Tree=[center(left(v(line13),9),9,_)] [u(10)][u(9)]|[rjust(v(score22),7)][u(2)] [u(10)]: [ansi(r,31)] :[center(v(pl1),15,_)]
&DISP26 Tourney Tree=[u(7)] [ansi(rh,7)]|[center(left(s(v(w7)),9),9,_)] [u(9)]| [u(10)][u(9)]: [u(2)] [u(2)][center(v(score31),15)]
&DISP27 Tourney Tree=[center(left(v(line14),9),9,_)]|[rjust(s(v(score7)),7)][u(2)]|[u(9)]| [center(left(v(l28),9),9,.)].[u(9)]:
&DISP28 Tourney Tree=[u(10)][u(7)][ansi(rh,16)]|[center(left(s(v(w16)),9),9,_)]| [u(7)][ansi(r,29)]:[center(left(v(w29),9),9,.)]: [u(2)][u(2)][center(v(pl2),15,_)]
&DISP29 Tourney Tree=[center(left(v(line15),9),9,_)] [u(9)]|[rjust(s(v(score16)),7)] [u(2)] [center(left(v(w27),9),9,.)]:[rjust(v(score29),7)]
&DISP3 Tourney Tree=[center(left(v(line2),9),9,_)]|[rjust(s(v(score1)),7)][u(2)]|[u(10)] [u(2)] :: [center(v(custom2),34)] ::
&DISP30 Tourney Tree=[u(7)] [ansi(rh,8)]|[center(left(s(v(w8)),9),9,_)]|[u(10)][u(10)][u(9)]
&DISP31 Tourney Tree=[center(left(v(line16),9),9,_)]|[rjust(s(v(score8)),7)][u(2)] [u(10)] [u(10)] [u(10)] [u(2)] [center(v(pl3),15,_)]
&DISP32 Tourney Tree=[u(10)][u(10)][u(10)][center(left(v(l22),9),9,_)]
&DISP33 Tourney Tree=[u(10)][center(left(v(l13),9),9,_)] [u(10)][u(9)]|
&DISP34 Tourney Tree=[center(left(s(v(l8)),9),9,_)] [u(7)][ansi(rh,17)]|[center(left(s(v(w17)),9),9,_)] [u(9)]|
&DISP35 Tourney Tree=[u(8)][ansi(rh,9)]|[center(left(s(v(w9)),9),9,_)]|[rjust(s(v(score17)),7)][u(2)]|[u(7)][ansi(rh,25)]|[center(left(v(w25),9),9,_)] [u(9)]
&DISP36 Tourney Tree=[center(left(s(v(l7)),9),9,_)]|[rjust(s(v(score9)),7)][u(2)] [u(9)]|[u(9)]|[rjust(v(score25),7)][u(2)]|[u(9)]
&DISP37 Tourney Tree=[u(10)][u(10)][u(7)][ansi(rh,23)]|[center(left(v(w23),9),9,_)]|[u(9)]|[u(9)]
&DISP38 Tourney Tree=[u(10)][center(left(s(v(l14)),9),9,_)] [u(9)]|[rjust(v(score23),7)][u(2)] [u(9)]|[u(9)]
&DISP39 Tourney Tree=[center(left(s(v(l6)),9),9,_)] [u(7)][ansi(rh,18)]|[center(left(s(v(w18)),9),9,_)]|[u(10)][u(9)]|[u(9)]
&DISP4 Tourney Tree=[u(10)][u(7)][ansi(rh,13)]|[center(left(s(v(w13)),9),9,_)][u(2)][u(2)] :: [center(v(custom3),34)] ::
&DISP40 Tourney Tree=[u(7)][ansi(rh,10)]|[center(left(s(v(w10)),9),9,_)]|[rjust(s(v(score18)),7)][u(2)] [u(10)][u(7)][ansi(rh,27)]|[center(left(v(w27),9),9,_)]
&DISP41 Tourney Tree=[center(left(s(v(l5)),9),9,_)]|[rjust(s(v(score10)),7)][u(2)] [u(10)][u(10)][u(9)]|[rjust(v(score27),7)]
&DISP42 Tourney Tree=[u(10)][u(10)][u(10)][center(left(v(l21),9),9,_)] [u(9)]|
&DISP43 Tourney Tree=[u(10)][center(left(s(v(l15)),9),9,_)] [u(10)][u(9)]|[u(9)]|
&DISP44 Tourney Tree=[center(left(s(v(l4)),9),9,_)] [u(7)][ansi(rh,19)]|[center(left(s(v(w19)),9),9,_)] [u(9)]|[u(9)]|
&DISP45 Tourney Tree=[u(7)][ansi(rh,11)]|[center(left(s(v(w11)),9),9,_)]|[rjust(s(v(score19)),7)][u(2)]|[u(7)][ansi(rh,26)]|[center(left(v(w26),9),9,_)]|
&DISP46 Tourney Tree=[center(left(s(v(l3)),9),9,_)]|[rjust(s(v(score11)),7)][u(2)] [u(9)]|[u(9)]|[rjust(v(score26),7)]
&DISP47 Tourney Tree=[u(10)][u(10)][u(7)][ansi(rh,24)]|[center(left(v(w24),9),9,_)]|
&DISP48 Tourney Tree=[u(10)][center(left(s(v(l16)),9),9,_)] [u(9)]|[rjust(v(score24),7)]
&DISP49 Tourney Tree=[center(left(s(v(l2)),9),9,_)] [u(7)][ansi(rh,20)]|[center(left(s(v(w20)),9),9,_)]|
&DISP5 Tourney Tree=[center(left(v(line3),9),9,_)] [u(9)]|[rjust(s(v(score13)),7)][u(2)]| [u(2)] [repeat(:,40)]
&DISP50 Tourney Tree=[u(7)][ansi(rh,12)]|[center(left(s(v(w12)),9),9,_)]|[rjust(s(v(score20)),7)]
&DISP51 Tourney Tree=[center(left(u(l1),9),9,_)]|[rjust(u(score12),7)]
&DISP6 Tourney Tree=[u(7)] [ansi(rh,2)]|[center(left(s(v(w2)),9),9,_)]|[u(9)]|
&DISP7 Tourney Tree=[center(left(v(line4),9),9,_)]|[rjust(s(v(score2)),7)][u(2)][u(10)]|
&DISP8 Tourney Tree=[u(10)][u(10)][u(7)][ansi(rh,21)]|[center(left(v(w21),9),9,_)] [u(10)] [u(2)] [repeat(:,20)]
&DISP9 Tourney Tree=[center(left(v(line5),9),9,_)] [u(10)][u(9)]|[rjust(v(score21),7)][u(2)]|[u(10)] [u(2)] :: [center(v(custom4),14)] ::
&HLP.VIEW Tourney Tree=There are three ways to view the tournament tree.%r%r[ljust(+tourney/view,20)]View the whole tree (spammy).%r%r[ljust(+tourney/topview,20)]View the top half (winners bracket) only.%r%r[ljust(+tourney/botview,20)]View the bottom half (losers bracket) only.
&L1 Tourney Tree=ifelse(strmatch(ucstr(v(line2)),BYE),BYE,L G 1)
&L10 Tourney Tree=L G 10
&L11 Tourney Tree=L G 11
&L12 Tourney Tree=L G 12
&L13 Tourney Tree=L G 13
&L14 Tourney Tree=L G 14
&L15 Tourney Tree=L G 15
&L16 Tourney Tree=L G 16
&L17 Tourney Tree=L G 17
&L18 Tourney Tree=L G 18
&L19 Tourney Tree=L G 19
&L2 Tourney Tree=ifelse(strmatch(ucstr(v(line3)),BYE),BYE,L G 2)
&L20 Tourney Tree=L G 20
&L21 Tourney Tree=L G 21
&L22 Tourney Tree=L G 22
&L23 Tourney Tree=L G 23
&L24 Tourney Tree=L G 24
&L25 Tourney Tree=L G 25
&L26 Tourney Tree=L G 26
&L27 Tourney Tree=L G 27
&L28 Tourney Tree=L G 28
&L3 Tourney Tree=ifelse(strmatch(ucstr(v(line6)),BYE),BYE,L G 3)
&L4 Tourney Tree=ifelse(strmatch(ucstr(v(line7)),BYE),BYE,L G 4)
&L5 Tourney Tree=ifelse(strmatch(ucstr(v(line10)),BYE),BYE,L G 5)
&L6 Tourney Tree=ifelse(strmatch(ucstr(v(line11)),BYE),BYE,L G 6)
&L7 Tourney Tree=ifelse(strmatch(ucstr(v(line14)),BYE),BYE,L G 7)
&L8 Tourney Tree=ifelse(strmatch(ucstr(v(line15)),BYE),BYE,L G 8)
&L9 Tourney Tree=L G 9
&LINE1 Tourney Tree=Seed 1
&LINE10 Tourney Tree=Line 10
&LINE11 Tourney Tree=Line 11
&LINE12 Tourney Tree=Seed 5
&LINE13 Tourney Tree=Seed 7
&LINE14 Tourney Tree=Line 14
&LINE15 Tourney Tree=Line 15
&LINE16 Tourney Tree=Seed 2
&LINE2 Tourney Tree=Line 2
&LINE3 Tourney Tree=Line 3
&LINE4 Tourney Tree=Seed 8
&LINE5 Tourney Tree=Seed 6
&LINE6 Tourney Tree=Line 6
&LINE7 Tourney Tree=Line 7
&LINE8 Tourney Tree=Seed 4
&LINE9 Tourney Tree=Seed 3
&LINEWG2 Tourney Tree=Qua
@set Tourney Tree/LINEWG2=no_command
&PL1 Tourney Tree=First Place
&PL2 Tourney Tree=Second Place
&PL3 Tourney Tree=Third Place
&RESET.10 Tourney Tree=[space(10)]
&RESET.2 Tourney Tree=[space(2)]
&RESET.7 Tourney Tree=[space(7)]
&RESET.8 Tourney Tree=[space(8)]
&RESET.9 Tourney Tree=[space(9)]
&RESET.CUSTOM1 Tourney Tree=+tourney/custom 1=This line's text
&RESET.CUSTOM2 Tourney Tree=+tourney/custom 2=This line's text
&RESET.CUSTOM3 Tourney Tree=+tourney/custom 3=This line's text
&RESET.CUSTOM4 Tourney Tree=Week --- Games
@set Tourney Tree=RESET.CUSTOM5:%b 1 %b<-> %b1-12
@set Tourney Tree=RESET.CUSTOM6:%b 2 %b<-> 13-20
@set Tourney Tree=RESET.CUSTOM7:%b 3 %b<-> 21-26
@set Tourney Tree=RESET.CUSTOM8:%b 4 %b<-> 27\,28
@set Tourney Tree=RESET.CUSTOM9:%b 5 %b<-> 29-31
&RESET.DESCRIBE Tourney Tree=[iter(lnum(1,51),%r [u(disp%i0)])]
@set Tourney Tree/RESET.DESCRIBE=no_command visual
&RESET.DISP1 Tourney Tree=[center(left(v(line1),9),9,_)] [u(10)][u(10)] [u(2)] [repeat(:,40)]
&RESET.DISP10 Tourney Tree=[u(7)] [ansi(rh,3)]|[center(left(s(v(w3)),9),9,_)] [u(9)]|[u(9)]|[u(10)] [u(2)] :: [center(v(custom5),14)] ::
&RESET.DISP11 Tourney Tree=[center(left(v(line6),9),9,_)]|[rjust(s(v(score3)),7)][u(2)]|[u(9)]|[u(9)]|[u(10)] [u(2)] :: [center(v(custom6),14)] ::
&RESET.DISP12 Tourney Tree=[u(10)][u(7)][ansi(rh,14)]|[center(left(s(v(w14)),9),9,_)]|[u(9)]|[u(10)] [u(2)] :: [center(v(custom7),14)] ::
&RESET.DISP13 Tourney Tree=[center(left(v(line7),9),9,_)] [u(9)]|[rjust(s(v(score14)),7)][u(2)] [u(9)]|[u(10)] [u(2)] :: [center(v(custom8),14)] ::
&RESET.DISP14 Tourney Tree=[u(7)] [ansi(rh,4)]|[center(left(s(v(w4)),9),9,_)]|[u(10)][u(9)]|[u(10)] [u(2)] :: [center(v(custom9),14)] ::
&RESET.DISP15 Tourney Tree=[center(left(v(line8),9),9,_)]|[rjust(s(v(score4)),7)][u(2)] [u(10)][u(9)]|[u(10)] [u(2)] [repeat(:,20)]
&RESET.DISP16 Tourney Tree=[u(10)][u(10)][u(10)][u(7)][ansi(rh,28)]|_[center(left(v(w28),9),9,_)]
&RESET.DISP17 Tourney Tree=[center(left(v(line9),9),9,_)] [u(10)][u(10)][u(9)]|[rjust(v(score28),7)][u(2)] :
&RESET.DISP18 Tourney Tree=[u(7)] [ansi(rh,5)]|[center(left(s(v(w5)),9),9,_)] [u(10)][u(9)]|[u(10)]:
&RESET.DISP19 Tourney Tree=[center(left(v(line10),9),9,_)]|[rjust(s(v(score5)),7)][u(2)]|[u(10)][u(9)]|[u(10)]:
&RESET.DISP2 Tourney Tree=[u(7)] [ansi(rh,1)]|[center(left(s(v(w1)),9),9,_)] [u(10)] [u(2)] :: [center(v(custom1),34)] ::
&RESET.DISP20 Tourney Tree=[u(10)][u(7)][ansi(rh,15)]|[center(left(s(v(w15)),9),9,_)] [u(9)]|[u(10)]:
&RESET.DISP21 Tourney Tree=[center(left(v(line11),9),9,_)] [u(9)]|[rjust(s(v(score15)),7)][u(2)]|[u(9)]|[u(10)]:
&RESET.DISP22 Tourney Tree=[u(7)] [ansi(rh,6)]|[center(left(s(v(w6)),9),9,_)]|[u(9)]|[u(9)]| [u(7)][ansi(r,30)]:...[center(left(v(w30),9),9,.)]
&RESET.DISP23 Tourney Tree=[center(left(v(line12),9),9,_)]|[rjust(s(v(score6)),7)][u(2)] [u(9)]|[u(9)]| [u(9)]:[u(2)] [rjust(v(score30),7)][u(2)]
&RESET.DISP24 Tourney Tree=[u(10)][u(10)][u(7)][ansi(rh,22)]|[center(left(v(w22),9),9,_)]| [u(9)]: [u(2)] :
&RESET.DISP25 Tourney Tree=[center(left(v(line13),9),9,_)] [u(10)][u(9)]|[rjust(v(score22),7)][u(2)] [u(10)]: [ansi(r,31)] :[center(v(pl1),15,_)]
&RESET.DISP26 Tourney Tree=[u(7)] [ansi(rh,7)]|[center(left(s(v(w7)),9),9,_)] [u(9)]| [u(10)][u(9)]: [u(2)] [u(2)][center(v(score31),15)]
&RESET.DISP27 Tourney Tree=[center(left(v(line14),9),9,_)]|[rjust(s(v(score7)),7)][u(2)]|[u(9)]| [center(left(v(l28),9),9,.)].[u(9)]:
&RESET.DISP28 Tourney Tree=[u(10)][u(7)][ansi(rh,16)]|[center(left(s(v(w16)),9),9,_)]| [u(7)][ansi(r,29)]:[center(left(v(w29),9),9,.)]: [u(2)][u(2)][center(v(pl2),15,_)]
&RESET.DISP29 Tourney Tree=[center(left(v(line15),9),9,_)] [u(9)]|[rjust(s(v(score16)),7)] [u(2)] [center(left(v(w27),9),9,.)]:[rjust(v(score29),7)]
&RESET.DISP3 Tourney Tree=[center(left(v(line2),9),9,_)]|[rjust(s(v(score1)),7)][u(2)]|[u(10)] [u(2)] :: [center(v(custom2),34)] ::
&RESET.DISP30 Tourney Tree=[u(7)] [ansi(rh,8)]|[center(left(s(v(w8)),9),9,_)]|[u(10)][u(10)][u(9)]
&RESET.DISP31 Tourney Tree=[center(left(v(line16),9),9,_)]|[rjust(s(v(score8)),7)][u(2)] [u(10)] [u(10)] [u(10)] [u(2)] [center(v(pl3),15,_)]
&RESET.DISP32 Tourney Tree=[u(10)][u(10)][u(10)][center(left(v(l22),9),9,_)]
&RESET.DISP33 Tourney Tree=[u(10)][center(left(v(l13),9),9,_)] [u(10)][u(9)]|
&RESET.DISP34 Tourney Tree=[center(left(s(v(l8)),9),9,_)] [u(7)][ansi(rh,17)]|[center(left(s(v(w17)),9),9,_)] [u(9)]|
&RESET.DISP35 Tourney Tree=[u(8)][ansi(rh,9)]|[center(left(s(v(w9)),9),9,_)]|[rjust(s(v(score17)),7)][u(2)]|[u(7)][ansi(rh,25)]|[center(left(v(w25),9),9,_)] [u(9)]
&RESET.DISP36 Tourney Tree=[center(left(s(v(l7)),9),9,_)]|[rjust(s(v(score9)),7)][u(2)] [u(9)]|[u(9)]|[rjust(v(score25),7)][u(2)]|[u(9)]
&RESET.DISP37 Tourney Tree=[u(10)][u(10)][u(7)][ansi(rh,23)]|[center(left(v(w23),9),9,_)]|[u(9)]|[u(9)]
&RESET.DISP38 Tourney Tree=[u(10)][center(left(s(v(l14)),9),9,_)] [u(9)]|[rjust(v(score23),7)][u(2)] [u(9)]|[u(9)]
&RESET.DISP39 Tourney Tree=[center(left(s(v(l6)),9),9,_)] [u(7)][ansi(rh,18)]|[center(left(s(v(w18)),9),9,_)]|[u(10)][u(9)]|[u(9)]
&RESET.DISP4 Tourney Tree=[u(10)][u(7)][ansi(rh,13)]|[center(left(s(v(w13)),9),9,_)][u(2)][u(2)] :: [center(v(custom3),34)] ::
&RESET.DISP40 Tourney Tree=[u(7)][ansi(rh,10)]|[center(left(s(v(w10)),9),9,_)]|[rjust(s(v(score18)),7)][u(2)] [u(10)][u(7)][ansi(rh,27)]|[center(left(v(w27),9),9,_)]
&RESET.DISP41 Tourney Tree=[center(left(s(v(l5)),9),9,_)]|[rjust(s(v(score10)),7)][u(2)] [u(10)][u(10)][u(9)]|[rjust(v(score27),7)]
&RESET.DISP42 Tourney Tree=[u(10)][u(10)][u(10)][center(left(v(l21),9),9,_)] [u(9)]|
&RESET.DISP43 Tourney Tree=[u(10)][center(left(s(v(l15)),9),9,_)] [u(10)][u(9)]|[u(9)]|
&RESET.DISP44 Tourney Tree=[center(left(s(v(l4)),9),9,_)] [u(7)][ansi(rh,19)]|[center(left(s(v(w19)),9),9,_)] [u(9)]|[u(9)]|
&RESET.DISP45 Tourney Tree=[u(7)][ansi(rh,11)]|[center(left(s(v(w11)),9),9,_)]|[rjust(s(v(score19)),7)][u(2)]|[u(7)][ansi(rh,26)]|[center(left(v(w26),9),9,_)]|
&RESET.DISP46 Tourney Tree=[center(left(s(v(l3)),9),9,_)]|[rjust(s(v(score11)),7)][u(2)] [u(9)]|[u(9)]|[rjust(v(score26),7)]
&RESET.DISP47 Tourney Tree=[u(10)][u(10)][u(7)][ansi(rh,24)]|[center(left(v(w24),9),9,_)]|
&RESET.DISP48 Tourney Tree=[u(10)][center(left(s(v(l16)),9),9,_)] [u(9)]|[rjust(v(score24),7)]
&RESET.DISP49 Tourney Tree=[center(left(s(v(l2)),9),9,_)] [u(7)][ansi(rh,20)]|[center(left(s(v(w20)),9),9,_)]|
&RESET.DISP5 Tourney Tree=[center(left(v(line3),9),9,_)] [u(9)]|[rjust(s(v(score13)),7)][u(2)]| [u(2)] [repeat(:,40)]
&RESET.DISP50 Tourney Tree=[u(7)][ansi(rh,12)]|[center(left(s(v(w12)),9),9,_)]|[rjust(s(v(score20)),7)]
&RESET.DISP51 Tourney Tree=[center(left(u(l1),9),9,_)]|[rjust(u(score12),7)]
&RESET.DISP6 Tourney Tree=[u(7)] [ansi(rh,2)]|[center(left(s(v(w2)),9),9,_)]|[u(9)]|
&RESET.DISP7 Tourney Tree=[center(left(v(line4),9),9,_)]|[rjust(s(v(score2)),7)][u(2)][u(10)]|
&RESET.DISP8 Tourney Tree=[u(10)][u(10)][u(7)][ansi(rh,21)]|[center(left(v(w21),9),9,_)] [u(10)] [u(2)] [repeat(:,20)]
&RESET.DISP9 Tourney Tree=[center(left(v(line5),9),9,_)] [u(10)][u(9)]|[rjust(v(score21),7)][u(2)]|[u(10)] [u(2)] :: [center(v(custom4),14)] ::
&RESET.L1 Tourney Tree=ifelse(strmatch(ucstr(v(line2)),BYE),BYE,L G 1)
&RESET.L10 Tourney Tree=L G 10
&RESET.L11 Tourney Tree=L G 11
&RESET.L12 Tourney Tree=L G 12
&RESET.L13 Tourney Tree=L G 13
&RESET.L14 Tourney Tree=L G 14
&RESET.L15 Tourney Tree=L G 15
&RESET.L16 Tourney Tree=L G 16
&RESET.L17 Tourney Tree=L G 17
&RESET.L18 Tourney Tree=L G 18
&RESET.L19 Tourney Tree=L G 19
&RESET.L2 Tourney Tree=ifelse(strmatch(ucstr(v(line3)),BYE),BYE,L G 2)
&RESET.L20 Tourney Tree=L G 20
&RESET.L21 Tourney Tree=L G 21
&RESET.L22 Tourney Tree=L G 22
&RESET.L23 Tourney Tree=L G 23
&RESET.L24 Tourney Tree=L G 24
&RESET.L25 Tourney Tree=L G 25
&RESET.L26 Tourney Tree=L G 26
&RESET.L27 Tourney Tree=L G 27
&RESET.L28 Tourney Tree=L G 28
&RESET.L3 Tourney Tree=ifelse(strmatch(ucstr(v(line6)),BYE),BYE,L G 3)
&RESET.L4 Tourney Tree=ifelse(strmatch(ucstr(v(line7)),BYE),BYE,L G 4)
&RESET.L5 Tourney Tree=ifelse(strmatch(ucstr(v(line10)),BYE),BYE,L G 5)
&RESET.L6 Tourney Tree=ifelse(strmatch(ucstr(v(line11)),BYE),BYE,L G 6)
&RESET.L7 Tourney Tree=ifelse(strmatch(ucstr(v(line14)),BYE),BYE,L G 7)
&RESET.L8 Tourney Tree=ifelse(strmatch(ucstr(v(line15)),BYE),BYE,L G 8)
&RESET.L9 Tourney Tree=L G 9
&RESET.LINE1 Tourney Tree=Seed 1
&RESET.LINE10 Tourney Tree=Line 10
&RESET.LINE11 Tourney Tree=Line 11
&RESET.LINE12 Tourney Tree=Seed 5
&RESET.LINE13 Tourney Tree=Seed 7
&RESET.LINE14 Tourney Tree=Line 14
&RESET.LINE15 Tourney Tree=Line 15
&RESET.LINE16 Tourney Tree=Seed 2
&RESET.LINE2 Tourney Tree=Line 2
&RESET.LINE3 Tourney Tree=Line 3
&RESET.LINE4 Tourney Tree=Seed 8
&RESET.LINE5 Tourney Tree=Seed 6
&RESET.LINE6 Tourney Tree=Line 6
&RESET.LINE7 Tourney Tree=Line 7
&RESET.LINE8 Tourney Tree=Seed 4
&RESET.LINE9 Tourney Tree=Seed 3
&RESET.PL1 Tourney Tree=First Place
&RESET.PL2 Tourney Tree=Second Place
&RESET.PL3 Tourney Tree=Third Place
&RESET.SCORE1 Tourney Tree=ifelse(strmatch(ucstr(v(line2)),BYE),BYE,S G 1)
&RESET.SCORE10 Tourney Tree=ifelse(or(strmatch(ucstr(s(v(l5))),BYE),strmatch(ucstr(s(v(l6))),BYE)),BYE,S G 10)
&RESET.SCORE11 Tourney Tree=ifelse(or(strmatch(ucstr(s(v(l3))),BYE),strmatch(ucstr(s(v(l4))),BYE)),BYE,S G 11)
&RESET.SCORE12 Tourney Tree=ifelse(or(strmatch(ucstr(s(v(l1))),BYE),strmatch(ucstr(s(v(l2))),BYE)),BYE,S G 12)
&RESET.SCORE13 Tourney Tree=S G 13
&RESET.SCORE14 Tourney Tree=S G 14
&RESET.SCORE15 Tourney Tree=S G 15
&RESET.SCORE16 Tourney Tree=S G 16
&RESET.SCORE17 Tourney Tree=switch(ucstr(s(v(w16))),BYE,BYE,S G 17)
&RESET.SCORE18 Tourney Tree=switch(ucstr(s(v(w15))),BYE,BYE,S G 18)
&RESET.SCORE19 Tourney Tree=switch(ucstr(s(v(w14))),BYE,BYE,S G 19)
&RESET.SCORE2 Tourney Tree=ifelse(strmatch(ucstr(v(line3)),BYE),BYE,S G 2)
&RESET.SCORE20 Tourney Tree=switch(ucstr(s(v(w13))),BYE,BYE,S G 20)
&RESET.SCORE21 Tourney Tree=S G 21
&RESET.SCORE22 Tourney Tree=S G 22
&RESET.SCORE23 Tourney Tree=S G 23
&RESET.SCORE24 Tourney Tree=S G 24
&RESET.SCORE25 Tourney Tree=S G 25
&RESET.SCORE26 Tourney Tree=S G 26
&RESET.SCORE27 Tourney Tree=S G 27
&RESET.SCORE28 Tourney Tree=S G 28
&RESET.SCORE29 Tourney Tree=S G 29
&RESET.SCORE3 Tourney Tree=ifelse(strmatch(ucstr(v(line6)),BYE),BYE,S G 3)
&RESET.SCORE30 Tourney Tree=S G 30
&RESET.SCORE31 Tourney Tree=S G 31
&RESET.SCORE4 Tourney Tree=ifelse(strmatch(ucstr(v(line7)),BYE),BYE,S G 4)
&RESET.SCORE5 Tourney Tree=ifelse(strmatch(ucstr(v(line10)),BYE),BYE,S G 5)
&RESET.SCORE6 Tourney Tree=ifelse(strmatch(ucstr(v(line11)),BYE),BYE,S G 6)
&RESET.SCORE7 Tourney Tree=ifelse(strmatch(ucstr(v(line14)),BYE),BYE,S G 7)
&RESET.SCORE8 Tourney Tree=ifelse(strmatch(ucstr(v(line15)),BYE),BYE,S G 8)
&RESET.SCORE9 Tourney Tree=ifelse(or(strmatch(ucstr(s(v(l7))),BYE),strmatch(ucstr(s(v(l8))),BYE)),BYE,S G 9)
&RESET.W1 Tourney Tree=ifelse(strmatch(ucstr(v(line2)),BYE),v(Line1),W G 1)
&RESET.W10 Tourney Tree=switch(1,strmatch(ucstr(s(v(l5))),BYE),s(v(l6)),strmatch(ucstr(s(v(l6))),BYE),s(v(l5)),W G 10)
&RESET.W11 Tourney Tree=switch(1,strmatch(ucstr(s(v(l3))),BYE),s(v(l4)),strmatch(ucstr(s(v(l4))),BYE),s(v(l3)),W G 11)
&RESET.W12 Tourney Tree=switch(1,strmatch(ucstr(s(v(l1))),BYE),s(v(l2)),strmatch(ucstr(s(v(l2))),BYE),s(v(l1)),W G 12)
&RESET.W13 Tourney Tree=W G 13
&RESET.W14 Tourney Tree=W G 14
&RESET.W15 Tourney Tree=W G 15
&RESET.W16 Tourney Tree=W G 16
&RESET.W17 Tourney Tree=switch(ucstr(s(v(w9))),BYE,s(v(l13)),W G 17)
&RESET.W18 Tourney Tree=switch(ucstr(s(v(w10))),BYE,s(v(l14)),W G 18)
&RESET.W19 Tourney Tree=switch(ucstr(s(v(w11))),BYE,s(v(l15)),W G 19)
&RESET.W2 Tourney Tree=ifelse(strmatch(ucstr(v(line3)),BYE),v(Line4),W G 2)
&RESET.W20 Tourney Tree=switch(ucstr(s(v(w12))),BYE,s(v(l16)),W G 20)
&RESET.W21 Tourney Tree=W G 21
&RESET.W22 Tourney Tree=W G 22
&RESET.W23 Tourney Tree=W G 23
&RESET.W24 Tourney Tree=W G 24
&RESET.W25 Tourney Tree=W G 25
&RESET.W26 Tourney Tree=W G 26
&RESET.W27 Tourney Tree=W G 27
&RESET.W28 Tourney Tree=W G 28
&RESET.W29 Tourney Tree=W G 29
&RESET.W3 Tourney Tree=ifelse(strmatch(ucstr(v(line6)),BYE),v(line5),W G 3)
&RESET.W30 Tourney Tree=W G 30
&RESET.W4 Tourney Tree=ifelse(strmatch(ucstr(v(line7)),BYE),v(line8),W G 4)
&RESET.W5 Tourney Tree=ifelse(strmatch(ucstr(v(line10)),BYE),v(line9),W G 5)
&RESET.W6 Tourney Tree=ifelse(strmatch(ucstr(v(line11)),BYE),v(line12),W G 6)
&RESET.W7 Tourney Tree=ifelse(strmatch(ucstr(v(line14)),BYE),v(line13),W G 7)
&RESET.W8 Tourney Tree=ifelse(strmatch(ucstr(v(line15)),BYE),v(line16),W G 8)
&RESET.W9 Tourney Tree=switch(1,strmatch(ucstr(s(v(l7))),BYE),s(v(l8)),strmatch(ucstr(s(v(l8))),BYE),s(v(l7)),W G 9)
&SCORE1 Tourney Tree=ifelse(strmatch(ucstr(v(line2)),BYE),BYE,S G 1)
&SCORE10 Tourney Tree=ifelse(or(strmatch(ucstr(s(v(l5))),BYE),strmatch(ucstr(s(v(l6))),BYE)),BYE,S G 10)
&SCORE11 Tourney Tree=ifelse(or(strmatch(ucstr(s(v(l3))),BYE),strmatch(ucstr(s(v(l4))),BYE)),BYE,S G 11)
&SCORE12 Tourney Tree=ifelse(or(strmatch(ucstr(s(v(l1))),BYE),strmatch(ucstr(s(v(l2))),BYE)),BYE,S G 12)
&SCORE13 Tourney Tree=S G 13
&SCORE14 Tourney Tree=S G 14
&SCORE15 Tourney Tree=S G 15
&SCORE16 Tourney Tree=S G 16
&SCORE17 Tourney Tree=switch(ucstr(s(v(w16))),BYE,BYE,S G 17)
&SCORE18 Tourney Tree=switch(ucstr(s(v(w15))),BYE,BYE,S G 18)
&SCORE19 Tourney Tree=switch(ucstr(s(v(w14))),BYE,BYE,S G 19)
&SCORE2 Tourney Tree=ifelse(strmatch(ucstr(v(line3)),BYE),BYE,S G 2)
&SCORE20 Tourney Tree=switch(ucstr(s(v(w13))),BYE,BYE,S G 20)
&SCORE21 Tourney Tree=S G 21
&SCORE22 Tourney Tree=S G 22
&SCORE23 Tourney Tree=S G 23
&SCORE24 Tourney Tree=S G 24
&SCORE25 Tourney Tree=S G 25
&SCORE26 Tourney Tree=S G 26
&SCORE27 Tourney Tree=S G 27
&SCORE28 Tourney Tree=S G 28
&SCORE29 Tourney Tree=S G 29
&SCORE3 Tourney Tree=ifelse(strmatch(ucstr(v(line6)),BYE),BYE,S G 3)
&SCORE30 Tourney Tree=S G 30
&SCORE31 Tourney Tree=S G 31
&SCORE4 Tourney Tree=ifelse(strmatch(ucstr(v(line7)),BYE),BYE,S G 4)
&SCORE5 Tourney Tree=ifelse(strmatch(ucstr(v(line10)),BYE),BYE,S G 5)
&SCORE6 Tourney Tree=ifelse(strmatch(ucstr(v(line11)),BYE),BYE,S G 6)
&SCORE7 Tourney Tree=ifelse(strmatch(ucstr(v(line14)),BYE),BYE,S G 7)
&SCORE8 Tourney Tree=ifelse(strmatch(ucstr(v(line15)),BYE),BYE,S G 8)
&SCORE9 Tourney Tree=ifelse(or(strmatch(ucstr(s(v(l7))),BYE),strmatch(ucstr(s(v(l8))),BYE)),BYE,S G 9)
&W1 Tourney Tree=ifelse(strmatch(ucstr(v(line2)),BYE),v(Line1),W G 1)
&W10 Tourney Tree=switch(1,strmatch(ucstr(s(v(l5))),BYE),s(v(l6)),strmatch(ucstr(s(v(l6))),BYE),s(v(l5)),W G 10)
&W11 Tourney Tree=switch(1,strmatch(ucstr(s(v(l3))),BYE),s(v(l4)),strmatch(ucstr(s(v(l4))),BYE),s(v(l3)),W G 11)
&W12 Tourney Tree=switch(1,strmatch(ucstr(s(v(l1))),BYE),s(v(l2)),strmatch(ucstr(s(v(l2))),BYE),s(v(l1)),W G 12)
&W13 Tourney Tree=W G 13
&W14 Tourney Tree=W G 14
&W15 Tourney Tree=W G 15
&W16 Tourney Tree=W G 16
&W17 Tourney Tree=switch(ucstr(s(v(w9))),BYE,s(v(l13)),W G 17)
&W18 Tourney Tree=switch(ucstr(s(v(w10))),BYE,s(v(l14)),W G 18)
&W19 Tourney Tree=switch(ucstr(s(v(w11))),BYE,s(v(l15)),W G 19)
&W2 Tourney Tree=ifelse(strmatch(ucstr(v(line3)),BYE),v(Line4),W G 2)
&W20 Tourney Tree=switch(ucstr(s(v(w12))),BYE,s(v(l16)),W G 20)
&W21 Tourney Tree=W G 21
&W22 Tourney Tree=W G 22
&W23 Tourney Tree=W G 23
&W24 Tourney Tree=W G 24
&W25 Tourney Tree=W G 25
&W26 Tourney Tree=W G 26
&W27 Tourney Tree=W G 27
&W28 Tourney Tree=W G 28
&W29 Tourney Tree=W G 29
&W3 Tourney Tree=ifelse(strmatch(ucstr(v(line6)),BYE),v(line5),W G 3)
&W30 Tourney Tree=W G 30
&W4 Tourney Tree=ifelse(strmatch(ucstr(v(line7)),BYE),v(line8),W G 4)
&W5 Tourney Tree=ifelse(strmatch(ucstr(v(line10)),BYE),v(line9),W G 5)
&W6 Tourney Tree=ifelse(strmatch(ucstr(v(line11)),BYE),v(line12),W G 6)
&W7 Tourney Tree=ifelse(strmatch(ucstr(v(line14)),BYE),v(line13),W G 7)
&W8 Tourney Tree=ifelse(strmatch(ucstr(v(line15)),BYE),v(line16),W G 8)
&W9 Tourney Tree=switch(1,strmatch(ucstr(s(v(l7))),BYE),s(v(l8)),strmatch(ucstr(s(v(l8))),BYE),s(v(l7)),W G 9)
+tourney/help