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

Gambling money check #5 #25

Merged
merged 5 commits into from
Oct 14, 2017
Merged

Gambling money check #5 #25

merged 5 commits into from
Oct 14, 2017

Conversation

parrajustin
Copy link
Contributor

  • Added public getCoins function to Player
  • Added Player money compare check to CoinsDeduction under GenerateValues()

This limits a player from entering the gambling view if they don't have enough money to be able to lose a round, but if they don't then when the option for gambling is chosen nothing happens; since it takes them to the gambling view then straight back. I think it feels a bit wrong.

@tagniam
Copy link
Owner

tagniam commented Oct 13, 2017

You can output a brief message to the player that they don't have enough coins so the interface is more responsive

- It also waits for user input before exiting
@parrajustin
Copy link
Contributor Author

Now it informs the user of the number of coins needed to gamble and it waits for them to confirm.
image

@tagniam tagniam merged commit 179840c into tagniam:master Oct 14, 2017
@tagniam
Copy link
Owner

tagniam commented Oct 14, 2017

Thanks @parrajustin!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants