PLO3E3SEEUWMJCDYY3KZQXBNS65W57RSGGV5U4CJMLUMDA7KXY4QC
OJ2CLK4QZNZYDVBJTUF3IXVGVP2YI6C2HQNYF6O5MGKS47IPEWHAC
EZHO4TSWIYYUE73S6XQWIEF3HA3H7MKCNJOT27NTWTVSPVS2SL5QC
UOGZZY3LDQMFV5225YHIOQLKY4443TBYFIA6AWB7TGUUZWRIHEYQC
2DVVKKVA6PJ7VKYLGPQ22AXUB6ZWFMPWB445PRDZJDNLURUFDNDQC
FS2ITYYHBLFT66YUC3ENPFYI2HOYHOVEPQIN7NQR6KF5MEK4NKZAC
MD3W5IRAC6UQALQE4LJC52VQNDO3I3HXF3XE2XHDABXBYJBUVAXQC
D4FEFHQCSILZFQ5VLWNXAIRZNUMCDNGJSM4UJ6T6FDMMIWYRYILQC
PNBKVYZ4ANUAZNQN6KEWYNDF7552ROZPNAPRJE7Q6O7ZZJMJ3S3QC
# Example "freewheeling" app that can be modified without being restarted
# A little tool for sports cross-tables
All-play-all tournaments often summarize results using a simplistic table of
wins/losses/points. It is all you need at the end when you're picking the
qualifiers for the next stage, but it's not very useful _while a tournament is
in progress_. Some examples of questions it can't answer:
Running this repo in isolation won't be very helpful. If you haven't yet,
first check out [the driver app](https://git.sr.ht/~akkartik/driver.love).
This repo is a template you can copy to create your own live apps that juggle
text editor widgets. The editors support copy/paste, search, infinite undo,
etc. You can't modify editor functionality live (yet?).
* Have their been any upsets?
* Are there any differences in opponents so far? If team A has already played
all its lower-seeded opponents but team B has not, that's important.
[Some reference documentation on how to create your own apps.](reference.md)
For questions like these, and also for running what-if scenarios, the ideal
format is a cross-table that shows each team along both the rows and the
columns, and summarizes the outcome of each encounter.
The big challenge to maintaining a cross-table by hand is re-sorting it. When
the rows move around, the columns must do so as well. This tool automates the
sorting.
![demo showing how to add new results and how to re-sort the cross-table](assets/1.gif)
Run this app from the terminal, [passing its directory to LÖVE](https://love2d.org/wiki/Getting_Started#Running_Games)
Run this app from the terminal, [passing its directory to LÖVE](https://love2d.org/wiki/Getting_Started#Running_Games),
passing in a file containing results to show. The file `results` demonstrates
the expected format. To try it out from this directory:
```
$ love . results
```
Try clicking around. Your changes will be saved back to `results`.
If you don't pass in a file you'll see some example data. You can still modify
it, but it won't be persisted.