Prevent race condition with player clicking before AJAX query finishes
[progcomp2013.git] / web / agent_python.html
index 9385ad1..7db07bd 100644 (file)
@@ -44,7 +44,7 @@ margin:0; padding: 0 5px; background:none; vertical-align:top;color:#000;border-
 
 <p> Be sure to read and understand <a href="http://research.cs.queensu.ca/Parallel/QuantumChess/QuantumChess.html"/>the rules</a> before reading this page. </p>
 <p> </p>
-<p> The <a href="../agents/sample"/>sample python agent</a> implements this API </p>
+<p> The <a href="../agents/python"/>sample python agent</a> implements this API </p>
 <p> You may still use the <a href="agent_text.html"/>text based API</a> if you insist. </p>
 
 
@@ -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

UCC git Repository :: git.ucc.asn.au