From 412878b20a5e75dedf3dd77fa254d5131fa361a4 Mon Sep 17 00:00:00 2001 From: b0n541 Date: Mon, 13 Jan 2025 09:36:44 +0100 Subject: [PATCH] #157 Use emojii suit symbols --- jskat-base/src/main/java/org/jskat/util/Suit.java | 8 ++++---- jskat-base/src/test/java/org/jskat/util/SuitTest.java | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/jskat-base/src/main/java/org/jskat/util/Suit.java b/jskat-base/src/main/java/org/jskat/util/Suit.java index baa8fec0e..2f3e718ca 100644 --- a/jskat-base/src/main/java/org/jskat/util/Suit.java +++ b/jskat-base/src/main/java/org/jskat/util/Suit.java @@ -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; diff --git a/jskat-base/src/test/java/org/jskat/util/SuitTest.java b/jskat-base/src/test/java/org/jskat/util/SuitTest.java index 3289f6b6a..eb9c709ae 100644 --- a/jskat-base/src/test/java/org/jskat/util/SuitTest.java +++ b/jskat-base/src/test/java/org/jskat/util/SuitTest.java @@ -11,10 +11,10 @@ public class SuitTest { private static Stream 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") ); }