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),
KING(13);
private int face;
private final int face;
Faces(int face) {
this.face = face;

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

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

Loading…
Cancel
Save