Skip to content
This repository was archived by the owner on Dec 21, 2025. It is now read-only.
This repository was archived by the owner on Dec 21, 2025. It is now read-only.

End game doesn't always work. #21

@Ivan-Johnson

Description

@Ivan-Johnson

failure log:
2016-06-07T12:33:17.305-05:00 (FINER) [Game] [tryFlip] :AI 1 flipped the Queen of clubs 2016-06-07T12:33:17.478-05:00 (FINER) [Game] [tryFlip] :AI 2 flipped the 5 of spades 2016-06-07T12:33:17.479-05:00 (FINE) [Game] [tryFlip] :AI 2 is eliminated because they flipped their last card Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: -1 at com.silentsalamander.runner.CardStack.removeTopCard(CardStack.java:105) at com.silentsalamander.runner.Game.tryFlip(Game.java:202) at com.silentsalamander.runner.AI.actionPerformed(AI.java:161) at javax.swing.Timer.fireActionPerformed(Timer.java:313) at javax.swing.Timer$DoPostEvent.run(Timer.java:245) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.awt.EventQueue$3.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:726) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

success log:
2016-06-07T12:33:02.724-05:00 (FINER) [Game] [tryFlip] :AI 2 flipped the 3 of diamonds 2016-06-07T12:33:02.894-05:00 (FINER) [Game] [tryFlip] :AI 1 flipped the 10 of clubs 2016-06-07T12:33:03.076-05:00 (FINER) [Game] [tryFlip] :AI 2 flipped the 2 of spades 2016-06-07T12:33:03.232-05:00 (FINER) [Game] [tryFlip] :AI 1 flipped the 5 of diamonds 2016-06-07T12:33:03.386-05:00 (FINER) [Game] [tryFlip] :AI 2 flipped the 6 of diamonds 2016-06-07T12:33:03.387-05:00 (FINE) [Game] [tryFlip] :AI 2 is eliminated because they flipped their last card

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions