mise en place du bot divin dans l'arène et modification de la javadoc #23

Open
Patrick FELIX-VIMALARATNAM wants to merge 1 commits from Verification_BotDivin_Arene into master
Showing only changes of commit 6226f4254a - Show all commits

View File

@@ -1,6 +1,7 @@
package fr.iut_fbleau.Avalam; package fr.iut_fbleau.Avalam;
import fr.iut_fbleau.Bot.AlphaBetaBot; import fr.iut_fbleau.Bot.AlphaBetaBot;
import fr.iut_fbleau.Bot.DivineBot;
import fr.iut_fbleau.Bot.IdiotBot; import fr.iut_fbleau.Bot.IdiotBot;
import fr.iut_fbleau.GameAPI.AbstractGamePlayer; import fr.iut_fbleau.GameAPI.AbstractGamePlayer;
import fr.iut_fbleau.GameAPI.Player; import fr.iut_fbleau.GameAPI.Player;
@@ -14,7 +15,8 @@ import java.util.List;
/** /**
* Fenêtre pour le mode Arène. * Fenêtre pour le mode Arène.
* Permet de sélectionner deux bots, le nombre de parties, et affiche les résultats. * Permet de sélectionner trois bots (Idiot, Alpha-Beta, Divin), de configurer la profondeur
* de recherche pour les bots intelligents, de choisir le nombre de parties, et d'afficher les résultats.
* *
* @version 1.0 * @version 1.0
*/ */
@@ -247,14 +249,7 @@ public class ArenaWindow extends JFrame {
} else if (botType.equals("Bot Alpha-Beta")) { } else if (botType.equals("Bot Alpha-Beta")) {
return new AlphaBetaBot(player, depth); return new AlphaBetaBot(player, depth);
} else if (botType.equals("Bot Divin")) { } else if (botType.equals("Bot Divin")) {
// Pour l'instant, le Bot Divin n'est pas implémenté, on utilise IdiotBot return new DivineBot(player, depth);
JOptionPane.showMessageDialog(
this,
"Le Bot Divin n'est pas encore implémenté. Utilisation du Bot Idiot à la place.",
"Avertissement",
JOptionPane.WARNING_MESSAGE
);
return new IdiotBot(player);
} }
return null; return null;
} }