Commit efad39ce authored by Alain's avatar Alain

Merge origin/master

parent c6b4de4a
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package tictactoecodingame;
/**
*
* @author Alain
*/
public class Ordi_vs_Ordi {
public static void main(String args[]) {
JoueurOrdi joueurOrdi1 = new JoueurOrdi("Ordi1");
JoueurOrdi joueurOrdi2 = new JoueurOrdi("Ordi2");
// Remplacer ici l'algorithme aléatoire par votre algorithme.
// Créer une nouvelle classe qui hérite de la class AlgoRecherche
AlgoRechercheAleatoire alea1 = new AlgoRechercheAleatoire( ); // L'ordinateur joue au hasard
joueurOrdi1.setAlgoRecherche(alea1);
AlgoRechercheAleatoire alea2 = new AlgoRechercheAleatoire( ); // L'ordinateur joue au hasard
joueurOrdi2.setAlgoRecherche(alea2);
GrilleTicTacToe3x3 grille = new GrilleTicTacToe3x3();
Arbitre a = new Arbitre(grille, joueurOrdi1 , joueurOrdi2 );
a.startNewGame(true); // Demarre une partie en affichant la grille du jeu
// Pour lancer un tournooi de 100 parties en affichant la grille du jeu
//a.startTournament(1000 , false);
}
}
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