Auto-Carousel, Standings mit Spieler, Runden-Tracker, Item-Rail links, sinnvoller Item-Pool

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
team3
2026-07-23 06:18:07 +02:00
parent 885bf28fd4
commit 76acd026ec
9 changed files with 169 additions and 51 deletions

View File

@@ -78,7 +78,7 @@ def test_invalid_actions_raise(art, cfg):
with pytest.raises(InvalidAction):
game.buy_xp()
with pytest.raises(InvalidAction):
game.sell("bench", 0)
game.sell("bench", 99)
def test_shop_lock_survives_step(art, cfg):
@@ -87,3 +87,19 @@ def test_shop_lock_survives_step(art, cfg):
before = list(game.shop)
game.step()
assert game.shop == before
def test_carousel_never_a_planning_round(art, cfg):
game = Game(art, cfg, seed=5)
seen = []
while not game.over:
seen.append(game.round["kind"])
game.step()
assert "carousel" not in seen
assert seen[0] == "pve" # Spiel startet bei 1-2
def test_carousel_grants_unit_and_loot(art, cfg):
game = Game(art, cfg, seed=5)
assert len(game.bench) == 1 # Unit vom 1-1-Carousel
assert len(game.items) == 1 # Item-Komponente vom Carousel