This commit is contained in:
Lukas Wölfer
2020-02-12 23:45:51 +01:00
parent 7247f465de
commit ca44b8977d
9 changed files with 167 additions and 74 deletions

View File

@@ -129,7 +129,7 @@ def possible_goal_move_actions(
if not (card.number == search_board.getGoal(card.suit) + 1):
continue
obvious = all(
search_board.getGoal(other_suit) >= card.number - 1
search_board.getGoal(other_suit) >= card.number - 2
for other_suit in set(board.NumberCard.Suit) - {card.suit}
)
yield board_actions.GoalAction(