correct return value in case of infeasible instance
This commit is contained in:
parent
edcdaa8fd2
commit
9886e68084
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ def check_game(game_id: int) -> Tuple[int, GameState]:
|
||||||
game = GameState(instance)
|
game = GameState(instance)
|
||||||
solvable, solution = solve_sat(game)
|
solvable, solution = solve_sat(game)
|
||||||
if not solvable:
|
if not solvable:
|
||||||
return -1, solution
|
return 0, solution
|
||||||
|
|
||||||
while (unsolvable_turn - solvable_turn > 1):
|
while (unsolvable_turn - solvable_turn > 1):
|
||||||
try_turn = (unsolvable_turn + solvable_turn) // 2
|
try_turn = (unsolvable_turn + solvable_turn) // 2
|
||||||
|
|
Loading…
Reference in a new issue