Git Product home page Git Product logo

perfect-deck's People

Contributors

pismy avatar privarola avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

mryann privarola

perfect-deck's Issues

BurnDeckPilot : error when trying to launch in suspend a "Rift Bolt" exiled by "Light Up The Stage"

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:>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.