revert to regular gamestates in greedy solver

This commit is contained in:
Maximilian Keßler 2023-05-19 12:44:32 +02:00
parent 2af847d5b8
commit 86f824edd7
Signed by: max
GPG key ID: BCC5A619923C0BA5

View file

@ -6,7 +6,6 @@ from log_setup import logger
from time import sleep from time import sleep
from hanabi import DeckCard, Action, ActionType, GameState, HanabiInstance from hanabi import DeckCard, Action, ActionType, GameState, HanabiInstance
from hanab_live import HanabLiveInstance, HanabLiveGameState
from compress import link, decompress_deck from compress import link, decompress_deck
from database.database import conn from database.database import conn
@ -179,8 +178,8 @@ def test():
def run_deck(seed, num_players, deck_str, variant_id): def run_deck(seed, num_players, deck_str, variant_id):
deck = decompress_deck(deck_str) deck = decompress_deck(deck_str)
instance = HanabLiveInstance(deck, num_players, variant_id) instance = HanabiInstance(deck, num_players, variant_id)
gs = HanabLiveGameState(instance) gs = GameState(instance)
strat = GreedyStrategy(gs) strat = GreedyStrategy(gs)
while not gs.is_over(): while not gs.is_over():
strat.make_move() strat.make_move()