// This function determines if a value is within a range. // PRE: min <= max and value is defined // POST: returns true if min <= value <= max, and false // otherwise bool ValueInRange(int value, int min, int max); // This function determines if a row of tic-tac-toe squares is a // winning row // PRE:s1, s2, and s3 are defined // POST: returns true if a row (horizontal, vertical, or // diagonal) on a tic-tac-toe board containing [s1, s2, s3], is a // winning row, and false otherwise. bool RowIsWinner(char s1, char s2, char s3); // This function returns the oppenent of the player. // PRE: player == X or playe = O // POST: returns the oppenent of player. char TTTopponent(char player); // This function gets a valid intger input from the user. // PRE: User has been prompted to enter an integer representing // the space they want to play in and min <= max. // POST: an integer value, i, entered by user is returned, where // min <= i <= max. int GetIntInput(int min, int max); // This function displays one of the horizontal line in a TTT // board. // PRE: the cout output marker is at the start of a new line. // POST: a horizontal line has been drawn on the cout stream. void DisplayHorizontalLine(); // This function displays one row od a TTT board with sqaures s1, //s2 and s3 // PRE: the cout output marker is at the start of a new line. // POST: A row of the TTT board is drawn on the cout stream. void DisplayOneRow(char s1, char s2, char s3); Rules The Rules of Tic-Tac-Toe *The game board is a three by three square grid of symbols, which is initially empty. The empty game board in your program should look something like the one shown just below: (i couldnt align the | symbols right but they are aligned right above the + symbol). | | ---+---+--- | | ---+---+--- | | Notice that it contains three rows (as in DisplayOneRow) and two horizontal lines (as in DisplayHorizontalLine). *There are two players, named Player X and Player O. Player O goes first. *a player moves by selecting an empty square on the board. *a symbol representing that player (i.e., an X or an O) is placed on the selected sqaure, and it becomes the other player's turn. *The game is won if one player gets three symbols in a row (horizontally, vertically, or diagonally). *The game is a draw if all the squares become occupied, yet no player has won.
well this is the rubric of wat she gave us i hope u can help me do this program TY!