mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
Count cards beyond max hand size for less.
This commit is contained in:
@@ -26,6 +26,11 @@ public class GameStateEvaluator {
|
||||
}
|
||||
GameSimulator.debugPrint("My cards in hand: " + myCards);
|
||||
GameSimulator.debugPrint("Their cards in hand: " + theirCards);
|
||||
if (myCards > aiPlayer.getMaxHandSize()) {
|
||||
// Count excess cards for less.
|
||||
score += myCards - aiPlayer.getMaxHandSize();
|
||||
myCards = aiPlayer.getMaxHandSize();
|
||||
}
|
||||
score += 3 * myCards - 3 * theirCards;
|
||||
for (Card c : game.getCardsIn(ZoneType.Battlefield)) {
|
||||
int value;
|
||||
|
||||
Reference in New Issue
Block a user