pismy / perfect-deck Goto Github PK
View Code? Open in Web Editor NEWMagic: The Gathering tool for optimizing a deck via computer simulation
License: Apache License 2.0
Magic: The Gathering tool for optimizing a deck via computer simulation
License: Apache License 2.0
The program crashes with this stack :
org.mtgpeasant.perfectdeck.goldfish.GameInternalError: An unexpected error occurred in a game
=====================
=== New Game: OTP ===
=====================
hand #0 [mountain, fireblast, light up the stage, mountain, viashino pyromancer, seal of fire, chain lightning] kept
=== Turn 1 ===
> opponent life: 20
> hand: [mountain, fireblast, light up the stage, mountain, viashino pyromancer, seal of fire, chain lightning]
> battlefield: []
beg> untap all
m#1> land [mountain]
m#1> tap [mountain] and add R to mana pool
m#1> cast [chain lightning] for R
m#1> damage: 3 (17)
=== Turn 2 ===
> opponent life: 17
> hand: [fireblast, light up the stage, mountain, viashino pyromancer, seal of fire]
> battlefield: [⟳mountain]
> graveyard: [chain lightning]
beg> untap all
beg> draw 1: [mountain]
m#1> land [mountain]
m#1> tap [mountain] and add R to mana pool
m#1> tap [mountain] and add R to mana pool
m#1> cast [viashino pyromancer] to battlefield for 1R
m#1> damage (Viashino ETB): 2 (15)
=== Turn 3 ===
> opponent life: 15
> hand: [fireblast, light up the stage, seal of fire, mountain]
> battlefield: [viashino pyromancer, ⟳mountain, ⟳mountain]
> graveyard: [chain lightning]
beg> untap all
beg> draw 1: [mountain]
m#1> land [mountain]
m#1> tap [mountain] and add R to mana pool
m#1> cast [seal of fire] to battlefield for R
cmb> attack with [viashino pyromancer] for 2 (13)
m#2> tap [mountain] and add R to mana pool
m#2> cast [light up the stage] for R
m#2> move [rift bolt] from library to exile
m#2> move [mountain] from library to exile
m#2> tap [mountain] and add R to mana pool
m#2> pay R
m#2> move [rift bolt] from hand to exile
at org.mtgpeasant.perfectdeck.goldfish.GoldfishSimulator.simulateGame(GoldfishSimulator.java:291)
at org.mtgpeasant.perfectdeck.goldfish.GoldfishSimulator.lambda$simulate$79(GoldfishSimulator.java:153)
at java.util.stream.IntPipeline$4$1.accept(IntPipeline.java:250)
at java.util.stream.Streams$RangeIntSpliterator.forEachRemaining(Streams.java:110)
at java.util.Spliterator$OfInt.forEachRemaining(Spliterator.java:693)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.ReduceOps$ReduceTask.doLeaf(ReduceOps.java:747)
at java.util.stream.ReduceOps$ReduceTask.doLeaf(ReduceOps.java:721)
at java.util.stream.AbstractTask.compute(AbstractTask.java:316)
at java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:731)
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
Caused by: org.mtgpeasant.perfectdeck.goldfish.IllegalActionException: Can't move [rift bolt]: not in hand
at org.mtgpeasant.perfectdeck.goldfish.Game._move(Game.java:179)
at org.mtgpeasant.perfectdeck.goldfish.Game.move(Game.java:435)
at org.mtgpeasant.perfectdeck.goldfish.Game.move(Game.java:447)
at org.mtgpeasant.decks.burn.BurnDeckPilot.play(BurnDeckPilot.java:565)
at org.mtgpeasant.decks.burn.BurnDeckPilot.playOneOf(BurnDeckPilot.java:303)
at org.mtgpeasant.decks.burn.BurnDeckPilot.playBestCard(BurnDeckPilot.java:229)
at org.mtgpeasant.decks.burn.BurnDeckPilot.secondMainPhase(BurnDeckPilot.java:160)
at org.mtgpeasant.perfectdeck.goldfish.GoldfishSimulator.simulateGame(GoldfishSimulator.java:259)
... 14 more
shell:>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.