Polish One Life mini-rounds and spectating
This commit is contained in:
1 parent
0c949fadf0
commit
ebe8db5359
12 files changed
+175
-17
No files matched your search
@@ -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)
|
||||
Reference in new issue
Block a user