2 * silverfish : A Sample agent for UCC::Progcomp2013
4 * @purpose The main function
10 #include "silverfish.h"
17 * @purpose The main function; starts the agent
18 * @param argc - Number of arguments, unused
19 * @param argv - Argument string array, unused
21 int main(int argc, char ** argv)
23 srand(time(NULL)); // seed random number generator
27 string colour; cin >> colour; // first read the colour of the agent
31 Silver agent(colour); // create an agent using the colour
32 agent.Run(cin, cout); // run the agent (it will read from cin and output to cout)
34 catch (const Exception & e)
40 return 0; // Don't use exit(3), because it causes memory leaks in the C++ stdlib