Find a list of predefined color names on the api page

Challenge exercise Define a completely new type of animal for the simulation, as a subclass of Animal. You will need to decide what sort of impact its existence will have on the existing animal types. For instance, your animal might compete with foxes as a predator on the rabbit population, or your animal might prey on foxes but not on rabbits. You will probably find that you need to experiment quite a lot with the configuration settings you use for it. You will need to modify the populate method to have some of your animals created at the start of a simulation. You should also define a new color for your new animal class. You can find a list of predefined color names on the API page documenting the Color class in the java.awt package.

Leave a Reply

Your email address will not be published. Required fields are marked *