Status: Accepted
Owner:
melvinzh...@gmail.com
Labels: Type-Defect Priority-Medium
New issue 350 by
melvinzh...@gmail.com: game crash when playing MCTS
http://code.google.com/p/magarena/issues/detail?id=350
reported by Nightchill @
http://www.slightlymagic.net/forum/viewtopic.php?f=82&t=3735&p=117086#p117077
CRASH REPORT FOR MAGARENA THREAD Thread[Thread-23,1,main]
CREATED ON 2013/05/04 15:04:35
MAGARENA VERSION 1.37, JRE 1.7.0_17, OS Windows 7_6.1 amd64
Turn : 1 Phase : FirstMain Step : ActivePlayer Player : Computer
Score : 1
0] Player : Mike Life : 20 Delayed : Total=0
- Hand : Rootbound Crag
- Hand : Acidic Slime
- Hand : Boggart Ram-Gang
- Hand : Stomping Ground
- Hand : Triumph of Ferocity
- Hand : Colossal Might
1] Player : Computer Life : 20 Delayed : Total=0
- Hand : Copperline Gorge
- Hand : Lightning Bolt
- Hand : Strangleroot Geist
- Hand : Raging Ravine
- Hand : Lightning Bolt
- Hand : Birds of Paradise
- Hand : Goblin Ruinblaster
Stack : 0
1. MagicAddEventAction (EVENT: 0 Mike may$ take a mulligan. ) = 0
2. MagicAddEventAction (EVENT: 1 Computer may$ take a mulligan. ) = 0
3. MagicExecuteFirstEventAction = 0
4. MagicMoveCardAction (Blastoderm,OwnersHand,OwnersLibrary) = 0
5. MagicShuffleIntoLibraryAction = 0
6. MagicRemoveCardAction (Blastoderm) = -452
7. MagicMoveCardAction (Colossal Might,OwnersHand,OwnersLibrary) = 0
8. MagicShuffleIntoLibraryAction = 0
9. MagicRemoveCardAction (Colossal Might) = -272
10. MagicMoveCardAction (Boggart Ram-Gang,OwnersHand,OwnersLibrary) = 0
11. MagicShuffleIntoLibraryAction = 0
12. MagicRemoveCardAction (Boggart Ram-Gang) = -423
13. MagicMoveCardAction (Murderous Redcap,OwnersHand,OwnersLibrary) = 0
14. MagicShuffleIntoLibraryAction = 0
15. MagicRemoveCardAction (Murderous Redcap) = -368
16. MagicMoveCardAction (Naya Hushblade,OwnersHand,OwnersLibrary) = 0
17. MagicShuffleIntoLibraryAction = 0
18. MagicRemoveCardAction (Naya Hushblade) = -324
19. MagicMoveCardAction (Crimson Mage,OwnersHand,OwnersLibrary) = 0
20. MagicShuffleIntoLibraryAction = 0
21. MagicRemoveCardAction (Crimson Mage) = -350
22. MagicMoveCardAction (Kessig Wolf Run,OwnersHand,OwnersLibrary) = 0
23. MagicShuffleIntoLibraryAction = 0
24. MagicRemoveCardAction (Kessig Wolf Run) = -191
25. MagicDrawAction = 2381
26. MagicAddEventAction (EVENT: 0 Mike may$ take a mulligan. ) = 0
27. MagicExecuteFirstEventAction = 0
28. MagicExecuteFirstEventAction = 0
29. MagicAddEventAction (EVENT: 1 Play a card or ability.) = 0
30. MagicExecuteFirstEventAction = 0
31. MagicAddEventAction (EVENT: 0 Play a card or ability.) = 0
32. MagicExecuteFirstEventAction = 0
33. MagicAddEventAction (EVENT: 1 Play a card or ability.) = 0
Score = 1
Exception from controller.runGame: n must be positive, got: 0
java.lang.IllegalArgumentException: n must be positive, got: 0
at magic.MersenneTwisterFast.nextInt(MersenneTwisterFast.java:1150)
at magic.model.MagicRandom.nextInt(MagicRandom.java:22)
at
magic.model.choice.MagicPayManaCostChoice.getSimulationChoiceResult(MagicPayManaCostChoice.java:99)
at
magic.model.event.MagicEvent.getSimulationChoiceResult(MagicEvent.java:364)
at magic.ai.MCTSAI.getNextChoices(MCTSAI.java:398)
at magic.ai.MCTSAI.randomPlay(MCTSAI.java:353)
at magic.ai.MCTSAI.findNextEventChoiceResults(MCTSAI.java:167)
at
magic.ui.GameController.getArtificialNextEventChoiceResults(GameController.java:385)
at
magic.ui.GameController.executeNextEventWithChoices(GameController.java:400)
at magic.ui.GameController.runGame(GameController.java:494)
at magic.ui.GamePanel$10.run(GamePanel.java:241)
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings