AI keeps hand containing the only land that doesn't produce mana of the required color

Open
#12,984 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

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

Research direction

Start by locating the AI hand-keep or mulligan logic and the mana-color checks used when evaluating a hand; the issue does not name files or tests. Reproduce the described hand with one Plains and several one-mana green creatures, then compare behavior with FlatMC enabled and disabled. Done when the AI rejects a hand whose only land cannot produce the color needed by its spells.

Written by the indexing model from the issue text.

Description

Describe the bug
AI keeps hand which contains only a Plains as a land and multiple 1-mana green creatures

To Reproduce
Steps to reproduce the behavior:

  1. AI keeps hand which contains only a Plains as a land and multiple 1-mana green creatures
  2. AI plays Plains
  3. AI passes the turn

Expected behavior
AI shouldn't keep hand containing the only land that doesn't produce mana of the required color to play

Additional context
Actual for:

  • AI with FlatMC
  • AI without FlatMC

Desktop

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

Screenshots

lands
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.