Question: Please answer this in simple C++ coding. Lab 5 Objective Create a win( ) Function xx win( ) 1. Call the Function after each choice
Please answer this in simple C++ coding.
Lab 5 Objective Create a win( ) Function xx win( )
1. Call the Function after each choice and determine if there is a win
2. Identify which row, column or diagonal has won the game
3. End the game and the option to choose squares
win( ) Function should determine who has won and how (which squares)
Continue the game until All 9 squares have been chosen (indicate a Tie) or a win occurred (stop short).
Choices should be protected against data out of range or data mismatch
Ask the user if theyd like to play again y/n?
Track the number of wins, losses and ties Use Functions to complete each block of tasks.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
