Skip to content
Snippets Groups Projects
Commit c2fbd2e5 authored by Sam Moore's avatar Sam Moore
Browse files

Add explanation of Board.pieces

parent 4e3cee35
No related merge requests found
...@@ -119,6 +119,8 @@ Piece - Class to represent a Quantum Chess piece ...@@ -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 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. 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. 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 None, the piece must be in a known classical state
- If state is not None, the state of the piece will be temporarily set - If state is not None, the state of the piece will be temporarily set
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment