Fetching contributors…
Cannot retrieve contributors at this time
36 lines (26 sloc) 880 Bytes
#include "Bot.h"
using namespace std;
This program will play a single game of Ants while communicating with
the engine via standard input and output.
The function "makeMoves()" in is where it makes the moves
each turn and is probably the best place to start exploring. You are
allowed to edit any part of any of the files, remove them, or add your
own, provided you continue conforming to the input and output format
outlined on the specifications page at:
int main(int argc, char *argv[])
cout.sync_with_stdio(0); //this line makes your bot faster
//reads the game parameters and sets up
cin >> state;
if (state.rows == 0 || state.cols == 0)
Bot bot;
return 0;