X-Git-Url: https://git.ucc.asn.au/?p=progcomp2013.git;a=blobdiff_plain;f=qchess%2Fsrc%2Fboard.py;h=5f75d399d6bbdb0d59b9cc57000bb9df1e777054;hp=8fbbaa044134db5f4c9fb40092e3cd838cbe1a16;hb=5287b4f869be70ddae4b59a44c448be33f95ccda;hpb=885bbd068df051d7b920d6a8a9faa2f74c48db57 diff --git a/qchess/src/board.py b/qchess/src/board.py index 8fbbaa0..5f75d39 100644 --- a/qchess/src/board.py +++ b/qchess/src/board.py @@ -197,7 +197,7 @@ class Board(): #print "Moving " + str(x) + "," + str(y) + " to " + str(x2) + "," + str(y2) + "; possible_moves are " + str(self.possible_moves(piece)) if not [x2,y2] in self.possible_moves(piece): - raise Exception("ILLEGAL move") + raise Exception("ILLEGAL move " + str(x2)+","+str(y2)) self.grid[x][y] = None taken = self.grid[x2][y2]