I'm trying to make a checkerboard in Greenfoot right now. It has to be 8*8 tiles and the world is 600*600*1. However, the checkerboard has to be made using a for loop. I have
public void checkerboard()
{
GreenfootImage image = new GreenfootImage(50, 50);
image.fillRect(0,0,50,50);
}
for a start just to test if I can make a rectangle, but when I do void checkerboard in the world, nothing happens. Can you help me?

