-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfig.java
More file actions
32 lines (31 loc) · 1.14 KB
/
Copy pathConfig.java
File metadata and controls
32 lines (31 loc) · 1.14 KB
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
/**
* This file contains settings and constants for Game2048.
* It is not required for submission.
*
* DO NOT ADD ANYTHING TO THIS FILE. You may change the values
* of these constants if you wish (and changing them will be
* useful for testing), but note that we will be using
* our own copy of this file when we grade your assignment.
*
* @author Charles Tianchen Yu, Yingxi Lin
*/
/**
* A class that stores setting and constants for our 2048 game.
*/
public class Config
{
// add constant for 100 in randomTile method
public static final int RANDOM_SEED = 118;
public static final int TWO_PROB = 70;
public static final int TWO_TILE = 2;
public static final int FOUR_TILE = 4;
public static final int DEFAULT_SIZE = 4;
public static final int INITIAL_TILE_COUNT = 2;
public static final char UP_KEY = 'w';
public static final char LEFT_KEY = 'a';
public static final char DOWN_KEY = 's';
public static final char RIGHT_KEY = 'd';
public static final char SAVE_KEY = 'o';
public static final char QUIT_KEY = 'q';
public static final String DEFAULT_OUTFILE = "save.2048";
}