#include #include #include #include #include #include "higgs.h" using namespace std; Move importMove() { Move move; cin >> move.ndir >> move.p >> move.dir; return move; } void exportMove( Move move ) { cout << move.ndir << " " << move.p << " " << move.dir << endl; } int main() { Board board; Move move; string input; srand( time( NULL ) ); cin >> input; if( input == "go" ) { //board.print(); move.ndir = -1; move.p = S-1; move.dir = 4; board.doMove( move ); exportMove( move ); } while( 1 ) { //board.print(); board.doMove( importMove() ); //board.print(); vector move_list = board.generateMoves(); move = move_list[ rand() % move_list.size() ]; board.doMove( move ); exportMove( move ); } }