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

com.fathzer.games.perft.Divide Maven / Gradle / Ivy

The newest version!
package com.fathzer.games.perft;

/** A perft divide result for a specific move.
 * @param  The type of move
*/
public class Divide {
	private final M move;
	private final long nbLeaves;

	/** Creates a new instance of Divide
	 * @param move The move
	 * @param nbLeaves The number of leaves found for this move
	 */
	public Divide(M move, long nbLeaves) {
		this.move = move;
		this.nbLeaves = nbLeaves;
	}

	/** Gets the move
	 * @return The move
	 */
	public M getMove() {
		return move;
	}

	/** Gets the number of leaves found for this move
	 * @return The number of leaves found for this move
	 */
	public long getNbLeaves() {
		return nbLeaves;
	}

	@Override
	public String toString() {
		return move.toString()+": "+nbLeaves;
	}
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy