Compare commits

...

2 Commits

Author SHA1 Message Date
dustineversmann 94c756095e Merge remote-tracking branch 'origin/main' 2024-04-30 11:46:32 +02:00
dustineversmann 1c016874ec feat:
add necessary classes to project
2024-04-30 11:46:23 +02:00
1 changed files with 26 additions and 0 deletions

26
src/GameModel.java 100644
View File

@ -0,0 +1,26 @@
package src;
import java.util.ArrayList;
import java.util.List;
public class GameModel {
private List<Player> players;
private List<Die> dice;
private Scoreboard scoreboard;
public GameModel() {
players = new ArrayList<>();
dice = new ArrayList<>();
scoreboard = new Scoreboard();
// Initialize dice
for (int i = 0; i < 5; i++) {
dice.add(new Die(8)); // Up to 8 faces for Star Wars edition
}
}
public void rollDice() {
dice.forEach(Die::roll);
}
// Add other methods to manipulate the game state
}