It is currently 16 Apr 2024, 08:31
   
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 10 guests


Who is online

In total there are 10 users online :: 0 registered, 0 hidden and 10 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 10 guests

Login Form