update
Some checks failed
Tests / headless (push) Has been cancelled
Tests / fenster-schnell (push) Has been cancelled
Tests / fenster-voll (push) Has been cancelled
Tests / balance (push) Has been cancelled

This commit is contained in:
team3
2026-10-10 14:30:29 +02:00
parent c245c7af87
commit a11cee2e0a
37 changed files with 2190 additions and 2414 deletions

View File

@@ -14,7 +14,7 @@ func _initialize() -> void:
print("Kartenpool laden: %.1f ms" % t)
var r := RandomNumberGenerator.new()
r.seed = 3
print("Stapel mischen: %.2f ms" % ms(func(): DeckGen.deck(r), 20))
print("Stapel würfeln: %.2f ms" % ms(func(): DeckGen.random_deck(r), 20))
print("Gegner erzeugen: %.2f ms" % ms(func(): DeckGen.random_opponent(), 20))
for n in [1]:
var g := Game.new_battle(r)
@@ -22,7 +22,7 @@ func _initialize() -> void:
var uid := 5000
for p in g.players:
for k in 4:
var c := Game.Creature.new(Cards.by_id("f_wolf"), p, uid)
var c := Game.Creature.new(Cards.by_id("f_3_2"), p, uid)
uid += 1
c.ready = true
p.board.append(c)
@@ -30,7 +30,7 @@ func _initialize() -> void:
h.energy = 10
h.max_energy = 10
for k in 6:
h.hand.append(Cards.by_id("f_ritter"))
h.hand.append(Cards.by_id("f_4_3"))
AI.time_budget_ms = 100000
var t_full := ms(func(): AI.choose_action(g, h))
AI.time_budget_ms = 150
@@ -39,5 +39,4 @@ func _initialize() -> void:
print("KI-Entscheidung, %d Gegner, %d Kandidaten: ohne Budget %.0f ms, mit Budget %.0f ms" % [n, cands, t_full, t_budget])
print("Spielkopie: %.3f ms" % ms(func(): Game.new_battle(r).clone(), 20))
print("Musik erzeugen (läuft im Hintergrund-Thread): %.0f ms" % ms(func(): Sfx.new()._music()))
print("Snapshot: %.2f ms" % ms(func(): Game.new_battle(r).snapshot(0), 10))
quit()