How can i use an input again? I wrote a tictactoe programm, where i need the imput from the first player after he had played. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can i use an input again? I wrote a tictactoe programm, where i need the imput from the first player after he had played.

i need the input to rebuild the map... please help me!!!

22nd Jan 2017, 8:36 PM
Marv
6 Answers
+ 7
Impossible in Code Playground… ~_~
22nd Jan 2017, 9:03 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 2
have the program play itself?
22nd Jan 2017, 9:23 PM
jay
jay - avatar
0
i meen on python 2 at the raspberry
22nd Jan 2017, 9:04 PM
Marv
0
the programm is made for two player who playing against each other, and i need the last input to rebuild the map, so that there isn't only one 'x' for example on the map
22nd Jan 2017, 9:30 PM
Marv
0
You have to create a infinite loop controlled by the input, and create a variable to control the turns.
22nd Jan 2017, 10:04 PM
Pavio Muniz
Pavio Muniz - avatar
0
player=input("where do you want to play?") or player=int(input("where do you want to play?")) if you want the user to input a number.. I don't recommend doing this on the code playground though because the input system is really bad
25th Jan 2017, 6:47 PM
ramzi
ramzi - avatar