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

Dice Game Page #42

Open
17 tasks
kabaskill opened this issue Jan 18, 2024 · 4 comments
Open
17 tasks

Dice Game Page #42

kabaskill opened this issue Jan 18, 2024 · 4 comments
Assignees

Comments

@kabaskill
Copy link
Collaborator

kabaskill commented Jan 18, 2024

Value proposition

As a user I want to playfully explore new games in order to learn about a wide variety of games

Description

Image

Acceptance criteria

  • A dice button is displayed on the navbar that navigates the user to the dice-game page
  • User is greeted with a short scenario and a Roll Dice? button.
  • When the Roll Dice? button is clicked, new elements are displayed:
    • The result of the roll
    • The outcome of the certain story
    • A game suggestion
  • After the game finishes, Roll Again? button is displayed.
  • When the Roll Again? is clicked, the page resets and displays its initial state
  • Clicking Roll Dice after Roll Again is clicked will show a different outcome

Tasks

  • Create the data set for different scenarios and save it to the /utils folder
  • Create a dice-game folder for the Dice Game page
  • dice-game folder has the following:
    • Import scenarios.js from /utils
    • Create a function rollDice
    • Create a function getRandomGame - check the suggested game is already marked as favorite
    • Render elements conditionally
  • Add a Link for the dice-game page
@itsmyrice itsmyrice changed the title Create Random Game Page Random Game Page Jan 19, 2024
@F-Kirchhoff
Copy link
Contributor

F-Kirchhoff commented Jan 19, 2024

Hey!
I really like the personal touch of this user story, I think it fits really well with your app. Please add more information to the AC and the Tasks. Each visible element should be described by the AC and the tasks should be clear about what you need to create.
Also, make the value proposition explicit e.g. "As a user I want to playfully explore new games in order to learn about a wide variety of games.

@kabaskill kabaskill changed the title Random Game Page Dice Game Page Jan 22, 2024
@F-Kirchhoff
Copy link
Contributor

This is looking better. Please specify the following as well:

  • What happens if the "Restart Game" button is clicked?
  • if this button should only display another dice outcome and another game, you could rename it to "Roll again" or "Reroll the Dice"

@kabaskill
Copy link
Collaborator Author

kabaskill commented Jan 22, 2024

This is looking better. Please specify the following as well:

* What happens if the "Restart Game" button is clicked?

* if this button should only display another dice outcome and another game, you could rename it to "Roll again" or "Reroll the Dice"
  • When the Roll Again? is clicked, the page resets and displays its initial state
  • Clicking Roll Dice after Roll Again is clicked will show a different outcome

These lines are added to the user story

@F-Kirchhoff
Copy link
Contributor

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants