#ifndef GAME_H
#define GAME_H
#include <fstream>
#include "string.h"
// The "cookie" is represented as an array of int.
// Each element describes a row of the cookie.
// -- If cookie[i] == j, that means that there are
// j columns left in row i of the cookie
constint MAXROWS = 10;
// Number of rows currently remaining in the cookie
int numberOfRows;
// Number of columns currently remaining in the cookie
int numberOfColumns;
// The cookie. If cookie[i] == j, then the cookie currently
// has crumbs filling the j columns at row i
int cookie[MAXROWS];
int initialNumberOfRows;
string humanPlayerName;
int nGamesWonByComputerPlayer;
int nGamesWonByHumanPlayer;
// Check a proposed move to see if it is legal.
// A legal move must bite at least one remaining crumb.
bool biteIsLegal (int column, int row);
void displayCookie(std::ostream& output);
bool gameEnded();
bool isADangerousMove (int column, int row);
void printRules();
void printScore();
void startAGame();
void takeABite (int column, int row);
void playAGame();
#endif