public enum GameState extends Enum<GameState>
Enum Constant and Description |
---|
BLACK_MATES |
DRAW_BY_3_FOLD_REPETITION |
DRAW_BY_50_MOVE_RULE |
DRAW_BY_AGREEMENT |
DRAW_BY_INSUFFICIENT_MATERIAL |
IN_PROGRESS |
STALE_MATE |
UNSPECIFIED_BLACK_WIN
E.g.
|
UNSPECIFIED_WHITE_WIN
E.g.
|
WHITE_MATES |
Modifier and Type | Method and Description |
---|---|
String |
getPGNCode() |
static GameState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GameState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GameState IN_PROGRESS
public static final GameState WHITE_MATES
public static final GameState BLACK_MATES
public static final GameState STALE_MATE
public static final GameState DRAW_BY_INSUFFICIENT_MATERIAL
public static final GameState DRAW_BY_3_FOLD_REPETITION
public static final GameState DRAW_BY_50_MOVE_RULE
public static final GameState DRAW_BY_AGREEMENT
public static final GameState UNSPECIFIED_WHITE_WIN
public static final GameState UNSPECIFIED_BLACK_WIN
public static GameState[] values()
for (GameState c : GameState.values()) System.out.println(c);
public static GameState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getPGNCode()
Copyright © 2020. All rights reserved.