Skip to content

Commit

Permalink
#157 Use emojii suit symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
b0n541 committed Jan 13, 2025
1 parent a722aa1 commit 412878b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions jskat-base/src/main/java/org/jskat/util/Suit.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ public enum Suit {
/**
* Club or Eichel
*/
CLUBS("C", "Clubs", "♣", 3),
CLUBS("C", "Clubs", "♣\uFE0F", 3),
/**
* Spades or Grün
*/
SPADES("S", "Spades", "♠", 2),
SPADES("S", "Spades", "♠\uFE0F", 2),
/**
* Hearts or Herz
*/
HEARTS("H", "Hearts", "♥", 1),
HEARTS("H", "Hearts", "♥\uFE0F", 1),
/**
* Diamonds or Schellen
*/
DIAMONDS("D", "Diamonds", "♦", 0);
DIAMONDS("D", "Diamonds", "♦\uFE0F", 0);

private final String shortString;
private final String longString;
Expand Down
8 changes: 4 additions & 4 deletions jskat-base/src/test/java/org/jskat/util/SuitTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
public class SuitTest {
private static Stream<Arguments> suitSymbols() {
return Stream.of(
Arguments.of(Suit.CLUBS, "♣"),
Arguments.of(Suit.SPADES, "♠"),
Arguments.of(Suit.HEARTS, "♥"),
Arguments.of(Suit.DIAMONDS, "♦")
Arguments.of(Suit.CLUBS, "♣\uFE0F"),
Arguments.of(Suit.SPADES, "♠\uFE0F"),
Arguments.of(Suit.HEARTS, "♥\uFE0F"),
Arguments.of(Suit.DIAMONDS, "♦\uFE0F")
);
}

Expand Down

0 comments on commit 412878b

Please sign in to comment.