LOG320_Lab4/src/main/java/laboratoire4/GameTree.java
2023-04-09 13:26:32 -04:00

45 lines
921 B
Java

package laboratoire4;
import laboratoire4.game.PusherGame;
import laboratoire4.pawns.Pawn;
import laboratoire4.pawns.PawnMovement;
import java.util.Collection;
public class GameTree {
private Node root;
public Node buildTree(PusherGame board){
return null;
}
public Node getRoot() {
return root;
}
static class Node {
private final Collection<Node> childs;
private final Pawn pawn;
private final PawnMovement movement;
Node(Collection<Node> childs, Pawn pawn, PawnMovement movement) {
this.childs = childs;
this.pawn = pawn;
this.movement = movement;
}
public Collection<Node> getChilds() {
return childs;
}
public Pawn getPawn() {
return pawn;
}
public PawnMovement getMovement() {
return movement;
}
}
}