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

Integrate domain logic for memory game #15

Open
5 of 9 tasks
marein opened this issue Sep 8, 2018 · 0 comments
Open
5 of 9 tasks

Integrate domain logic for memory game #15

marein opened this issue Sep 8, 2018 · 0 comments

Comments

@marein
Copy link
Owner

marein commented Sep 8, 2018

The next game to come will be memory. Following things needs to be done.

  • A player can open a game.
  • A dealer deal cards in.
  • Other players can join an open game.
  • Players can leave the game while it's in open state. If the current player leaves the game, the next player becomes the current player. If all players left, the game gets closed.
  • The current player can start the game. After the game is started, no one can leave or join.
  • The game can only be started with at least two players.
  • Players can resign in a started game. If the penultimate players leaves, the last player gets the rest of the points and the game gets closed.
  • Players flip the cards in pairs one after another. If a pair matches, the player gets a point and the card stays flipped. Other players can't flip the pair again.
  • If all matches are found, the game is finished and the winner is chosen.
@marein marein self-assigned this Sep 8, 2018
marein added a commit that referenced this issue Sep 8, 2018
marein added a commit that referenced this issue Sep 21, 2018
marein added a commit that referenced this issue Sep 22, 2018
marein added a commit that referenced this issue Sep 22, 2018
marein added a commit that referenced this issue Oct 13, 2018
* Introduce the current state of the game
* Write additional tests for not allowed actions based on that state
* Additionally, some coding style clean up in memory context
marein added a commit that referenced this issue Oct 16, 2018
Additionally: If the player is the last player, the game gets closed.
@marein marein changed the title Integrate memory as a game Integrate domain logic memory game Dec 23, 2018
@marein marein changed the title Integrate domain logic memory game Integrate domain logic for memory game Dec 24, 2018
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