Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

game stops working when deck is empty #13

Closed
bazola opened this issue Sep 4, 2014 · 2 comments
Closed

game stops working when deck is empty #13

bazola opened this issue Sep 4, 2014 · 2 comments
Assignees

Comments

@bazola
Copy link
Contributor

bazola commented Sep 4, 2014

The JavaFX windows keeps running, but you can no longer advance turns. Here is the error message:
(This is Lua) Turn Start! {Player 'Player1'}
(This is Lua) Deck is empty!
Exception in thread "JavaFX Application Thread" java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
(followed by a stack trace)

@bazola bazola added the bug label Sep 4, 2014
@Zomis
Copy link
Member

Zomis commented Sep 4, 2014

a) What should happen? Should the deck be re-built, should the player take increasing amounts of damage, or should the player simply lose?
b) What's the stack trace?

@Zomis
Copy link
Member

Zomis commented Sep 8, 2014

From a little chat conversation, it's decided that when a deck is empty, no new cards should be drawn but instead the player should receive increasing amounts of damage.

@Zomis Zomis self-assigned this Sep 8, 2014
Zomis added a commit that referenced this issue Sep 10, 2014
Zomis added a commit that referenced this issue Sep 10, 2014
@Zomis Zomis closed this as completed in 1a13186 Sep 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants