Tidy Up Code

master
Hammy 4 years ago
parent 58ea1efa5e
commit b2dced13a9

@ -4,7 +4,7 @@ public enum Faces {
ACE(1), TWO(2), THREE(3), FOUR(4), FIVE(5), SIX(6), SEVEN(7), EIGHT(8), NINE(9), TEN(10), JACK(11), QUEEN(12), ACE(1), TWO(2), THREE(3), FOUR(4), FIVE(5), SIX(6), SEVEN(7), EIGHT(8), NINE(9), TEN(10), JACK(11), QUEEN(12),
KING(13); KING(13);
private int face; private final int face;
Faces(int face) { Faces(int face) {
this.face = face; this.face = face;

@ -5,9 +5,7 @@ import java.util.Scanner;
public class Sevens extends Deck { public class Sevens extends Deck {
public Sevens() { public Sevens() { }
super();
}
public void play(List<Player> allPlayers, int numOfPlayers) { public void play(List<Player> allPlayers, int numOfPlayers) {
int playerCounter = 0; int playerCounter = 0;

@ -3,7 +3,7 @@ package cards;
public enum Suits { public enum Suits {
SPADES("Spades"), HEARTS("Hearts"), DIAMONDS("Diamonds"), CLUBS("Clubs"); SPADES("Spades"), HEARTS("Hearts"), DIAMONDS("Diamonds"), CLUBS("Clubs");
private String suit; private final String suit;
Suits(String suit) { Suits(String suit) {
this.suit = suit; this.suit = suit;

Loading…
Cancel
Save