From 6226f4254a0fce5b06b5b91b58c2921eb0523c72 Mon Sep 17 00:00:00 2001 From: felix-vi Date: Wed, 4 Feb 2026 13:22:17 +0100 Subject: [PATCH] =?UTF-8?q?mise=20en=20place=20du=20bot=20divin=20dans=20l?= =?UTF-8?q?'ar=C3=A8ne=20et=20modification=20de=20la=20javadoc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fr/iut_fbleau/Avalam/ArenaWindow.java | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/fr/iut_fbleau/Avalam/ArenaWindow.java b/fr/iut_fbleau/Avalam/ArenaWindow.java index 09982df..f6d0580 100644 --- a/fr/iut_fbleau/Avalam/ArenaWindow.java +++ b/fr/iut_fbleau/Avalam/ArenaWindow.java @@ -1,6 +1,7 @@ package fr.iut_fbleau.Avalam; import fr.iut_fbleau.Bot.AlphaBetaBot; +import fr.iut_fbleau.Bot.DivineBot; import fr.iut_fbleau.Bot.IdiotBot; import fr.iut_fbleau.GameAPI.AbstractGamePlayer; import fr.iut_fbleau.GameAPI.Player; @@ -14,7 +15,8 @@ import java.util.List; /** * 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 */ @@ -247,14 +249,7 @@ public class ArenaWindow extends JFrame { } else if (botType.equals("Bot Alpha-Beta")) { return new AlphaBetaBot(player, depth); } else if (botType.equals("Bot Divin")) { - // Pour l'instant, le Bot Divin n'est pas implémenté, on utilise IdiotBot - 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 new DivineBot(player, depth); } return null; }