pflammarion / Game-SixQuiPrend

2 stars 0 forks source link

30 add ai difficulties easy medium hard #32

Closed Sh0lf closed 1 year ago

Sh0lf commented 1 year ago

Done, Paul tu peux vérifier et tu merge si c'est good !

Closes #30

pflammarion commented 1 year ago
image

Exception in thread "JavaFX Application Thread" java.lang.IndexOutOfBoundsException: Index -1 out of bounds for length 4 at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:100) at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:106) at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:302) at java.base/java.util.Objects.checkIndex(Objects.java:385) at java.base/java.util.ArrayList.get(ArrayList.java:427) at org.isep.sixquiprend/org.isep.sixquiprend.controller.GameController.aiPlayerPlayCardHard(GameController.java:393) at org.isep.sixquiprend/org.isep.sixquiprend.controller.GameController.aiPlayerPlayCardMedium(GameController.java:323) at org.isep.sixquiprend/org.isep.sixquiprend.controller.GameController.aiPlayerPlayCardEasy(GameController.java:218) at org.isep.sixquiprend/org.isep.sixquiprend.controller.GameController.playCard(GameController.java:144) at org.isep.sixquiprend/org.isep.sixquiprend.controller.GameController.lambda$eventListener$5(GameController.java:46) at javafx.base@19/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86) at javafx.base@19/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:234) at javafx.base@19/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191) at javafx.base@19/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59) at javafx.base@19/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)