2 * agent++ : A Sample agent for UCC::Progcomp2013
4 * @purpose Declaration of Agent class
12 #include "qchess.h" // Declarations of Board, Piece and Square classes; see also qchess.cpp
16 * @purpose Class that represents an agent which will play qchess
21 Agent(const std::string & colour); // initialise with colour
22 virtual ~Agent(); // destructor
24 void Run(std::istream & in, std::ostream & out); // agent run loop, specify input and output streams
26 virtual Square & Select(); // select a square (default: random square containing one of my pieces)
27 virtual Square & Move(); // select a move (default: random valid move for selected piece)
31 const Piece::Colour colour; // colour of the agent; do not change it
32 Board board; // board, see qchess.h
33 Piece * selected; // last piece chosen by Agent::Select, see qchess.h