Code Playground - data input | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

Code Playground - data input

Hi, I made a simple Tic Tac Toe game in Java and I tried to add this code to Code Playround, and problem appeared. When I run program in Code Playground I can put some input data. So move of first player is correctly interpreted. But when my program asks for second move (input stream data) it crushes, as if input stream was closed. Program works correctly on my computer. Is there any way to solve that, or Sololearn Code Playground can take input only when program starts and nothing while it's running?

22nd Jan 2017, 2:09 PM
Adam Emieljaniuk
Adam Emieljaniuk - avatar
3 Réponses
+ 4
Limitation of code playground input: you must to fill ALL the entries your app will require from the user before executing ( distant, not local ), so "real time" interactivity isn't possible ^^
22nd Jan 2017, 2:35 PM
visph
visph - avatar
+ 1
So even if I publish the program, most of people won't run it, because they would have to copy - paste the code to their local machnies...
22nd Jan 2017, 2:39 PM
Adam Emieljaniuk
Adam Emieljaniuk - avatar
+ 1
Unfortunaly yes :(
22nd Jan 2017, 2:39 PM
visph
visph - avatar