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

Implement the Thief Role #127

Closed
antoinezanardi opened this issue Feb 3, 2021 · 0 comments
Closed

Implement the Thief Role #127

antoinezanardi opened this issue Feb 3, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@antoinezanardi
Copy link
Owner

antoinezanardi commented Feb 3, 2021

  • Two more cards must be added to the game composition if this role is played. Those cards must be stored in an array additionalCards and each value has this structure:
{
    _id: ObjectId, // Unique id
    role: String, // Role name
    for: String, // For which role this card is for, here value is "thief"
    isUsed: Boolean, // If the card was used before, can't be used anymore
}
  • Roles must be available compared to the game composition. If the two cards are from the werewolves side, the thief must take one of the two cards. Otherwise, he can take one or skip. His role.current and side.current change for the chosen card role and side.
  • Thief is the first to play, right before Cupid. He can't play if he is powerless.
  • In play structure, the chosen card is stored in chosenCardId.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant