diff --git a/bin/cards/Rank.class b/bin/cards/Rank.class index e012f33..fbece39 100644 Binary files a/bin/cards/Rank.class and b/bin/cards/Rank.class differ diff --git a/src/cards/Rank.java b/src/cards/Rank.java index ba0fe06..23dbef3 100644 --- a/src/cards/Rank.java +++ b/src/cards/Rank.java @@ -13,7 +13,35 @@ public enum Rank { */ @Override public String toString() { - //TODO implement - return super.toString(); + switch (this) { + case TWO: + return "2"; + case THREE: + return "3"; + case FOUR: + return "4"; + case FIVE: + return "5"; + case SIX: + return "6"; + case SEVEN: + return "7"; + case EIGHT: + return "8"; + case NINE: + return "9"; + case TEN: + return "10"; + case JACK: + return "J"; + case QUEEN: + return "Q"; + case KING: + return "K"; + case ACE: + return "A"; + default: + return ""; + } } }