Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

TO BE WRITTEN IN *****FORTRAN*****, THANKS For this assignment, you will be creating an interactive Tic-Tac-Toe game for two players. There are 2 parts to

TO BE WRITTEN IN *****FORTRAN*****, THANKS

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 problem and you will then need to create a structure, write algorithms and a flow chart to solve it. In the second part, youll be turning this into a Fortran program. So lets get started! Part 1: Your Tic-Tac-Toe game! You love playing tic-tac-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 Xs and Os where the players alternate taking turns placing their tokens (i.e., X or O, depending on which one they are). It will include: 1. Standard 3 x 3 playing board (required: use 2D arrays) 2. 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 Xs and Os 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 1 st user or 2 nd User (and let the users know their tokens X or O) 3. The 1 st and 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: 1 | 2 | 3 __|___|__ 4 | 5 | 6 __|___|__ 7 | 8 | 9 | |

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_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions

Question

=+2 Why are so many countries bothered by their brain drains?

Answered: 1 week ago