#include <cboard.h>
Inheritance diagram for CBoard:
Public Member Functions | |
CBoard (char icon, char otherIcon) | |
Constructor. | |
bool | makeMove () |
Make an automated move. | |
Classes | |
class | Spot |
Represents a spot on a CBoard. More... |
This class provides the means to add a computer-controlled player to the game.
|
Constructor.
|
|
Make an automated move. This method allows for the automation of a computer-player's move based on logical rules. The method will first look for a offensive move and place its icon accordingly. Failing the location of an offensive move, the computer will search for a defensive move eg, a block. Lastly, if there are no other moves, the computer will make a random move on the board, provided that it is an allowable move.
|