AI plays a shockland untapped on the first turn if the only card in its hand that costs 1 mana is Ephemerate

Open
#12,982 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
3-5 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
java
Domain
ai, game-dev

Research direction

Start by tracing how the AI decides whether to pay life to play a shockland untapped, then check how it evaluates Ephemerate's valid targets against the current battlefield. Reproduce the first-turn Hallowed Fountain and Ephemerate hand in both FlatMC and classic AI modes. Done when neither mode pays life when the only one-mana spell cannot affect any permanent currently on the battlefield.

Written by the indexing model from the issue text.

Description

Describe the bug
AI keeps hand with Hallowed Fountain and Ephemerate, which is the only card that costs 1 mana in hand, and plays Hallowed Fountain untapped. But AI doesn't even have any creatures for this spell yet

To Reproduce
Steps to reproduce the behavior:

  1. AI keeps hand with Hallowed Fountain and Ephemerate, which is the only card that costs 1 mana in hand
  2. AI plays Hallowed Fountain untapped on the first turn
  3. AI passes the turn

Expected behavior
AI shouldn't play shocklands untapped on the first turn if AI has a one-mana spell in its hand that interacts only with its own permanents, and there are no such permanents on the battlefield

Additional context
Actual for:

  • AI with FlatMC
  • AI without FlatMC

Desktop

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

Screenshots

AI with FlatMC

ephemer (FlatMC)

AI without FlatMC

ephemer (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.