Discussion Board
Go to the previous messageGo to the following message
Current Forum: Homework 6 - Part II
Date: Sat Dec 8 2001 4:08 pm
Author: Dozzi, Giancarlo <gdozzi@andrew.cmu.edu>
Subject: Re: IllegalMoveException access

I figured it out. In MyPlayer, whenever you want to call makeMove(), do this:

try
{
makeMove();
}
catch (Exception e) {}

So, the exception gets caught, without specifying what kind of exception it is. Note that I didn't do anything after catching, but that's up to you.
Post response

Go to the previous messageGo to the following message
Current Thread Detail:
IllegalMoveException access      Dozzi, Giancarlo      Sat Dec 8 2001 3:14 pm       
Re: IllegalMoveException access      Ghosh, Debmallo S.      Sat Dec 8 2001 3:35 pm       
Re: IllegalMoveException access      Dozzi, Giancarlo      Sat Dec 8 2001 4:08 pm       
Re: IllegalMoveException access      Maxim, Michael G.      Sat Dec 8 2001 7:08 pm       

Back to previous screen