mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
- Improved getWorstLand AI.
This commit is contained in:
@@ -800,6 +800,7 @@ public class ComputerUtilCard {
|
|||||||
for (Card tmp : lands) {
|
for (Card tmp : lands) {
|
||||||
int score = tmp.isTapped() ? 2 : 0;
|
int score = tmp.isTapped() ? 2 : 0;
|
||||||
score += tmp.isBasicLand() ? 1 : 0;
|
score += tmp.isBasicLand() ? 1 : 0;
|
||||||
|
score += tmp.isCreature() ? 4 : 0;
|
||||||
if (score >= maxScore) {
|
if (score >= maxScore) {
|
||||||
worstLand = tmp;
|
worstLand = tmp;
|
||||||
maxScore = score;
|
maxScore = score;
|
||||||
|
|||||||
Reference in New Issue
Block a user