- All Implemented Interfaces:
Serializable,Comparable<Move.Square>,Constable
- Enclosing class:
Move
Represents the squares on a chess board using standard algebraic notation.
Each square is defined by its file (a-h) and rank (1-8) coordinates.
The squares are ordered from a8 to h1, following standard chess notation.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic Move.Squareof(int idx) static Move.Squareof(int file, int rank) static Move.SquareReturns the enum constant of this class with the specified name.static Move.Square[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
a8
-
b8
-
c8
-
d8
-
e8
-
f8
-
g8
-
h8
-
a7
-
b7
-
c7
-
d7
-
e7
-
f7
-
g7
-
h7
-
a6
-
b6
-
c6
-
d6
-
e6
-
f6
-
g6
-
h6
-
a5
-
b5
-
c5
-
d5
-
e5
-
f5
-
g5
-
h5
-
a4
-
b4
-
c4
-
d4
-
e4
-
f4
-
g4
-
h4
-
a3
-
b3
-
c3
-
d3
-
e3
-
f3
-
g3
-
h3
-
a2
-
b2
-
c2
-
d2
-
e2
-
f2
-
g2
-
h2
-
a1
-
b1
-
c1
-
d1
-
e1
-
f1
-
g1
-
h1
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
of
-
of
-