KVA working
This commit is contained in:
@@ -56,12 +56,13 @@ public class PlayerHandler {
|
||||
|
||||
public void localNextTurn(int n) {
|
||||
for(int i = 0; i < n; i++){
|
||||
players.addLast(players.getFirst());
|
||||
players.addLast(players.removeFirst());
|
||||
// players.removeFirst();
|
||||
}
|
||||
}
|
||||
|
||||
public void finishPlayer(Player p) {
|
||||
ranking.addLast(players.removeFirst());
|
||||
ranking.addLast(players.removeLast());
|
||||
}
|
||||
|
||||
public Player getCurrentPlayer() {
|
||||
@@ -97,6 +98,6 @@ public class PlayerHandler {
|
||||
}
|
||||
|
||||
public void finishGame() {
|
||||
finishPlayer(players.getFirst());
|
||||
game.getActionHandler().finishGame();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user