Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Tic Tac Toe Game in Pseudocode and Flowchart Please provide an answer using Pseudocode ONLY (please do NOT answer in JAVA or Python - I

Tic Tac Toe Game in Pseudocode and Flowchart

Please provide an answer using Pseudocode ONLY (please do NOT answer in JAVA or Python - I will not be able to use those). Please ALSO create a flowchart using Flowgarithm program.

Tic-Tac-Toe Game Write a program that allows two players to play a game of tic-tac-toe. Use a two- dimensional char array with three rows and three columns as the game board. Each element of the array should be initialized with an asterisk (*). The program should run a loop that

1. Displays the contents of the board array

2. Allows player 1 to select a location on the board for an X. The program should ask the user to enter the row and column number.

3. Allows player 2 to select a location on the board for an O. The program should ask the user to enter the row and column number.

4. Determines whether a player has won, or a tie has occurred. If a player has won, the program should declare that player the winner and end. If a tie has occurred, the program should say so and end.

5. Player 1 wins when there are three Xs in a row on the game board. The Xs can appear in a row, in a column, or diagonally across the board. A tie occurs when all of the locations on the board are full, but there is no winner.

Note: You may declare the winner if you cannot figure out how to have the computer figure it out.

(response only in Pseudocode and Flowgarithm please - do not respond with JAVA or Python) If you have previously responded to my question, please do not respond again as I could not use your responses becuase they were either not in Pseeudocode or did not have a flowchart. Thank you!

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

Spatial Database Systems Design Implementation And Project Management

Authors: Albert K.W. Yeung, G. Brent Hall

1st Edition

1402053932, 978-1402053931

More Books

Students also viewed these Databases questions