X-Git-Url: https://git.ucc.asn.au/?p=progcomp2013.git;a=blobdiff_plain;f=web%2Fagent_python.html;h=7db07bde64d4b5c046bac013364e157e96fdd0d1;hp=9385ad1fb399bdace7077d5effc012d0e88cfe16;hb=573931ea67fa99135eca781ff814933e04df4308;hpb=4e3cee35c67cb43df5d81ba8a0ecc2013d065379 diff --git a/web/agent_python.html b/web/agent_python.html index 9385ad1..7db07bd 100644 --- a/web/agent_python.html +++ b/web/agent_python.html @@ -44,7 +44,7 @@ margin:0; padding: 0 5px; background:none; vertical-align:top;color:#000;border-

Be sure to read and understand the rules before reading this page.

-

The sample python agent implements this API

+

The sample python agent implements this API

You may still use the text based API if you insist.

@@ -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