Poker Squares Solitaire coded in 1kB (in 2 days) for PICO-1K Jam 2022.
This is the first time I've tried something like this.
Let me know if you find any bugs.
Rules
-
Cards are placed one at a time and can no longer be moved once placed.
-
Points are scored on poker hands of 5 cards formed in rows or columns. (order does not matter)
- The goal is to get a score equal/higher than 100 or a high score.
List of points and poker hands:
View list on itch.io or rules from Wikipedia.
Poker Hand | Points | Example |
---|---|---|
Royal flush | 100 | A♦ K♦ Q♦ J♦ 10♦ |
Straight flush | 75 | Q♥ J♥ 10♥ 9♥ 8♥ |
Four of a kind | 50 | 9♣ 9♠ 9♦ 9♥ J♥ |
Full House | 25 | 3♣ 3♠ 3♦ 6♣ 6♥ |
Flush | 20 | J♥ 8♥ 4♥ 3♥ 2♥ |
Straight | 15 | 7♣ 6♠ 5♠ 4♥ 3♥ |
Three of a kind | 10 | 2♦ 2♠ 2♣ K♠ 6♥ |
Two pairs | 5 | J♥ J♣ 4♣ 4♠ 9♥ |
One pair | 2 | 4♥ 4♠ K♠ 10♦ 5♠ |
Controls
-
Arrow Keys to move.
-
X/❎ to place a card.
- Z/🅾️ to reshuffle.
@dw817 I believe you're not allowed to wrap around with aces in poker, A2345 is the lowest straight and AKQJ10 is the highest.
Hi @misc:
It is not very common but it is allowed and considered a valid hand provided the dealer permits it:
A wrap around straight is a straight that has an Ace somewhere in the middle of its structure, for example; QKA23. Wrap around straights are not legal hands according to the classic hand rankings system. However, they may sometimes be allowed in home games and some of the more exotic variants of poker.
As you, the dealer though, must decide if you want your game to permit it.
Also, is the "*" the club ?
Excellent! There was a version of this for the Commodore 64 from Compute!'s Gazette under the name "Power Poker" that I played frequently as a kid. Glad to play it again!
[Please log in to post a comment]