magefree / magefree/mage

AI still stuck on declare blockers (1.4.57-v2)

Open
#13,562 7 comments 0 reactions 1 assignee Claimed by @JayDi85 View on GitHub
AI bug
Dominant language
Java
Stars
2.4k
Forks
940
Avg merge
2d 12h
Merged PRs (30d)
160

Description

Sadly I can still stall the AI / it will freeze on the last AI in the round.

```
INFO 2025-04-20 10:07:03,467 =================== Sim PRIORITY on DECLARE ATTACKERS, turn 13, Computer 2 =================== =>[GAME 8c264936-f9ed-4829-9a27-99657efc4d7d] ComputerPlayer6.printBattlefieldScore
INFO 2025-04-20 10:07:03,467 [Stack]: 0 =>[GAME 8c264936-f9ed-4829-9a27-99657efc4d7d] ComputerPlayer6.printBattlefieldScore
INFO 2025-04-20 10:07:03,467 [Computer 2], life = 38, score = -3857 (Life:11800, Hand:25, Perm:3833) =>[GAME 8c264936-f9ed-4829-9a27-99657efc4d7d] ComputerPlayer6.printBattlefieldScore
INFO 2025-04-20 10:07:03,467 -> Hand: [Hagra Diabolist:5; Resolute Blademaster:5; Seascape Aerialist:5; Patchwork Banner:5; Steam Vents:5] =>[GAME 8c264936-f9ed-4829-9a27-99657efc4d7d] ComputerPlayer6.printBattlefieldScore
INFO 2025-04-20 10:07:03,467 -> Permanents: [Breeding Pool,tapped:455; Aether Vial,tapped:728; Zagoth Triome,tapped:505; Bountiful Promenade,tapped:455; Lantern Scout:1690] =>[GAME 8c264936-f9ed-4829-9a27-99657efc4d7d] ComputerPlayer6.printBattlefieldScore
INFO 2025-04-20 10:07:03,467 [dnightmare], life = 40, score = 3857 (Life:12000, Hand:20, Perm:7495) =>[GAME 8c264936-f9ed-4829-9a27-99657efc4d7d] ComputerPlayer6.printBattlefieldScore
INFO 2025-04-20 10:07:03,467 -> Hand: [Death Tyrant:5; Woe Strider:5; Bloodghast:5; Grave Betrayal:5] =>[GAME 8c264936-f9ed-4829-9a27-99657efc4d7d] ComputerPlayer6.printBattlefieldScore
INFO 2025-04-20 10:07:03,467 -> Permanents: [Swamp,tapped:405; Swamp,tapped:405; Tenacious Underdog,tapped,attacking:1680; Westvale Abbey,tapped:405; Ophiomancer:1580; Snake Token:1180; Swamp,tapped:405; Falkenrath Noble:1435] =>[GAME 8c264936-f9ed-4829-9a27-99657efc4d7d] ComputerPlayer6.printBattlefieldScore
INFO 2025-04-20 10:07:03,468 [Computer 3], life = 40, score = 542 (Life:12000, Hand:25, Perm:4175) =>[GAME 8c264936-f9ed-4829-9a27-99657efc4d7d] ComputerPlayer6.printBattlefieldScore
INFO 2025-04-20 10:07:03,468 -> Hand: [Eye of Singularity:5; Caduceus, Staff of Hermes:5; Bloodsworn Steward:5; Whispersilk Cloak:5; Boros Charm:5] =>[GAME 8c264936-f9ed-4829-9a27-99657efc4d7d] ComputerPlayer6.printBattlefieldScore
INFO 2025-04-20 10:07:03,468 -> Permanents: [Plains,tapped:405; Plains,tapped:405; Knight of Cliffhaven,tapped:1370; Plains,tapped:405; Codsworth, Handy Helper:1590] =>[GAME 8c264936-f9ed-4829-9a27-99657efc4d7d] ComputerPlayer6.printBattlefieldScore
INFO 2025-04-20 10:07:03,468 [Computer 4], life = 35, score = -1013 (Life:11500, Hand:30, Perm:3115) =>[GAME 8c264936-f9ed-4829-9a27-99657efc4d7d] ComputerPlayer6.printBattlefieldScore
INFO 2025-04-20 10:07:03,468 -> Hand: [Command Tower:5; Mountain:5; Callous Sell-Sword:5; Collector's Vault:5; Warped Landscape:5; Voldaren Thrillseeker:5] =>[GAME 8c264936-f9ed-4829-9a27-99657efc4d7d] ComputerPlayer6.printBattlefieldScore
INFO 2025-04-20 10:07:03,468 -> Permanents: [Mountain,tapped:405; Mountain,tapped:405; Mountain,tapped:405; Gloin, Dwarf Emissary:1900] =>[GAME 8c264936-f9ed-4829-9a27-99657efc4d7d] ComputerPlayer6.printBattlefieldScore
INFO 2025-04-20 10:07:03,483 POSSIBLE ACTION CHAINS for Computer 2 (1, started score: -3857) =>[AI-SIM-MAD - 1] ComputerPlayer6.simulatePriority
INFO 2025-04-20 10:07:03,483 -> #1 (Pass) =>[AI-SIM-MAD - 1] ComputerPlayer6.simulatePriority
INFO 2025-04-20 10:07:03,490 Sim Prio [4] #1 =>[AI-SIM-MAD - 1] ComputerPlayer6.simulatePriority
INFO 2025-04-20 10:07:03,490 Sim Prio [4] -> next action: [4] (Pass) =>[AI-SIM-MAD - 1] ComputerPlayer6.simulatePriority
INFO 2025-04-20 10:07:03,490 Sim Prio [4] -* BEST actions chain so far: =>[AI-SIM-MAD - 1] ComputerPlayer6.simulatePriority
INFO 2025-04-20 10:07:03,490 Sim Prio [4] ## Ended due max actions chain depth limit (4) -- Nodes calculated: 2 =>[AI-SIM-MAD - 1] ComputerPlayer6.simulatePriority
```
That's the logs from my docker-server which updated last night to v2

Game Situation:
![Image](https://github.com/user-attachments/assets/491f8b22-b864-431c-a364-8cd98f11ba3a)

Table Settings:
![Image](https://github.com/user-attachments/assets/ef254f2e-7f12-464f-85dc-43e20e33c61c)

Same "problem" by the looks of it: Attacking with my 3/2 [[Tenacious Underdog]] into a 2/3 [[Codsworth, Handy Helper]] yet I still don't understand why the last AI hangs, not the one being attacked.
Can provide those 4 decks as well, to be able to recreate the scenarios, as it is fairly common with those 4 decks at the table and, for example, doesn't freeze with at all with like 4x goblin aggro or something similar.

Since I've build the Drivnod deck, so aristocrats/graveyard shenanigangs, it's way worse then before. something along the lines of 6 games out of 10 get stuck sooner or later when attacking/blocking
This was v1 before the patches/update. All the upper ones are stuck on some combat situation.
![Image](https://github.com/user-attachments/assets/d2c81c7d-c4a3-481b-b07a-343de21f7081)

Updated to v2 now and the very first game, Turn 14, stuck again.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.