public static enum Bitboard.File extends Enum<Bitboard.File>
Modifier and Type | Method and Description |
---|---|
static Bitboard.File |
getBySquareIndex(int sqrInd)
Returns the file of the chess board on which the input parameter square lies.
|
static Bitboard.File |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Bitboard.File[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Bitboard.File A
public static final Bitboard.File B
public static final Bitboard.File C
public static final Bitboard.File D
public static final Bitboard.File E
public static final Bitboard.File F
public static final Bitboard.File G
public static final Bitboard.File H
public static Bitboard.File[] values()
for (Bitboard.File c : Bitboard.File.values()) System.out.println(c);
public static Bitboard.File 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.File getBySquareIndex(int sqrInd)
sqrInd
- The index of the square.Copyright © 2020. All rights reserved.