Hi, does anyone have code or a link to codes for a welcome message,counter and/or help for this code for random ship movement to hit ship- public class Submarine extends Actor
{
/**
* Act - do whatever the Submarine wants to do. This method is called whenever
* the 'Act' or 'Run' button gets pressed in the environment.
*/
public void movearound()
{
move(4);
if (Greenfoot.getRandomNumber(100) < 10)
{
turn(Greenfoot.getRandomNumber(90) - 45);
}
if (getX() <= 5 || getX() >= getWorld().getWidth -5)
{
turn(180);
}
}
}

