refactor!: remove firebase leftovers, admin page on the server (P1-8)

BREAKING CHANGE: admin/cleanup.js, admin/setcoins.js and docs/firebase are gone; the admin page now runs at /admin/.
This commit is contained in:
Benjamin Oezcan
2026-11-19 02:11:13 +01:00
parent 0202a08b8d
commit b587d12f37
14 changed files with 135 additions and 450 deletions

View File

@@ -3,7 +3,7 @@
drives this pure logic, so the hard-to-test bit here is small and fully covered by tests.
Every client computes the SAME bracket from the same inputs (frozen player list + seed), so no
server is needed to agree on who plays whom. Results come in over Firebase as a map
server is needed to agree on who plays whom. Results come in from the server as a map
results[round][pairIndex] = winnerUid; a bye (odd player out) advances on its own.
RC.LTourney.order(uids, seed) -> seeded slot order, padded with null byes to a power of two