Commit 16f9b55e authored by Timothy LAIRD's avatar Timothy LAIRD

Debug Commit 2

parent 6ab3011a
......@@ -14,17 +14,17 @@ import java.util.Random;
* @author timot
*/
public class AlgoRechercheMCTS extends AlgoRecherche {
Arbre search;
ArbreMCTS search;
public AlgoRechercheMCTS(Joueur player, Joueur opponent){
search = new Arbre(player, opponent);
search = new ArbreMCTS(player, opponent);
}
@Override
public Coup meilleurCoup(Plateau _plateau, Joueur _joueur, boolean _ponder) {
search = new Arbre(search.root().player(), search.root().opponent());
search = new ArbreMCTS(search.root().player(), search.root().opponent());
Node root = search.root();
root.board((new Node(_plateau)).board());
root.board(_plateau);
int iterations = 0;
Random seed = new Random();
while(iterations < 1){
......
......@@ -9,10 +9,10 @@ package tictactoecodingame;
*
* @author timot
*/
public class Arbre {
public class ArbreMCTS {
Node root;
public Arbre(Joueur pl, Joueur o){
public ArbreMCTS(Joueur pl, Joueur o){
root = new Node(null, pl, o, null);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment