X-Git-Url: https://git.ucc.asn.au/?p=progcomp2013.git;a=blobdiff_plain;f=qchess%2Fsrc%2Fboard.py;h=5dbf1dd2a9486f64a8636815b999ccb89fd0c357;hp=0d96d1ae928f878edde7344059d318319dadaa62;hb=a35e4dc5f4fb6325785b6f8b123266976107b748;hpb=444244d5c7698bb7861cdb7c0ec6bfb0e8cebfb7 diff --git a/qchess/src/board.py b/qchess/src/board.py index 0d96d1a..5dbf1dd 100644 --- a/qchess/src/board.py +++ b/qchess/src/board.py @@ -1,5 +1,7 @@ [w,h] = [8,8] # Width and height of board(s) +always_reveal_states = False + # Class to represent a quantum chess board class Board(): # Initialise; if master=True then the secondary piece types are assigned @@ -14,6 +16,9 @@ class Board(): for c in ["black", "white"]: del self.unrevealed_types[c]["unknown"] + if style == "empty": + return + # Add all the pieces with known primary types for i in range(0, 2):