F2: Game design document and originality rules
Add docs/GDD.md and docs/ORIGINALITY.md, with every gameplay number held in the single tuning table, src/sim/tuning.gd. The GDD refers to numbers by constant name so it can't drift from the game. Closes #2 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
extends TestCase
|
||||
|
||||
|
||||
func test_final_tide_covers_the_island() -> void:
|
||||
var last: Dictionary = Tuning.TIDE_PHASES[Tuning.TIDE_PHASES.size() - 1]
|
||||
assert_true(float(last["level"]) > Tuning.ISLAND_MAX_HEIGHT, "the sea must end every match")
|
||||
|
||||
|
||||
func test_tide_only_rises() -> void:
|
||||
var previous: float = 0.0
|
||||
for phase: Dictionary in Tuning.TIDE_PHASES:
|
||||
assert_true(float(phase["level"]) > previous, "levels must increase")
|
||||
previous = float(phase["level"])
|
||||
|
||||
|
||||
func test_match_sizes() -> void:
|
||||
assert_eq(Tuning.SOLO_PLAYERS, 24)
|
||||
assert_eq(Tuning.DUO_TEAMS * Tuning.DUO_TEAM_SIZE, 24)
|
||||
|
||||
|
||||
func test_every_weapon_defines_the_shared_fields() -> void:
|
||||
for id: String in Tuning.WEAPONS:
|
||||
var weapon: Dictionary = Tuning.WEAPONS[id]
|
||||
for field: String in ["damage", "fire_rate", "magazine", "range_full", "range_max", "rarity"]:
|
||||
assert_true(weapon.has(field), "%s is missing %s" % [id, field])
|
||||
Reference in New Issue
Block a user