Closed Sh0lf closed 1 year ago
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)
Done, Paul tu peux vérifier et tu merge si c'est good !
Closes #30