aroberge / reeborg

Enhanced Karel-the-robot clone
http://reeborg.ca/reeborg.html
Other
47 stars 36 forks source link

input #454

Closed Julian1022438899 closed 4 years ago

Julian1022438899 commented 4 years ago

Realizar las entradas del input con la respectiva ejecución, ya que no es recomendable digitar todos los datos ingresados por el usuario y luego realizar la ejecución.

aroberge commented 4 years ago

Disculpe, hablo español solamente un poquito y no entiendo lo que escribe. Hablo inglés y francés.

Julian1022438899 commented 4 years ago

Ok, my apologies, Make the input of the input with the respective execution, since it is not advisable to type all the data entered by the user and then perform the execution.

aroberge commented 4 years ago

I don't understand what you are talking about.

What do you mean by "to type all the data entered by the user?" Who exactly, other than the user, is typing anything in Reeborg's World? Are you sure you are commenting about http://reeborg.ca/reeborg.html ?

On Sun, Sep 22, 2019 at 7:17 PM Julian1022438899 notifications@github.com wrote:

Ok, my apologies, Make the input of the input with the respective execution, since it is not advisable to type all the data entered by the user and then perform the execution.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/aroberge/reeborg/issues/454?email_source=notifications&email_token=AAEZXQVVH5FIEK2HXV3MET3QK7VGBA5CNFSM4IZEXZEKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7JQOYI#issuecomment-533923681, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEZXQUXIJONIJTCM6QXHBLQK7VGBANCNFSM4IZEXZEA .

Julian1022438899 commented 4 years ago

What I mean is that the data that is typed in the command window of the world of Reeborg must be evaluated and executed instantly, the problem is that I can type one data and then others and Reeborg what it does is run after typing All the data that I have requested. thanks

aroberge commented 4 years ago

You can type the entire program in the editor, and then run it using the button [image: image.png]

Or, you can choose a different mode [REPL (py)], entering one command at a time and see the result of the execution of that command. [image: image.png]

On Sun, Sep 22, 2019 at 8:14 PM Julian1022438899 notifications@github.com wrote:

What I mean is that the data that is typed in the command window of the world of Reeborg must be evaluated and executed instantly, the problem is that I can type one data and then others and Reeborg what it does is run after typing All the data that I have requested. thanks

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/aroberge/reeborg/issues/454?email_source=notifications&email_token=AAEZXQU6N6EQDFLWC5G3JBDQK736VA5CNFSM4IZEXZEKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7JRLKQ#issuecomment-533927338, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEZXQWBPIPR4DUW7BZB2BDQK736VANCNFSM4IZEXZEA .

aroberge commented 4 years ago

If you are talking about using Python's "input()" function ... that is not supported. In Python, input() suspends the execution, waiting for the user to type in something. In effect, the program "sleeps" while waiting for the user to type in something.

In this web version, all Python code is translated into Javascript prior to execution. Javascript does not support a "sleep" function - it cannot suspend its execution.

(There is a python-like version called Skulpt which does support input(), but it is not fully compatible with Python 3 which is why I did not use it.)

On Sun, Sep 22, 2019 at 8:33 PM André Roberge andre.roberge@gmail.com wrote:

You can type the entire program in the editor, and then run it using the button [image: image.png]

Or, you can choose a different mode [REPL (py)], entering one command at a time and see the result of the execution of that command. [image: image.png]

On Sun, Sep 22, 2019 at 8:14 PM Julian1022438899 notifications@github.com wrote:

What I mean is that the data that is typed in the command window of the world of Reeborg must be evaluated and executed instantly, the problem is that I can type one data and then others and Reeborg what it does is run after typing All the data that I have requested. thanks

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/aroberge/reeborg/issues/454?email_source=notifications&email_token=AAEZXQU6N6EQDFLWC5G3JBDQK736VA5CNFSM4IZEXZEKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7JRLKQ#issuecomment-533927338, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEZXQWBPIPR4DUW7BZB2BDQK736VANCNFSM4IZEXZEA .

aroberge commented 4 years ago

Closing as lacking information to be able to do any meaningful followup.