SignetStudios / slackbot-uno

MIT License
4 stars 5 forks source link

cannot win game on a wild #38

Closed bmuenzenmeyer closed 7 years ago

bmuenzenmeyer commented 7 years ago

@kingofzeal said this might be a duplicate

kingofzeal commented 7 years ago

Looks like it's because the normal game checks don't occur when the color choice is processed, because it's expecting the normal play processing to handle them all. However, this clearly isn't the case with end-of-turn or end-of-game type checks.

Related to #37

bmuenzenmeyer commented 7 years ago

per @kingofzeal win condition could be added around https://github.com/SignetStudios/slackbot-uno/blob/master/lib/uno.js#L694