Homework/HW03/canfield.cc
void canfield()
{
    char answer;
    srand(time(NULL));
    newGame();
    printGame();
    while (!quit) 
    {
        printMenu();
        cin >> answer;
        performAction(answer);
    }
}
// The main loop of the game.
The main loop of the game.
The main loop of the game .
void canfield()
{
    char answer;
    srand(time(NULL));
    newGame();
    printGame();
    while (!quit) 
    {
        printMenu();
        cin >> answer;
        performAction(answer);
    }
}
void canfield ( ) { char answer ; srand ( time ( NULL ) ) ; newGame ( ) ; printGame ( ) ; while ( ! quit ) { printMenu ( ) ; cin >> answer ; performAction ( answer ) ; } }
The main loop of the game.
The main loop of the game .