
com.fathzer.games.perft.Divide Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of games-core Show documentation
Show all versions of games-core Show documentation
A core library to help implement two players games.
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