From c2fbd2e5499e4817c156f9dbabea5215d83729dd Mon Sep 17 00:00:00 2001 From: Sam Moore Date: Thu, 28 Feb 2013 18:31:14 +0800 Subject: [PATCH] Add explanation of Board.pieces --- web/agent_python.html | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.20.1