Question: making use of a two dimensional array, write the code that permits two players to play a game of tic- tac - toe (also known

making use of a two dimensional array, write the code that permits two players to play a game of tic- tac - toe (also known as noughts and crosses). use 0 to represent an empty square, 1 to represent a cross, and two to represent a nought.

this requires you to implement several algorithms:

1. asking for the users input an placing their symbol. 2. looping between two different players, alternating the symbol. 3. checking for a win

you should include pseudocode to handle all of these. you should desk check your solutions to make sure they work, but formal testing of these is not required during this activity

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!