Question: I need help with matlab. I need to create a matlab code that will run the game tic tac toe. The Pseudocode: 1.We start the

I need help with matlab. I need to create a matlab code that will run the game tic tac toe.

The Pseudocode:

1.We start the game on a fun note, with a happy greeting to the players telling them who wrote the program.

2.Use a block of text to explain what the rules are to the players.

3.Place a pause in your program so that the user can read before moving on.

4.Start with an empty board to show to the user using a function called boardplot

5.Ask Player 1 for their choice on the board

6.Use boardplot to plot Player 1s marker on the board.

7.Use a checkwin function to check if Player 1 has won.

8.Ask Player 2 for their choice on the board

9.Use boardplot to plot Player 2s marker on the board.

10.Use a checkwin function to check if Player 2 has won.

11.Repeat steps 6 11 until the board is full or someone has won.

12.At the end of the game, display who won (if anyone did)

Don't use gui and make sure the game is smooth to play and fun. Thanks.

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!