-
Notifications
You must be signed in to change notification settings - Fork 0
/
YahtzeeConstants.java
47 lines (38 loc) · 1.47 KB
/
YahtzeeConstants.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
* File: YahtzeeConstants.java
* ---------------------------
* This file declares several constants that are shared by the
* different modules in the Yahtzee game.
*/
public interface YahtzeeConstants {
/** The width of the application window */
public static final int APPLICATION_WIDTH = 600;
/** The height of the application window */
public static final int APPLICATION_HEIGHT = 350;
/** The number of dice in the game */
public static final int N_DICE = 5;
/** The maximum number of players */
public static final int MAX_PLAYERS = 4;
/** The total number of categories */
public static final int N_CATEGORIES = 17;
/** The number of categories in which the player can score */
public static final int N_SCORING_CATEGORIES = 13;
/** The constants that specify categories on the scoresheet */
public static final int ONES = 1;
public static final int TWOS = 2;
public static final int THREES = 3;
public static final int FOURS = 4;
public static final int FIVES = 5;
public static final int SIXES = 6;
public static final int UPPER_SCORE = 7;
public static final int UPPER_BONUS = 8;
public static final int THREE_OF_A_KIND = 9;
public static final int FOUR_OF_A_KIND = 10;
public static final int FULL_HOUSE = 11;
public static final int SMALL_STRAIGHT = 12;
public static final int LARGE_STRAIGHT = 13;
public static final int YAHTZEE = 14;
public static final int CHANCE = 15;
public static final int LOWER_SCORE = 16;
public static final int TOTAL = 17;
}