git.ucc.asn.au
/
progcomp2013.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added sample agent + log file writing/parsing
[progcomp2013.git]
/
qchess
/
src
/
board.py
diff --git
a/qchess/src/board.py
b/qchess/src/board.py
index
0d96d1a
..
5dbf1dd
100644
(file)
--- a/
qchess/src/board.py
+++ b/
qchess/src/board.py
@@
-1,5
+1,7
@@
[w,h] = [8,8] # Width and height of board(s)
[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
# 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"]
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):
# Add all the pieces with known primary types
for i in range(0, 2):
UCC
git Repository :: git.ucc.asn.au