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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started