X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;ds=sidebyside;f=web%2Fagent_python.html;fp=web%2Fagent_python.html;h=8ef4ccd98d519e8b012013a113c649c59e7be988;hb=c2fbd2e5499e4817c156f9dbabea5215d83729dd;hp=9385ad1fb399bdace7077d5effc012d0e88cfe16;hpb=4e3cee35c67cb43df5d81ba8a0ecc2013d065379;p=progcomp2013.git 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