Polish One Life mini-rounds and spectating

This commit is contained in:
Leshyi committed 2026-11-30 00:03:48 +05:00
1 parent 0c949fadf0
commit ebe8db5359
12 files changed
+175 -17

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
--!strict
local Rules = {WINS = 3, DURATION = 45, INTERMISSION = 4}
function Rules.winner(blue: number, orange: number): ("Blue" | "Orange")?
return if blue == orange then nil elseif blue > orange then "Blue" else "Orange"
end
function Rules.finished(blue: number, orange: number): boolean
return math.max(blue, orange) >= Rules.WINS
end
return table.freeze(Rules)