AI is wasting resources on removing the graveyard when there's no need to do so

Open
#12,934 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
50/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
java
Domain
ai, game-dev

Research direction

Start by tracing the AI decision logic for graveyard exile actions such as Thraben Charm's third option and Endurance, including how it evaluates the opponent's graveyard and possible reanimation. Check whether behavior differs with FlatMC enabled. The issue is resolved when the AI preserves graveyard exile for a meaningful target or response while still using those cards for other valid purposes.

Written by the indexing model from the issue text.

Description

Describe the bug
AI uses cards like Thraben Charm or Endurance to exile the opponent's graveyard when the opponent has a single fetch land in their graveyard

To Reproduce
Steps to reproduce the behavior:

  1. Player has a single fetch land in their graveyard
  2. AI casts Thraben Charm (3rd option) / Endurance / etc and targets opponent

Expected behavior
AI must hold cards such as Thraben Charm or Endurance and use them to exile the opponent's graveyard only in response to an attempt to reanimate or return a card from the graveyard to the hand, or for other purposes (to block, to destroy a creature).

Additional context
Actual for:

  • AI with FlatMC
  • AI without FlatMC

Desktop

  • OS: Windows 10
  • Version: 2.0.16-SNAPSHOT-11.17

Screenshots

charm (classic)
Dominant language
Java
Stars
2.7k
Forks
1.1k
Avg merge
19h 28m
Merged PRs (30d)
316

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Card-Forge/forge

All issues in Card-Forge/forge

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.