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

Be fully compliant with UNO rules regarding game-starting card #4

Open
dgw opened this issue Jul 12, 2015 · 0 comments
Open

Be fully compliant with UNO rules regarding game-starting card #4

dgw opened this issue Jul 12, 2015 · 0 comments

Comments

@dgw
Copy link
Owner

dgw commented Jul 12, 2015

Currently this game will keep drawing top cards at the start of a round if a W or WD4 comes up. The UNO rules specify that the start of a round should be handled as follows:

STARTING A DISCARD PILE
Well, if a word card is the first one turned up from the DRAW pile, this is what happens.
Wild Draw Four - It's put back in the deck and another one is chosen.
Wild Card - The player to the left of the dealer calls out a color - then plays.
Draw Two Card - The player to the left of dealer must pick two cards and then the next player goes (sad, but true).
Reverse Card - The dealer plays first, but then goes to the right instead of the left.
Skip Card - The player to the left of dealer doesn't start (get it, he's skipped). The player to the left of him starts.

http://www.wonkavator.com/uno/unorules.html

Make sure to verify that all of these rules are being followed, in addition to adding the W and WD4 logic. Will probably reduce the elegance of the code somewhat because cardPlayed() or deal() or something in UnoGame will have to handle prompting for a color if the first card is W.

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

1 participant