dimanche 21 janvier 2018

Using the Random Class in an Abstract class

I have to create an abstract class for a computer player and then extend this two classes that hold two strategies (dumb computer and smart computer). The requirement is to use the java.util.Random class to generate random choice of type of computer player.

How would I exactly do this in the Abstract class?




Aucun commentaire:

Enregistrer un commentaire