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

Comments for Conway's soldiers - Evolved

Return to Conway's soldiers - Evolved

bournebourne

2014/1/31

java.lang.NullPointerException at Worldy.act(Worldy.java:102)
Game/maniacGame/maniac

2014/1/31

Will fix that tomorrow, thanks.
A new version of this scenario was uploaded on Sat Feb 01 11:27:40 UTC 2014 fixed a bug
JetLennitJetLennit

2014/2/1

It is still not running
Game/maniacGame/maniac

2014/2/1

The game has no AI yet, you have to play against yourself or find someone at home to play with.
danpostdanpost

2014/2/1

You should always test your upload on the site to make sure it is doing what it should there. As soon as you click 'Run', the 'Pause' button flashes and the scenario stops and the 'Run' button reappears. There is an error being thrown that is preventing the scenario from running.
danpostdanpost

2014/2/1

The problem is that the MouseInfo object can be 'null' when returned by using 'getMouseInfo', You need one more additional check in the final 'if' condition and it needs to be placed first: [code]if (mouse != null && /** what you already had */)[/code]
bournebourne

2014/2/1

I think I avoid needing to check if the MouseInfo object is null, by only trying to invoke something on it within a block of code that has one of the mouse move/press/click/drag events return true.
A new version of this scenario was uploaded on Sat Feb 01 19:44:02 UTC 2014 fixed a bug
Game/maniacGame/maniac

2014/2/1

I did check my scenario before putting it on the site, although when I tested the game I never got an error
A new version of this scenario was uploaded on Sat Feb 01 20:01:24 UTC 2014 changed the startup pattern
danpostdanpost

2014/2/1

Point two in your 'How to play' should be: 'You cannot jump OVER an empty square.'
A new version of this scenario was uploaded on 2021-05-07 08:15:43 UTC Updated for latest version of Greenfoot