0

Code that runs on computer won't run in playground. Any help?

I wrote tic tac toe (with eclipse as an editor). It runs perfectly outside SoloLearn's playground. But in playground I have two major problems: 1. user input: i need the user to choose between different options, but playground only says it requires input, instead of asking 'do you want to play against the computer or another player' as my program specifies 2. after the first input i get an EOFerror (end of file when reading a line). This doesn't make any sense at all... any help? code is on my profile. thx

31st Dec 2016, 2:09 PM
karolin
7 odpowiedzi
+ 5
This may be because of these things : - Sololearn does not have that library - Sololearn does not contain that in their library - You required 2 or more input from users - You had a timer/delay - When you copied and paste in, you accidentally copied at wrong place and had 2 mains, etc.
31st Dec 2016, 2:57 PM
Wen Qin
Wen Qin - avatar
+ 3
if your game was in web-dev, it will accept more than 1 input
31st Dec 2016, 3:02 PM
Wen Qin
Wen Qin - avatar
+ 1
thank you for your answer 'ruka'. perhaps someone can copy the code to their regular python 3 editor and try to run it? if it works then this is a problem with the playground. if it doesn't then eclipse seems to 'mask' an error for me
31st Dec 2016, 2:27 PM
karolin
+ 1
thanks luka for running it outside playground! Now I know it really works. Hope your having fun. Try to beat the computer in mode 'hard' :-P and sorry for misspelling your name. wasn't sure with the romaji
31st Dec 2016, 3:09 PM
karolin
0
@wen qin: I hadn't thought that there would be so many limitations in playground. but, yes, I import the module random (standard lib) and I do need multiple user inputs. after all, without you can't play tic tac toe. looks like nobody will be able to play it without copying the code to another editor :-(
31st Dec 2016, 3:01 PM
karolin