-
Notifications
You must be signed in to change notification settings - Fork 2
GameBoard
GameBoard is a class found in GameBoard.java (Package). It is a 2D array
To create a new GameBoard You can do the call: GameBoard g = new GameBoard(row,col); Row and Col are integers, should be equal. Map Generation does not always work with a non-square board. This call will create a GameBoard guaranteed to not be a water world (we adjust the heights of all tiles if the average falls below a certain threshold).
The map created from calling the GameBoard Constructor will create a map that will be acceptable for play, but it will not contain any resources. To add resources to the map use one of the resource distribution function such as resourceDistNatural. Do so as such: g.resourceDistNatural()
this distrubtion does take a little bit of time, hopefully it will be refined this sprint.