int main() { // This code is not a complete test code (won't even compile) and it may be syntactically inconsistent with your class definitions. // So modify before use as appropriate. But the idea of testing should be clear. You are free to shuffle around the order of operations // to devise more test cases. Board B(1000000); // specifies that the game board size is 1000000 x 1000000 B.Insert(1,3,2); // assumed syntax: Insert(ID, x, y) B.Insert(2,4,3); B.Insert(3,4,6); B.Insert(4,5,7); B.Insert(5,6,3); B.Insert(6,8,2); B.Insert(7,9,3); B.Insert(8,9,8); B.MoveTo(4,9,3); //assumed syntax: MoveTo(ID,x,y) // removes 7 in the process B.PrintByID(); B.MoveTo(4,9,8); // removes 8 B.PrintByID(); B.MoveTo(4,6,3); // should fail B.PrintByID(); B.MoveTo(2,3,3); B.PrintByID(); B.MoveTo(4,3,2); // removes 1 B.PrintByID(); B.MoveTo(4,8,2); // removes 6 B.PrintByID(); B.MoveTo(5,3,3); // removes 2 B.PrintByID(); B.MoveTo(4,4,6); // removes 3 B.PrintByID(); B.MoveTo(5,4,3); B.PrintByID(); B.MoveTo(4,4,3); // removes 5 B.PrintByID(); // the code should print only one player at this stage which is player 4 @ (4,3) }