
com.fathzer.chess.utils.adapters.BoardExplorer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of chess-utils Show documentation
Show all versions of chess-utils Show documentation
Some helpful piece of code to implement chess engines.
The newest version!
package com.fathzer.chess.utils.adapters;
import com.fathzer.chess.utils.Pieces;
/** A class that allows to browse board content.
*/
public interface BoardExplorer {
/** Moves to next piece.
* @return false if there's no more pieces
*/
boolean next();
/** Gets the cell's index of current piece.
* @return an int.
*
index 0 corresponds to cell a8, 1 to b8, ... 8 to a7, ... 63 to h1
*/
int getIndex();
/** Gets the piece in the current cell.
* @return A piece code as defined in {@link Pieces}
*/
int getPiece();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy