Browse Source

add addOpponents

main
fdai7920 11 months ago
parent
commit
d736b1bc63
  1. 9
      src/main/java/de/hsfulda/onses/services/PlayerService.java

9
src/main/java/de/hsfulda/onses/services/PlayerService.java

@ -15,4 +15,13 @@ public class PlayerService {
playerList.add(player); playerList.add(player);
} }
// button on gui activates it
public void addOpponents(int amount) {
for (int i=0; i<amount; i++)
{
playerList.add(new Player());
}
}
} }
Loading…
Cancel
Save