Meta-list: AI mana payment / auto-pass gaps

Đang mở
#12,829 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
java
Lĩnh vực
ai, backend

Hướng nghiên cứu

This meta-list collects AI mana payment and auto-pass gaps and links related issues and pull requests, including #1024, #9015, #308, and #12364. Start by reading the linked PR #12828 and the individual issue or PR for the gap you want to investigate. The list is complete when the selected behavior is fixed and covered by relevant payment or auto-pass checks; the payload does not name test files.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

AI keep QOL

Meta-list of unresolved gaps in AI mana payment / auto-pass logic.

Sources whose output depends on a choice

  • Mana abilities that reveal or add a counter first (Metalworker, Sacellum Godspeaker, Rosheen, Roaring Prophet, Empowered Autogenerator): getAIPlayableMana still skips these roots, because the solver would need to predict the cards revealed or the counter added.
  • Crucible of the Spirit Dragon: its combination mana is split before X is chosen for the counters removed.

Filters (mana abilities that cost mana)

  • Chained filters: a test payment never combines two filters, so two Chromatic Stars cannot pay Counterspell, and Farrelite Priest pays only one mana per payment.
  • Counter sources that cost mana: Petalmane Baku and the Time Spiral storage lands (Calciform Pools and others) cost {1} to activate, so the solver rejects them.

Mana estimates that disagree with payment

AI works out its mana in two separate ways. The payment solver (payManaCost, canPayManaCost) pays a specific cost: it picks the sources and chooses X, colors and filters, in a test payment or for real. Estimates (getAvailableManaEstimate, source counts and source rankings) instead add up what each source can make, without making those choices. Many AI decisions use the estimates, such as attack and block planning and the counterspell logic. When a source's mana depends on a choice made during payment, the estimate can count more or less mana than the payment would actually get.

  • Source counts: ExploreAi, ManaAi and the Black Lotus logic treat the number of mana sources as the mana available, so a break-even filter such as Prismatic Lens counts as one mana.
  • Mage-Ring Network: payment always tries its plain {T}: Add {C} first, which taps it, so it can never pay more than {1}. getAvailableManaEstimate counts its counters.
  • Source ordering: sortManaAbilities and requiredSourcesFirst read X as unset, so a storage land with counters ranks as making no mana, and scoreManaProducingCard scores it as one {C}.
  • Devotion mana in estimates: getAvailableManaEstimate and requiredSourcesFirst count Nyx Lotus and Nykthos's devotion ability as no mana, because no color is chosen when they run.
  • DeckManaBase: a one-shot fixer such as Chromatic Star counts as a source of every color when a generated deck is repaired.

Minor edge cases

  • Converge: getConvergeCount can count the color spent on a filter's own cost, as with Signets.
  • Snow storage lands: a storage land made snow can pay {S} only on its own, because predictMana predicts one {S} whatever X is.
  • Replacement order in predictions: predictManaReplacement applies replacement effects in a fixed order, so chained replacements can be predicted wrongly.
  • Two mana from one aura: Dawn's Reflection and Market Festival add two mana of one color, so the AI can't pay a two-color cost such as {W}{U} from one of them.

Resolved

Ngôn ngữ chính
Java
Star
2.7k
Fork
1.1k
Merge trung bình
20 giờ 38 phút
Pull request đã merge (30 ngày)
323

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Card-Forge/forge

Tất cả issue của Card-Forge/forge

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.