+ 1
Why does entering wrong value in code is not working
14 Respostas
+ 3
If u will Enter other characters like a,b,c,D etc then loop will run infinite times . but if u enter x,X or o ,Othen working properly
+ 2
Thanks
+ 1
But still its priting the output as:
the positions of TIC TAC TOE
for players reference:
____________________
|pos[1]|pos[2]|pos[3]|
|______|______|______|
|pos[4]|pos[5]|pos[6]|
|______|______|______|
|pos[7]|pos[8]|pos[9]|
|______|______|______|
player1 enter X or O:e
invalid choice
player1 enter X or O:invalid choice
player1 enter X or O:
+ 1
Why is invalid choice printed 2 times
+ 1
âšïžâšïž still not working
+ 1
If i am giving any alphabet other than X,x,O,o then
+ 1
i have given the output above
its still aski g for input but is printing invalid 2 times
+ 1
Run my program again and enter any chars a,b,c,D,E i updated
+ 1
But i dont want to terminate it i want to ask the player till it enters x or o
+ 1
Then you have to make function and where i used break call your function here then it will ask again for inputs . When u make any big program divide your code in functions.
+ 1
Ok
+ 1
Because it isn't understandable by the computer . Like when you don't know something you say it is wrong but for a computer which has been programmed to know almost everything it will say it is wrong.
0
What you input u giving