It is currently 08 Dec 2019, 18:15
   
Text Size

Oblivion Ring loop causes crash in AI thinking

Moderators: FranAvalon, Marek14, CCGHQ Admins

Oblivion Ring loop causes crash in AI thinking

Postby FranAvalon » 17 Nov 2012, 17:26

Summary: Oblivion Ring loop causes crash in AI thinking
Description: The example loop in Oblivion Ring ruling:

"If there are no nonland permanents on the battlefield other than an Oblivion Ring, and the card it exiled was another Oblivion Ring, casting a third Oblivion Ring will result in an involuntary infinite loop that will end the game in a draw (unless someone chooses to break it by putting another nonland permanent onto the battlefield or destroying one of the Oblivion Rings, for example)."

happened to me during a game while AI was thinking. It causes immediate crash to desktop without an error message or MDMP files.

I managed to reproduce it with a simple deck. See attachment.

Steps to reproduce the crash: Let computer go first and continue playing lands. Around turn 4 or 5 CTD occurs.
Steps To Reproduce:
Additional Information: [[Oblivion Ring|OblivionRing]] http://gatherer.wizards.com/Pages/Card/ ... eid=220586 [^]

I do not know how to prevent that crash due to infinite loop without checking for it specifically in AI code, because rules themselves allow that loop to happen.

But the computer keeps playing Oblivion Ring even if there are no permanents of the opponent is in play. By restricting its usage for AI only when there is a legal permanent belonging to the opponent exists(or at least another permanent that is not an Oblivion Ring exists), the crash probability might be greatly reduced. This would be a sensible strategy to play this card most of the time anyway
FranAvalon
Programmer
 
Posts: 568
Joined: 02 Jul 2008, 06:54
Has thanked: 44 times
Been thanked: 64 times

Return to User Interface and AI issues

Who is online

Users browsing this forum: No registered users and 0 guests


Who is online

In total there are 0 users online :: 0 registered, 0 hidden and 0 guests (based on users active over the past 10 minutes)
Most users ever online was 564 on 05 Dec 2019, 12:05

Users browsing this forum: No registered users and 0 guests

Login Form