Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help with Part 1. and I cannot use arrays or vectors. Thank you. Learning Objectives: The intent of this programing project is to

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

I need help with Part 1.

and I cannot use arrays or vectors. Thank you.

Learning Objectives: The intent of this programing project is to allow you the opportunity to demonstrate your ability to solve problems using procedural C++ programming. This project will focus on using loops, functions, random numbers, and global variables in the implementation of tac toe game Program Description: In this design project, you will implement a tic tac toe game between a user and the computer. You may make the following assumptions The user is always the first player and the computer is the second player The user gets the marker X' and the computer gets the marker O'. Optional credit (extra Option 1 15 points]: Ask the user to flip a coin to determine who (either the user or the computer should play first. Option 215 points]: Ask the user (or the first player to choose their own marker. between "X" and "O Option 3 [10 points]: Create separate h and .cpp files for each function. Program Requirements Part 1: Create a function to draw the tic tac toe board Tic tac toe is a game that two parties play taking turns to mark a space (with X and O) in a 3x3 board. The player wins who succeeds to put three marks on a line (horizonta vertical, or diagonal). In the example above (source: Wikipedia), the first player wins As the first step to implementing the tic tac toe game, you are required to create a function that draws the tic tac toe board. This function will get called repeatedly until either all the nine spaces (or slots) on the board have been played Draw or a player Wins Initially, the nine spaces will have numbers associated with individual slots, as shown in the screen shot below. Then, after each play, a user's or a computer s chosen slots will show either X or O to designate the choice instead of the slot number. You will create a function to draw the board 1) initially with no choices made and 2) after each choice is made either by the player or by the computer

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Databases On The Web Learn To Create Web Pages That Interface With Database Engines

Authors: Robert Papaj, Donald Burleson

11th Edition

1576100995, 978-1576100998

More Books

Students also viewed these Databases questions

Question

=+What is the extent of the use of each type of IE?

Answered: 1 week ago