/** * 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 { 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"; }