This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void seedEarth(int coord1, int coord2, int probStat, int probDec) { | |
if(coord1 < gridSize && coord2 < gridSize && coord1 >= 0 && coord2 >= 0) { | |
if(grid[coord1][coord2]!= 1){ | |
grid[coord1][coord2] = 1; | |
if(randomGen.nextInt(100) <= 100 - probStat) { | |
seedEarth(coord1 -1,coord2, probStat + probDec, probDec); | |
} | |
if(randomGen.nextInt(100) <= 100 - probStat) { | |
seedEarth(coord1, coord2-1, probStat + probDec, probDec); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* LineInfo class | |
* | |
* @author sinister | |
* | |
*/ | |
public class LineInfo { | |
private String myLine; |