Computer Science Canada

Random Terrain Generation

Author:  RahulPatel2323 [ Mon Jan 13, 2014 2:59 pm ]
Post subject:  Random Terrain Generation

So I'm trying to randomly generate terrain for my final assignment in my first year of Java and to make things simpler I put my Generation Code in a method but I keep getting the error, " The variable (insert variable name) amy be accessed her before definitely assigned a value", the problem is if I enter a value the terrain generated is flat, any suggestions?

Thanks in advance,
Rahul

Author:  Zren [ Tue Jan 14, 2014 8:42 pm ]
Post subject:  RE:Random Terrain Generation

Which line is causing the error?


: