public static enum Bitboard.Rank extends Enum<Bitboard.Rank>
Modifier and Type | Method and Description |
---|---|
static Bitboard.Rank |
getBySquareIndex(int sqrInd)
Returns the rank of the chess board on which the input parameter square lies.
|
static Bitboard.Rank |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Bitboard.Rank[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Bitboard.Rank R1
public static final Bitboard.Rank R2
public static final Bitboard.Rank R3
public static final Bitboard.Rank R4
public static final Bitboard.Rank R5
public static final Bitboard.Rank R6
public static final Bitboard.Rank R7
public static final Bitboard.Rank R8
public static Bitboard.Rank[] values()
for (Bitboard.Rank c : Bitboard.Rank.values()) System.out.println(c);
public static Bitboard.Rank 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 static Bitboard.Rank getBySquareIndex(int sqrInd)
sqrInd
- The index of the square.Copyright © 2020. All rights reserved.