Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
UCC
progcomp2013
Commits
c2fbd2e5
Commit
c2fbd2e5
authored
Feb 28, 2013
by
Sam Moore
Browse files
Add explanation of Board.pieces
parent
4e3cee35
Changes
1
Hide whitespace changes
Inline
Side-by-side
web/agent_python.html
View file @
c2fbd2e5
...
...
@@ -119,6 +119,8 @@ Piece - Class to represent a Quantum Chess piece
current_type - string representing the current piece's type; "unknown" for a superposition
Board - Class to represent a quantum chess board. InternalAgent.board is one of these.
pieces[] - Dictionary that maps a colour string ("white" or "black") to a list of Piece's
- ie: Use to get your pieces
possible_moves(self, piece, state = None) - Return a list of possible moves for piece.
- If state is None, the piece must be in a known classical state
- If state is not None, the state of the piece will be temporarily set
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment