update
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user