aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/fr
diff options
context:
space:
mode:
authorAdam NAILI2018-01-14 15:28:59 +0100
committerAdam NAILI2018-01-14 15:28:59 +0100
commit41b33fb7ffd4c901557f25c972df2e9175e75d4f (patch)
treee06fe7f6bb3cd27ded028dcc88456de9164b1a60 /src/main/java/fr
parent6df5d12dc052e4417ed17ff69e2692e1e8bb1b7f (diff)
downloadwallj-41b33fb7ffd4c901557f25c972df2e9175e75d4f.tar.gz
Fixing code
Diffstat (limited to 'src/main/java/fr')
-rw-r--r--src/main/java/fr/umlv/java/wallj/controller/GameController.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/fr/umlv/java/wallj/controller/GameController.java b/src/main/java/fr/umlv/java/wallj/controller/GameController.java
index e6fceb9..456793a 100644
--- a/src/main/java/fr/umlv/java/wallj/controller/GameController.java
+++ b/src/main/java/fr/umlv/java/wallj/controller/GameController.java
@@ -14,7 +14,7 @@ public class GameController implements Controller {
14 @Override 14 @Override
15 public List<Event> update(Context context) { 15 public List<Event> update(Context context) {
16 boolean isConfirmEvent = context.getEvents().stream().anyMatch(event -> event instanceof ConfirmEvent); 16 boolean isConfirmEvent = context.getEvents().stream().anyMatch(event -> event instanceof ConfirmEvent);
17 boolean isGameOver = context.getEvents().stream().allMatch(event -> event instanceof) 17 boolean isGameOver = context.getEvents().stream().allMatch(event -> event instanceof GameOverEvent);
18 Game currentGame = context.getGame(); 18 Game currentGame = context.getGame();
19 LinkedList<Event> events = new LinkedList<>(); 19 LinkedList<Event> events = new LinkedList<>();
20 if (isConfirmEvent) { 20 if (isConfirmEvent) {