Polish Citadel Assault objectives and results
This commit is contained in:
1 parent
d1c42a36b8
commit
c0b099e604
18 files changed
+555
-45
No files matched your search
@@ -0,0 +1,18 @@
|
||||
--!strict
|
||||
return function(capture: any, score: any, results: any)
|
||||
assert(capture.advance(0, 4, true, false, 4, .5) == 1)
|
||||
assert(capture.advance(1, 4, true, true, 4, .5) == .5)
|
||||
assert(capture.advance(1, 8, true, true, 4, .5) == 0)
|
||||
assert(capture.advance(0, 4, false, false, 4, .5) == 0)
|
||||
for count = 1, 3 do
|
||||
local a, b = {}, {}
|
||||
for i = 1, count do a[i], b[i] = i * 12, i * 12 + .1 end
|
||||
assert(score.winner({Blue = a, Orange = b}, .05) == "Blue")
|
||||
assert(score.winner({Blue = b, Orange = a}, .05) == "Orange")
|
||||
assert(score.winner({Blue = a, Orange = a}, .05) == "Draw")
|
||||
end
|
||||
assert(score.winner({Blue = {}, Orange = {}}, .05) == "Draw")
|
||||
local ledger = {Blue = {}, Orange = {}}
|
||||
assert(score.record(ledger, "Blue", 1, 8) and not score.record(ledger, "Blue", 1, 9))
|
||||
assert(results.rows({BlueTime1 = 72.4}, 1)[1] == "Рубеж 1 · Синие 1:12.40 · Оранжевые —")
|
||||
end
|
||||
Reference in new issue
Block a user