All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.fathzer.chess.utils.adapters.BoardExplorer Maven / Gradle / Ivy

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