This site requires JavaScript, please enable it in your browser!
Greenfoot back

Comments for ShanCalc

Return to ShanCalc

A new version of this scenario was uploaded on Sun Nov 30 20:00:37 UTC 2008
A new version of this scenario was uploaded on Mon Dec 01 14:24:48 UTC 2008
RHE_THSRHE_THS

2008/12/1

It's a good idea, but might want to change it so it doesn't stop simulation every time.
jgreen7jgreen7

2008/12/1

Thanks for the feedback. The simulation works fine in greenfoot without the exceptions that are causing it to stop. I was able to fix the bug so that it will work correctly in a jar but the problem is still happening here in the gallery. :( I'll do some more research to see if I can figure out what the issue is.
A new version of this scenario was uploaded on Mon Dec 01 16:26:03 UTC 2008
A new version of this scenario was uploaded on Mon Dec 01 16:43:58 UTC 2008
A new version of this scenario was uploaded on Mon Dec 01 17:45:37 UTC 2008
A new version of this scenario was uploaded on Mon Dec 01 17:50:57 UTC 2008
A new version of this scenario was uploaded on Mon Dec 01 17:52:38 UTC 2008
A new version of this scenario was uploaded on Mon Dec 01 17:52:58 UTC 2008
jgreen7jgreen7

2008/12/1

This is now a working version for this. Apparently setImage is picky about being called in the gallery. I had to create a GreenfootImage of each of the PNG files and call setImage with that rather than a String of the filename.
I did 6+6*6-6-6*6+6 and it gave me -6, which is not correct. Maybe an order of operations problem?
A new version of this scenario was uploaded on Tue Dec 02 14:40:31 UTC 2008
jgreen7jgreen7

2008/12/2

Fixed the bug causing calculator to give wrong result for 6+6*6-6-6*6+6. Was actually a very simple fix that I had overlooked during testing. Thanks for looking.