Lots of stuff happened
[progcomp2013.git] / qchess / board.py
index 4858168..0d96d1a 100644 (file)
@@ -96,7 +96,7 @@ class Board():
                if window == None:
                        return
                for p in self.pieces["white"] + self.pieces["black"]:
-                       p.draw(window, grid_sz)
+                       p.draw(window, grid_sz, self.style)
 
        # Draw the board in a pygame window
        def display(self, window = None):
@@ -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)

UCC git Repository :: git.ucc.asn.au