board::docommand(char)
#include "user.h"
#include "board.h"
int main(void)
{
User player;//1.create a User object called player
Board gameBoard;//2.create a Board object called gameBoard
char theCommand; //char variable to store the player's current command
do
{
theCommand=player.getCommand();//3.Use the player object's get Command function to get a command and assign it to variable theCommand
//4.check if theCommand is not the quit command Q
// Now it's a string!
if(theCommand !='Q')
//if theCommand is not to quit, then pass it to the gameBoard to process
gameBoard.doCommand(theCommand);
} while(theCommand != 'Q'); //quits when the player presses 'Q'
return 0;
};