[FlatMC] AI prefers to play Horizon Canopy rather than Forest

Open
#13,105 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
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
java
Domain
ai, game-dev

Research direction

Start by locating the FlatMC mana and land selection logic, then compare its choices with the classic AI behavior described in the issue. Reproduce the hand and turns listed in the report. Done means FlatMC chooses lands that meet the current and next turn's mana needs without paying life unnecessarily.

Written by the indexing model from the issue text.

Description

Describe the bug
AI prefers to play Horizon Canopy rather than Forest even if in need only green to cast Slippery Bogle and 1W to play other spells. So AI loses life for nothing

To Reproduce
Steps to reproduce the behavior:

  1. AI has 2 Horizon Canopy, Forest, Slippery Bogle and Reprieve in hands
  2. AI plays Horizon Canopy and casts Slippery Bogle
  3. At the next turn plays second Horizon Canopy

Expected behavior
AI should play Horizon Canopy first if it needs to cast spells costing one white mana this turn. If it only needs green mana on the first turn and doesn't need WW on the second turn, it should play Forest first.

Additional context
Actual for AI without FlatMC

Desktop

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

Screenshots

AI with FlatMC

pain (flatMC) pain 2 (flatMC)

AI without FlatMC (good!)

forest (classic) forest 2 (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.