From b24ab8902fde27db0b5501ea188977f90eb5845f Mon Sep 17 00:00:00 2001 From: Jonas Suess Date: Sun, 24 Mar 2019 14:29:19 +0100 Subject: [PATCH] A first implementation of the stronger AI --- Projektgruppe_175/src/game/GameConstants.java | 2 +- Projektgruppe_175/src/game/players/StrongAI.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Projektgruppe_175/src/game/GameConstants.java b/Projektgruppe_175/src/game/GameConstants.java index fb98dca..da23b8c 100644 --- a/Projektgruppe_175/src/game/GameConstants.java +++ b/Projektgruppe_175/src/game/GameConstants.java @@ -38,7 +38,7 @@ public class GameConstants { public static final Class PLAYER_TYPES[] = { Human.class, BasicAI.class, - StrongAI.class + StrongAI.class // The new AI // TODO: Add more Player types, like different AIs }; } diff --git a/Projektgruppe_175/src/game/players/StrongAI.java b/Projektgruppe_175/src/game/players/StrongAI.java index c0c9ea8..4b6fa03 100644 --- a/Projektgruppe_175/src/game/players/StrongAI.java +++ b/Projektgruppe_175/src/game/players/StrongAI.java @@ -188,7 +188,7 @@ public class StrongAI extends AI { } /** - * Returns a batch of connected castles around some start castle that belong to p + * Returns a batch of connected castles around some start castle that belong to the player p * @param g the graph * @param p the owner of the castles * @param castle the start castle