subject
Engineering, 03.01.2020 06:31 katelynn73

7.10: tic tac toe (sort of) write a program that will allow two users to play tic-tac-toe. the program should ask for moves alternately from player x and player o. the program displays the game positions as follows: 123 456 789 the players enter their moves by entering the position number (a single digit, 1-9) they wish to mark. after each move, the program re-displays the changed board. a sample board configuration is as follows: xxo 456 o89 sample run #1: ./etest interactive session 1 2 3 4 5 6 7 8 9 enter move: 1 x 2 3 4 5 6 7 8 9 enter move: 2 x o 3 4 5 6 7 8 9 enter move: 3 x o x 4 5 6 7 8 9 enter move: 4 x o x o 5 6 7 8 9 enter move: 5 x o x o x 6 7 8 9 enter move: 6 x o x o x o 7 8 9 enter move: 7 x o x o x o x 8 9 enter move: 8 x o x o x o x o 9 enter move: 9 x o x o x o x o x game over!

ansver
Answers: 1

Another question on Engineering

question
Engineering, 04.07.2019 16:10
An electrical motor raises a 50kg load at a construct velencity .calculate the power of the motor, if it takes 40sec to raise the load through a height of 24m(take g =9.8n/g)
Answers: 2
question
Engineering, 04.07.2019 18:10
Aloaded platform of total mass 500 kg is supported by a dashpot and by a set of springs of effective stiffness 72 kn/m. it is observed that when the platform is depressed through a distance x = 12.5 cm below its equilibrium position and then released without any initial velocity; it reaches its equilibrium position in the shortest possible time without overshoot. find the position and velocity of the loaded platform 0.10 sec. after its release. if a further load of 400 kg is added to the platform, find, i) the frequency of damped vibrations, and i) the amplitude of vibration after 2 complete oscillations, given that the initial amplitude is 15 cm.
Answers: 1
question
Engineering, 04.07.2019 18:10
Manometers are good examples of measuring instruments, nowadays they are not as common as before. a)-capacitive probe gauges b)-gravitational gauges deformation ) gauges d)-digital gauges
Answers: 1
question
Engineering, 04.07.2019 18:10
Machinery that is a key part of the process and without which the plant or process cannot function is classifed as: (clo4) a)-critical machinery b)-essential machinery c)-general purpose machinery d)-none of the specified options.
Answers: 1
You know the right answer?
7.10: tic tac toe (sort of) write a program that will allow two users to play tic-tac-toe. the prog...
Questions
question
Mathematics, 30.10.2020 02:20
question
Social Studies, 30.10.2020 02:20
question
Mathematics, 30.10.2020 02:20
question
English, 30.10.2020 02:20
question
Mathematics, 30.10.2020 02:20
question
Mathematics, 30.10.2020 02:20
Questions on the website: 13722361