-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
Thanks for your great work!
While playing with TriPeaks, it encountered an issue of hitting the last card but not able to read the card.
Please see the video upload to Youtube: https://youtu.be/pPyYPN7aS04
The card file is attached as a reference:
tripeakscards20230108120036.txt
May be there is a fix on TriPeaksPlayer.java as,
private List<String> scanCardsOnScreen(TriPeaksWindow window) throws InterruptedException, PlayException {
window.undoBoard();
List<String> cards = new ArrayList<>();
for (int i = 0; i < 28; i++) {
cards.add(window.cardAtTableau(i));
}
cards.add(window.cardAtWaste());
for (int i = 0; i < 22; i++) {
window.draw();
cards.add(window.cardAtWaste());
}
cards.add("??");
return cards;
}
protected boolean isValidCards(List<String> cards,
List<String> missing,
List<String> duplicates,
List<String> malformed,
long numUnknownCards) {
return ((cards.size() == 52) &&
(0 <= missing.size()) &&
(missing.size() <= 19) &&
(duplicates.size() == 0) &&
(malformed.size() == 0) &&
(0 <= numUnknownCards) &&
(numUnknownCards <= 19));
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels