#include #include "ai_man.h" using namespace std; void main() { ai_entity a; int row, col; cout << "Input your row value-> "; cin >> row; cout << "input your col value-> "; cin >> col; bool caughtrow = false; bool caughtcol = false; bool caught = false; a.showposition(row, col, caught); while(caught == false) { caughtrow = a.updaterow(row); caughtcol = a.updatecol(col) ; if(caughtrow == true && caughtcol == true) caught = true; a.showposition(row, col, caught); } }