Skip to content

TASK: Add a dice rolling methods #150

Description

@TheGittyPerson

Leave a comment if you want to work on this task!

Difficulty: Upper beginner

TODO:

  • Add the roll_dice() to the Person class in person.py
  • The method should have two parameters:
    • d parameter of type int that determines how many sides there are on an individual die.
    • count parameter of type int that determines how many dice to roll
    • It should return a tuple of ints
  • Add another method called roll_die() that only roles one die and returns an int.
  • Remember to add type hints and docstrings where necessary and follow PEP 8

PR steps:

  1. Fork this repo
  2. Clone the forked repo
  3. Create a new branch and name it feature/roll-dice-methods
  4. Push commits to your remote fork
  5. Create a pull request titled TASK: Add a dice rolling methods (#150)
  6. At the end of the PR description, add Closes #150
  7. Submit the PR (Ensure you allow maintainers to edit)

Please make sure you have read the Contributing Guidelines before working.


Feel free to ask any questions here!

If you are interested in working on this task, please leave a comment requesting assignment to explicitly let others know the task is taken and prevent duplicate PRs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or enhancementgood first issueGood for newcomershelp wantedExtra attention is neededtaskThis is a task issue / PR completing a task🐛 Upper BeginnerGood for more experienced beginners

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions