From: Sam Moore Date: Thu, 28 Feb 2013 10:31:14 +0000 (+0800) Subject: Add explanation of Board.pieces X-Git-Url: https://git.ucc.asn.au/?p=progcomp2013.git;a=commitdiff_plain;h=c2fbd2e5499e4817c156f9dbabea5215d83729dd Add explanation of Board.pieces --- diff --git a/web/agent_python.html b/web/agent_python.html index 9385ad1..8ef4ccd 100644 --- a/web/agent_python.html +++ b/web/agent_python.html @@ -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