Skip to content

Instantly share code, notes, and snippets.

View Bassadin's full-sized avatar
💭
"When nothing remains, everything is equally possible."

Bastian Hodapp Bassadin

💭
"When nothing remains, everything is equally possible."
View GitHub Profile
@gdejohn
gdejohn / Card.java
Last active February 1, 2026 00:52
straightforward five-card poker hand comparison
package poker;
public record Card(Rank rank, Suit suit) {
public enum Rank {
TWO, THREE, FOUR, FIVE, SIX, SEVEN, EIGHT, NINE, TEN, JACK, QUEEN, KING, ACE
}
public enum Suit {
DIAMONDS, CLUBS, HEARTS, SPADES
}