Current Forum: Homework 6 - Part II |
Date: Tue Dec 4 2001 5:46 pm |
Author: Maxim, Michael G. <mmaxim@andrew.cmu.edu> |
Subject: Re: bug still there, with very up-to-date GraphicsGame.java |
|
|
David,
As I pointed out to Ying earlier, it is the case that the GUI does not call the validMove() function in your Player class. This is not good and I know it, so I will fix this ASAP (Right now I have other things to do). makeMove() should throw a IllegalMoveException if presented with an invalid move, although I relieze this makes it slower. You can take this out in the tournament, because the tournament driver will never makeMove() an invalid move on your board.
Mike |
|