Compare commits
2 Commits
65fc197afd
...
94c756095e
Author | SHA1 | Date |
---|---|---|
dustineversmann | 94c756095e | |
dustineversmann | 1c016874ec |
|
@ -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
|
||||
}
|
Loading…
Reference in New Issue