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

Draw a card for player when changing turn #189

Closed
phoorichet opened this issue Oct 11, 2018 · 1 comment
Closed

Draw a card for player when changing turn #189

phoorichet opened this issue Oct 11, 2018 · 1 comment
Labels
invalid This doesn't seem right

Comments

@phoorichet
Copy link
Contributor

phoorichet commented Oct 11, 2018

When a player click Endturn in the zb game, the active player changes to the opponent. Before the opponent does any action, he'll get one card from his deck to his hand.

This task is to modify the gamestate actionEndTurn to reflect the above requirements. Currently, what actionEndTurn does is only to change the player's turn. we have to add changes so that one card in deck get moved to player' hand.

The changes should also have test cases to verify the game state after applying state function.

@phoorichet phoorichet changed the title Draw a card for player Draw a card for player when changing turn Oct 11, 2018
@phoorichet phoorichet added the invalid This doesn't seem right label Oct 12, 2018
@phoorichet
Copy link
Contributor Author

Game client should make a call to draw a card before playing each turn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants