add basic core structure and first parts of antGame implementation

This commit is contained in:
2019-12-07 22:05:11 +01:00
parent 66ee33b77f
commit 87f435c65a
19 changed files with 347 additions and 0 deletions
+19
View File
@@ -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);
}
}