AI casts Reprieve in response to a player's spell, which the player can cast again

Open
#13,103 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

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

Research direction

Start by locating the AI logic that decides whether to cast Reprieve in response to a spell, including both FlatMC and classic AI paths. Read how those paths weigh returning a spell when the player can pay to cast it again. Reproduce the Noble Hierarch scenario from the issue, then verify the AI avoids Reprieve when the player has enough untapped Forests to recast it.

Written by the indexing model from the issue text.

Description

Describe the bug
AI casts Reprieve to return Noble Hierarch spell to the player’s hand, but the player has plenty of untapped lands to cast this Noble Hierarch again

To Reproduce
Steps to reproduce the behavior:

  1. Player has 5+ Forests on the battlefield
  2. Player has Noble Hierarch in hand
  3. AI has 2+ untapped Plains on the battlefield
  4. AI has Reprieve in hand
  5. Player casts Noble Hierarch
  6. AI casts Reprieve to return Noble Hierarch spell to the player’s hand
  7. Player casts Noble Hierarch again

Expected behavior
AI shouldn't cast Reprieve in response to a player's spell, which the player can cast again

Additional context
Actual for:

  • AI with FlatMC
  • AI without FlatMC

Desktop

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

Screenshots

AI with FlatMC

reprieve (flatMC)

AI without FlatMC

reprieve (classicAI)
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.