X-Git-Url: https://git.ucc.asn.au/?p=progcomp2013.git;a=blobdiff_plain;f=qchess%2Fboard.py;fp=qchess%2Fboard.py;h=d028442f1b2da3c06fb1c602ddc281c661072667;hp=48581683dff3c9b61bf532e5a04f8d18e772d123;hb=bfa63f1a2dc9c66399f8159857d4cc54f038eaa2;hpb=e0c24aed084b96f3c5800d869bc759f89667bd6a diff --git a/qchess/board.py b/qchess/board.py index 4858168..d028442 100644 --- a/qchess/board.py +++ b/qchess/board.py @@ -124,7 +124,7 @@ class Board(): raise Exception("EMPTY") if colour != None and piece.colour != colour: - raise Exception("COLOUR") + raise Exception("COLOUR " + str(piece.colour) + " not " + str(colour)) # I'm not quite sure why I made this return a string, but screw logical design return str(x) + " " + str(y) + " " + str(piece.select()) + " " + str(piece.current_type)