revert to regular gamestates in greedy solver
This commit is contained in:
parent
2af847d5b8
commit
86f824edd7
1 changed files with 2 additions and 3 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue