Un peu de ménage dans le git

This commit is contained in:
2024-12-02 20:51:28 +01:00
parent 0e6450f8c8
commit 9b2a314262
102 changed files with 49818 additions and 27 deletions

View File

@@ -0,0 +1,27 @@
package fr.monkhanny.dorfromantik.game;
import java.util.Random;
/**
* Représente un objet de jeu qui gère les fonctionnalités générales.
*/
public class Game {
private Random random;
// Nouveau constructeur qui accepte un seed
public Game(long seed) {
this.random = new Random(seed);
}
// Constructeur par défaut pour conserver la flexibilité
public Game() {
this.random = new Random();
}
public int getRandomInt(int max) {
return random.nextInt(max);
}
}