Package edu.wisc.game.sql
Class Episode.CODE
- java.lang.Object
-
- edu.wisc.game.sql.Episode.CODE
-
-
Field Summary
Fields Modifier and Type Field Description static intACCEPTstatic intATTEMPT_CNT_MISMATCHstatic intDENYstatic intEMPTY_CELLstatic intEXITstatic intIMMOVABLEstatic intINVALID_ARGUMENTSstatic intINVALID_COMMANDstatic intINVALID_OBJECT_IDstatic intINVALID_POSstatic intINVALID_RULESstatic intJUST_A_DISPLAYstatic intMULTIPLE_OBJECTS_IN_CELLstatic intNEW_GAMEstatic intNO_GAMEstatic intNO_SUCH_EPISODEstatic intOUT_OF_TURNstatic intSTALEMATE
-
Constructor Summary
Constructors Constructor Description CODE()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanareSimilar(int code1, int code2)static intlegacy(int code)This is used when comparing codes read from old transcripts and recomputed codes, to take into account a more recent creation of code 7static StringtoBasicName(int code)Used to talk to Gemini
-
-
-
Field Detail
-
ACCEPT
public static final int ACCEPT
- See Also:
- Constant Field Values
-
STALEMATE
public static final int STALEMATE
- See Also:
- Constant Field Values
-
EMPTY_CELL
public static final int EMPTY_CELL
- See Also:
- Constant Field Values
-
DENY
public static final int DENY
- See Also:
- Constant Field Values
-
EXIT
public static final int EXIT
- See Also:
- Constant Field Values
-
NEW_GAME
public static final int NEW_GAME
- See Also:
- Constant Field Values
-
IMMOVABLE
public static final int IMMOVABLE
- See Also:
- Constant Field Values
-
INVALID_COMMAND
public static final int INVALID_COMMAND
- See Also:
- Constant Field Values
-
INVALID_ARGUMENTS
public static final int INVALID_ARGUMENTS
- See Also:
- Constant Field Values
-
INVALID_POS
public static final int INVALID_POS
- See Also:
- Constant Field Values
-
NO_GAME
public static final int NO_GAME
- See Also:
- Constant Field Values
-
INVALID_RULES
public static final int INVALID_RULES
- See Also:
- Constant Field Values
-
NO_SUCH_EPISODE
public static final int NO_SUCH_EPISODE
- See Also:
- Constant Field Values
-
ATTEMPT_CNT_MISMATCH
public static final int ATTEMPT_CNT_MISMATCH
- See Also:
- Constant Field Values
-
JUST_A_DISPLAY
public static final int JUST_A_DISPLAY
- See Also:
- Constant Field Values
-
OUT_OF_TURN
public static final int OUT_OF_TURN
- See Also:
- Constant Field Values
-
INVALID_OBJECT_ID
public static final int INVALID_OBJECT_ID
- See Also:
- Constant Field Values
-
MULTIPLE_OBJECTS_IN_CELL
public static final int MULTIPLE_OBJECTS_IN_CELL
- See Also:
- Constant Field Values
-
-
Method Detail
-
toBasicName
public static String toBasicName(int code)
Used to talk to Gemini
-
legacy
public static int legacy(int code)
This is used when comparing codes read from old transcripts and recomputed codes, to take into account a more recent creation of code 7
-
areSimilar
public static boolean areSimilar(int code1, int code2)
-
-