2024-05-02 12:46:36 +02:00
|
|
|
package Facade;
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
|
|
|
import Domain.Player;
|
|
|
|
|
|
|
|
public class Game {
|
|
|
|
|
|
|
|
ArrayList<Player> player = new ArrayList<>();
|
|
|
|
|
|
|
|
|
|
|
|
public int rollDice(){
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2024-05-03 12:22:01 +02:00
|
|
|
public ArrayList<Player> newPlayer(int playerCount, String name){
|
|
|
|
|
|
|
|
for(int i = 0; i < playerCount; i++){
|
|
|
|
Player p1 = new Player(name, null);
|
|
|
|
player.add(p1);
|
|
|
|
}
|
|
|
|
return player;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int showScore(){
|
|
|
|
Player secondPlayer = player.get(1);
|
|
|
|
return secondPlayer.getSheet();
|
2024-05-02 12:46:36 +02:00
|
|
|
}
|
|
|
|
}
|