Round Robin Cyclic Algorithm

Let's continue building. Add a method Round.visualize() to generate a table for presenting a round of a tournament. Visualize includes buttons for showing other rounds (The button handlers are not present in this page, see last page for fully functional implementation.)

A simple function invocation generates the table, which becomes animated in the next step

t = new Tournament(12); t.rounds[1].visualize("RR")

Presuming suitable CSS has been specified.

table#RR { cellspacing: 5px }
table#RR TD { text-align: center; }
table#RR TD.border { border: 1px solid black;width:55px }
table#RR TD#item1 { background-color:yellow }
table#RR TD#round { text-align:center;background-color:#9CF;font-weight:bold;border:1px solid black;padding:4px}

More stuff regarding round robins.