aroberge / reeborg

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

Create function to throw error #382

Closed aroberge closed 6 years ago

aroberge commented 6 years ago

In order to have worlds working in both Python and Javascript, it would be convenient to define a function that could throw an error (i.e. raise an exception).

aroberge commented 6 years ago

Note: this would not be useful as it would required to be used in an if statement or similar, which would clearly not be possible to do in a language agnostic way.