Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AI - mulligan = slow train to concession? #4908

Open
rystan opened this issue May 7, 2018 · 5 comments
Open

AI - mulligan = slow train to concession? #4908

rystan opened this issue May 7, 2018 · 5 comments
Labels

Comments

@rystan
Copy link
Contributor

rystan commented May 7, 2018

This has occurred on multiple occasions where the AI player will refuse to play any cards after multiple mulligans. The AI logic seems to get into some sort of funk where every opportunity for it to respond or cast a spell, it takes a really long time to decide before eventually doing nothing. Even with no lands in play. It refuses to play lands, even to the point of discarding playable lands once it's hand limit is reached at the end step. So there might be multiple issues at the core of it:

  1. refusal to play lands even when it has some
  2. some sort of possible short circuit opportunity in the decision logic to skip extra steps if no lands or playable spells are in hand.

Here are some screen shots where the AI refused to play any lands and thus no spells for the entire game, even when it had the lands to play, as you can see by the contents of the graveyard.
2018-04-17 23_29_02-greenshot
2018-04-18 00_18_43-greenshot

@rystan rystan added the AI label May 7, 2018
@JayDi85
Copy link
Member

JayDi85 commented May 7, 2018

Need more info on computer hand (you can see it by right click mouse and select show hand).

AI checks every possible actions/cards to play on step, emulate it (play) and recalc final scores of battlefield situation (each card gives some score, life counts too) and choose the best one. It's limit by time (2-3 secs) and interrupted on timeout.

That's why there are two possible problems:

  • AI got "infinite card" and can't recalc other actions (it's stop on it and take "nothing" to do);
  • AI or player have special card to hart or make bad things on land's ETB -- it's ignores bad steps and don't play it.

@rystan
Copy link
Contributor Author

rystan commented May 7, 2018

Unfortunately, I wasn't playing through the IDE or with any cheat enabled so I don't know what was in the AI hands at the time. I initially just thought it was mana screwed until I happened to notice that there were playable lands in the graveyard after discard/end step.

@JayDi85
Copy link
Member

JayDi85 commented May 7, 2018

No needs in test mode -- AI will allow to see hand every time. Select it by menu:

shot_180507_085032

shot_180507_085057

You can copy AI and your decks here to test (if it constantly occurs).

@rystan
Copy link
Contributor Author

rystan commented May 7, 2018

Excellent. I wasn't aware of that ability, so the next time I run into that situation, I'll get the full state of the game. Thanks.

@rystan
Copy link
Contributor Author

rystan commented May 25, 2018

Happened again, and hopefully I pulled more than enough info.

Game one (computer played normally)
logs:
Short log: 20180525_011420_Commander Two Player Duel_1.txt
Full JSON log:
game-4987264c-2543-4dd0-975e-b430ca270bc7.json.txt

Game 2 (started out with a computer mulligan and then never played a card entire game)
Short: 20180525_013107_Commander Two Player Duel_2.txt
JSON:
game-2f39e0d1-40c5-460a-8b97-7b932d676a72.json.txt

Some screenshots:
Turn one, AI played no card:
2018-05-25 01_39_16-window
But had playable lands in hand:
2018-05-25 01_39_51-xmage client_ 1 4 29v4 server_ 1 4 29v4

Turn 4 still nothing: but discarding cards and playable lands in AI hand:
2018-05-25 01_49_41-xmage client_ 1 4 29v4 server_ 1 4 29v4

Full board at this point:
2018-05-25 01_50_10-greenshot

Computer turn 7:
2018-05-25 02_00_30-xmage client_ 1 4 29v4 server_ 1 4 29v4

Game is going to be over at end of my turn:
2018-05-25 02_00_58-window
2018-05-25 02_01_35-window
2018-05-25 02_02_00-xmage client_ 1 4 29v4 server_ 1 4 29v4

Game over:
2018-05-25 02_03_38-xmage client_ 1 4 29v4 server_ 1 4 29v4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants