Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For this assignment, you will be creating an interactive Tic-Tac-Toe game for two players. There are 2 parts to this assignment. In the first part,

image text in transcribed

For this assignment, you will be creating an interactive Tic-Tac-Toe game for two players. There are 2 parts to this assignment. In the first part, you are going to be given a probiem and you will then need to create a structure, write algorithms and a flow chart to solve it. In the second part, you'll be turning this into a Fortran program. So let's get started! Part 1: Your Tic-Tac-Toe game! You love playing tic-lac-toe, So, you decide to create your own that you can play against your friends. This will be a standard tic-tac-toe game with X's and O's where the players alternate taking turns placing their tokens (ie., X or O, depending on which one they are). will include: 1. 2. Standard 3 x 3 playing board (required: use 2D arrays) A winning game is either: 3 across .3 up and down 3 diagonally 3. Tie games are possible if a winning game is not achieved. 4. The game board with associated placement of the played X's and O's must be displayed after each turn. Program Flow: 1. First, ask the user for their name and welcome them. 2. Then randomly decide who will go first, the 1st user or 2nd User (and let the users know their tokens X or O) 3. The 1and 2nd users will alternate turns placing their tokens. .The user should be asked where they want to place their token .The computer should be asked to randomly choose an empty spot 4. The game ends when either a winning game occurs (see above) or all the spots are filled. 5. At the end of the game, ask the user if they would like to play again. Input Options There are numerous options for getting input from users to indicate where they want their token placed. Option 1: Ask them to give you the column and row number of their desired spot. Option 2: Pre-fill each of the spots with a number, allowing users to select one number to indicate their desired spot. For example 11213 41516 71819

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

Professional IPhone And IPad Database Application Programming

Authors: Patrick Alessi

1st Edition

0470636173, 978-0470636176

More Books

Students also viewed these Databases questions

Question

What are some career development methods?

Answered: 1 week ago

Question

LO1 Summarize the organizations strategic planning process.

Answered: 1 week ago