H3: Balance pass from 200 bot matches (make balance)
make balance (tools/balance.sh, tools/balance.gd, BalanceReport) plays 200 bot-only matches in four processes under nice and reports match length, players standing over time, causes of death, eliminations by weapon and by difficulty, judged against the new BALANCE_* targets in Tuning and the GDD's Balance section. Before: median match 5.0 min, 3.4 of 24 standing at 2 min, the boathook 41% of eliminations. After, over seeds 1001-1200: median 13.1 min (p10 9.2, p90 14.6), top weapon the rivet repeater at 31.7%. Passes. Changes, each traced from single-match runs (docs/BALANCE.md): - Fix: bots leapt from the barge on a timer and landed hundreds of metres short of their spot; they now leap when it's in gliding reach or the barge starts drawing away from it. - Bots spread their landings, only brawl whoever hit them, pick out new opponents within 30 m, roam locally and hold ground, run from a gun when unarmed, and (normal and hard) break off when badly hurt. - Aim error widened; rivet repeater damage 17 to 15. - Tide: lower early levels, longer holds; every match ends within 17.75 min. Tests: BalanceReport, the new bot behaviours, the tide length. Tests that leaned on old bot luck now pin or set up what they check. make match moves to seed 29, where the scripted player still builds. Closes #56 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+12
-5
@@ -108,17 +108,24 @@ func test_the_schedule_follows_the_table_and_forecasts_each_level() -> void:
|
||||
|
||||
|
||||
func test_planned_levels_keep_safe_ground_on_the_main_land() -> void:
|
||||
# A 30 m plateau: the table's 30 m phase would drown it all, so it's lowered.
|
||||
# A 30 m plateau: the first table phase above 28 m would drown it all, so it's
|
||||
# lowered; the phases before it keep their table levels.
|
||||
var safe: SafeGround = SafeGround.new(_ground(30.0))
|
||||
var levels: PackedFloat32Array = safe.plan_levels()
|
||||
assert_eq(levels.size(), Tuning.TIDE_PHASES.size())
|
||||
assert_eq(levels[0], float(Tuning.TIDE_PHASES[0]["level"]))
|
||||
assert_eq(levels[1], float(Tuning.TIDE_PHASES[1]["level"]))
|
||||
assert_eq(levels[2], 30.0 - Tuning.TIDE_SAFE_MARGIN_METRES, "lowered to just under the land's top")
|
||||
var lowered: int = -1
|
||||
for index: int in Tuning.TIDE_PHASES.size():
|
||||
if float(Tuning.TIDE_PHASES[index]["level"]) > 30.0 - Tuning.TIDE_SAFE_MARGIN_METRES:
|
||||
lowered = index
|
||||
break
|
||||
assert_true(lowered > 0 and lowered < levels.size() - 1, "the table has a phase to lower (%d)" % lowered)
|
||||
for index: int in lowered:
|
||||
assert_eq(levels[index], float(Tuning.TIDE_PHASES[index]["level"]))
|
||||
assert_eq(levels[lowered], 30.0 - Tuning.TIDE_SAFE_MARGIN_METRES, "lowered to just under the land's top")
|
||||
for index: int in range(1, levels.size()):
|
||||
assert_true(levels[index] >= levels[index - 1] + Tuning.TIDE_MIN_RISE_METRES - 0.001, "phase %d still rises" % index)
|
||||
assert_eq(levels[levels.size() - 1], float(Tuning.TIDE_PHASES[-1]["level"]), "the last phase covers everything")
|
||||
assert_true(safe.is_safe(500.0, 500.0, levels[2]))
|
||||
assert_true(safe.is_safe(500.0, 500.0, levels[lowered]))
|
||||
assert_false(safe.is_safe(100.0, 100.0, 0.0), "open sea is never safe")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user