daily pastebin goal
41%
SHARE
TWEET

Yahtzee Constants

ThirstyMako Jan 29th, 2018 (edited) 3 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.  * File: YahtzeeConstants.java
  3.  * ---------------------------
  4.  * This file declares several constants that are shared by the
  5.  * different modules in the Yahtzee game.
  6.  */
  7.  
  8. public interface YahtzeeConstants {
  9.  
  10. /** The width of the application window */
  11.     public static final int APPLICATION_WIDTH = 600;
  12.  
  13. /** The height of the application window */
  14.     public static final int APPLICATION_HEIGHT = 350;
  15.  
  16. /** The number of dice in the game */
  17.     public static final int N_DICE = 5;
  18.  
  19. /** The maximum number of players */
  20.     public static final int MAX_PLAYERS = 4;
  21.  
  22. /** The total number of categories */
  23.     public static final int N_CATEGORIES = 17;
  24.  
  25. /** The number of categories in which the player can score */
  26.     public static final int N_SCORING_CATEGORIES = 13;
  27.  
  28. /** The constants that specify categories on the scoresheet */
  29.     public static final int ONES = 1;
  30.     public static final int TWOS = 2;
  31.     public static final int THREES = 3;
  32.     public static final int FOURS = 4;
  33.     public static final int FIVES = 5;
  34.     public static final int SIXES = 6;
  35.     public static final int UPPER_SCORE = 7;
  36.     public static final int UPPER_BONUS = 8;
  37.     public static final int THREE_OF_A_KIND = 9;
  38.     public static final int FOUR_OF_A_KIND = 10;
  39.     public static final int FULL_HOUSE = 11;
  40.     public static final int SMALL_STRAIGHT = 12;
  41.     public static final int LARGE_STRAIGHT = 13;
  42.     public static final int YAHTZEE = 14;
  43.     public static final int CHANCE = 15;
  44.     public static final int LOWER_SCORE = 16;
  45.     public static final int TOTAL = 17;
  46.  
  47. }
RAW Paste Data
Pastebin PRO WINTER Special!
Get 40% OFF Pastebin PRO accounts!
Top