From d736b1bc63ad1153d63b5796d0b0d61f200fae33 Mon Sep 17 00:00:00 2001 From: fdai7920 Date: Tue, 30 Jan 2024 15:41:26 +0100 Subject: [PATCH] add addOpponents --- .../java/de/hsfulda/onses/services/PlayerService.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/java/de/hsfulda/onses/services/PlayerService.java b/src/main/java/de/hsfulda/onses/services/PlayerService.java index ee4b864..3cde989 100644 --- a/src/main/java/de/hsfulda/onses/services/PlayerService.java +++ b/src/main/java/de/hsfulda/onses/services/PlayerService.java @@ -15,4 +15,13 @@ public class PlayerService { playerList.add(player); } + + // button on gui activates it + public void addOpponents(int amount) { + for (int i=0; i