From 41b33fb7ffd4c901557f25c972df2e9175e75d4f Mon Sep 17 00:00:00 2001 From: Adam NAILI Date: Sun, 14 Jan 2018 15:28:59 +0100 Subject: Fixing code --- src/main/java/fr/umlv/java/wallj/controller/GameController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/fr') 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 { @Override public List update(Context context) { boolean isConfirmEvent = context.getEvents().stream().anyMatch(event -> event instanceof ConfirmEvent); - boolean isGameOver = context.getEvents().stream().allMatch(event -> event instanceof) + boolean isGameOver = context.getEvents().stream().allMatch(event -> event instanceof GameOverEvent); Game currentGame = context.getGame(); LinkedList events = new LinkedList<>(); if (isConfirmEvent) { -- cgit v1.2.3