aroberge / reeborg

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

Saving robot with number of object = infinity may be wrong #422

Closed aroberge closed 6 years ago

aroberge commented 6 years ago

Looking at a json file with a robot carrying an infinite number of token, it is recorded as null. This may be indicative of a bug. It could be a problem with the way that translation is handled.

aroberge commented 6 years ago

This is actually a json/javascript bug https://stackoverflow.com/questions/16644597/json-stringify-converting-infinity-to-null

I will need to implement dealing with infinite number of objects differently.