cmcollander / CompSciGUI

Dr Becker's Comp Sci Gui Assignment
0 stars 0 forks source link

Ships and Monsters final position in PP need to be constrained #50

Closed cmcollander closed 9 years ago

cmcollander commented 9 years ago

Since Ship/Monster movements are partially randomized now, it's possible for an ArrayIndexOutOfBoundsException to occur. We need to constrain the final location to the boundaries of the map. Feel free to copy the Constrain code from Main.java