D
Daniel Pitts
Say I have a tournament with n players, and each player faces each other
player exactly once. I want to efficiently display the final player
scores. I recall seeing a table which had the players listed on the
diagonal, and each "cell" contained the pairing score "x"/"y". Eg.
+---+---+---+
|3/ |14/|4 /|
Sam |/ 2|/ 3|/22|
+---+---+---+
b |3 /|5 /|
o |/ 4|/55|
B +---+---+
n |7 /|
a |/ 4|
D +---+
u
o
L
You could then see the pairing score by finding the intersecting
column/row of the pair you're looking for. For example, Sam/Bob pairing
is row 1 (Sam), and column 1 (Bob). Bob had 2, Sam at 3.
The Bob/Lou pairing is Row 1 (Bob) column 3 (Lou). Bob had 5, and Lou
had 55. Actually, poor Bob did terrible in my example.
Is there a name for this kind of chart/table? Has anyone seen an
implementation in Java? I could do something like this in JTable, but I
think there must be a prettier way to render it
Thanks in advance,
Daniel.
player exactly once. I want to efficiently display the final player
scores. I recall seeing a table which had the players listed on the
diagonal, and each "cell" contained the pairing score "x"/"y". Eg.
+---+---+---+
|3/ |14/|4 /|
Sam |/ 2|/ 3|/22|
+---+---+---+
b |3 /|5 /|
o |/ 4|/55|
B +---+---+
n |7 /|
a |/ 4|
D +---+
u
o
L
You could then see the pairing score by finding the intersecting
column/row of the pair you're looking for. For example, Sam/Bob pairing
is row 1 (Sam), and column 1 (Bob). Bob had 2, Sam at 3.
The Bob/Lou pairing is Row 1 (Bob) column 3 (Lou). Bob had 5, and Lou
had 55. Actually, poor Bob did terrible in my example.
Is there a name for this kind of chart/table? Has anyone seen an
implementation in Java? I could do something like this in JTable, but I
think there must be a prettier way to render it
Thanks in advance,
Daniel.