From c3cd91b1994f9eaa759839f1281c1d89431714e7 Mon Sep 17 00:00:00 2001 From: william Date: Tue, 11 Apr 2023 14:11:19 -0400 Subject: [PATCH] Meilleures heuristiques --- .idea/workspace.xml | 71 +++++----- src/main/java/laboratoire4/Client.java | 2 +- src/main/java/laboratoire4/IPawn.java | 2 + src/main/java/laboratoire4/pawns/Pawn.java | 16 ++- .../java/laboratoire4/pawns/PawnUtils.java | 126 +++++++++++++++++- src/main/java/laboratoire4/pawns/Pushed.java | 4 +- src/main/java/laboratoire4/pawns/Pusher.java | 4 +- .../strategies/AttackStrategy.java | 50 ++++++- .../strategies/DefenseStrategy.java | 94 +++++++++++-- .../strategies/ImmediateDefenseStrategy.java | 1 + .../strategies/MasterStrategy.java | 13 +- .../strategies/MiniMaxStrategy.java | 52 ++++---- ...rtingStrategy.java => RandomStrategy.java} | 14 +- .../laboratoire4/strategies/Strategy.java | 18 +++ .../strategies/WinningStrategy.java | 70 ++++++++-- 15 files changed, 424 insertions(+), 113 deletions(-) rename src/main/java/laboratoire4/strategies/{StartingStrategy.java => RandomStrategy.java} (76%) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 3e38ebe..c42e22d 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,36 +4,22 @@