Main Page   Alphabetical List   Data Structures   File List   Globals  

move Struct Reference

#include <white_interface.h>


Detailed Description

The move composite is used to represent a move that has been made. It is what is being sent by the Input module
to the core section. It contains adequate information for the core to know who player made the move and from which
piece he moved as well as its destination.

Fields of the move composite:

The move command is also being used by the poin_entry_Run() function in white.c to represent some other functions apart from the normal move function.
For example, by giving the player field the evalue of -1 we represent that the result of an attack was a draw and that
both pieces represented by x1,y1 and x2,y2 should be cleared. This exploits the fact that the player field is always
going to be 0 or 1 when representing a legal move.


The documentation for this struct was generated from the following file:
Generated on Sat Mar 16 13:12:17 2002 for SLIP 2002 - Stratego2Go by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002