diff options
author | Adam NAILI | 2018-01-14 15:28:59 +0100 |
---|---|---|
committer | Adam NAILI | 2018-01-14 15:28:59 +0100 |
commit | 41b33fb7ffd4c901557f25c972df2e9175e75d4f (patch) | |
tree | e06fe7f6bb3cd27ded028dcc88456de9164b1a60 /src/main/java/fr | |
parent | 6df5d12dc052e4417ed17ff69e2692e1e8bb1b7f (diff) | |
download | wallj-41b33fb7ffd4c901557f25c972df2e9175e75d4f.tar.gz |
Fixing code
Diffstat (limited to 'src/main/java/fr')
-rw-r--r-- | src/main/java/fr/umlv/java/wallj/controller/GameController.java | 2 |
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) { |