Windows fixes
This commit is contained in:
@@ -130,7 +130,7 @@ def possible_goal_move_actions(
|
||||
if not (card.number == search_board.getGoal(card.suit) + 1):
|
||||
continue
|
||||
obvious = all(
|
||||
search_board.getGoal(other_suit) >= search_board.getGoal(card.suit)
|
||||
search_board.getGoal(other_suit) >= card.number - 1
|
||||
for other_suit in set(board.NumberCard.Suit) - {card.suit}
|
||||
)
|
||||
yield board_actions.GoalAction(
|
||||
|
||||
@@ -87,7 +87,7 @@ def solve(
|
||||
count = 0
|
||||
print(f"{time.time() - iter_start} {len(stack)} {board.goal}")
|
||||
if timeout is not None and time.time() - iter_start > timeout:
|
||||
raise StopIteration
|
||||
return
|
||||
|
||||
# _limit_stack_size(80)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user