add basic core structure and first parts of antGame implementation
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package core;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class RNG {
|
||||
private static final Random rng;
|
||||
private static final int SEED = 123;
|
||||
static {
|
||||
rng = new Random(SEED);
|
||||
}
|
||||
|
||||
public static Random getRandom() {
|
||||
return rng;
|
||||
}
|
||||
|
||||
public static void reseed(){
|
||||
rng.setSeed(SEED);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user