You are required to submit a script file tictactoe. m and supporting functions (modular
...
![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 26.11.2019 22:31 dacey4164
You are required to submit a script file tictactoe. m and supporting functions (modular
design carries 10 points) to get credit for this assignment
when we run tictactoe. m script file, it should start with a welcoming message and show the dashboard of player/computer wins, draws and asks the player to flip a coin
if you enter an invalid input (anything other than h or t), it should prompt the player again!
once a valid character is entered, the game should start. you need to write code to simulate coin toss and decide whether the player or computer gets to start the game
if computer wins the toss, it plays first. you need to write code to let the computer randomly pick a vacant box on the board. computer uses ‘o’ symbol on the board
if you win the toss, you get to play first. you need to write code to get input for row and column number. player uses ‘x’ symbol on the board
so far, so good! here is where it gets tricky. you should not accept any invalid value for row and column numbers (the board is a 3 x 3 matrix). also, if a box is taken, you have to prompt the player again to enter a vacant box row and column
snapshots on next page!
input validation is a key task and you should take care of all these corner cases.
here are the snapshots of a successful game play where player won
here are the snapshots of a successful game play where the game is draw
if you observe, the dashboard at the beginning of the game keeps track of player wins, computer wins and number of draws in current session
![ansver](/tpl/images/cats/User.png)
Answers: 2
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 15:10
Consider a direct-mapped cache with 216 words in main memory. the cache has 16 blocks of 8 words each. it is a word-addressable computer (rather than a byte-addressable computer which we normally discuss). (a) how many blocks of main memory are there? (b) what is the format of a memory address as seen by the cache, that is, what are the sizes of the tag, cache block, and block offset fields (if they apply)? (c) to which cache block will the memory reference db6316 map?
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 20:00
When you mouse over and click to add a search term this(these) boolean operator(s) is(are) not implied. (select all that apply)?
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 21:10
Dameas communication challenge is due to which factor
Answers: 2
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 02:30
How to apply the fly in effect to objects on a slide
Answers: 1
You know the right answer?
Questions
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 26.03.2020 00:29
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 26.03.2020 00:29
![question](/tpl/images/cats/himiya.png)
![question](/tpl/images/cats/geografiya.png)
Geography, 26.03.2020 00:29
![question](/tpl/images/cats/himiya.png)
![question](/tpl/images/cats/himiya.png)
Chemistry, 26.03.2020 00:29
![question](/tpl/images/cats/mat.png)
Mathematics, 26.03.2020 00:29
![question](/tpl/images/cats/ekonomika.png)
![question](/tpl/images/cats/obshestvoznanie.png)
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 26.03.2020 00:30
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 26.03.2020 00:30
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/istoriya.png)
History, 26.03.2020 00:30
![question](/tpl/images/cats/istoriya.png)
History, 26.03.2020 00:30