Giter Site home page Giter Site logo

dice-statistics's People

Contributors

xilconic avatar

Watchers

 avatar  avatar

dice-statistics's Issues

Basic Die domain model

Develop a Die domain model, meeting the following requirements:

  • A die has 6 sides, each with an integer value in the range [1,6].
  • When you roll a die, one of these faces will come on top. This is the "rolled value" and is depicted with the integer showing on that side.
    • Each side has an equal probability of showing when the die is being rolled. The "rolled value" can be modelled as a discrete uniform distribution in the range [1,6].

User Story: Rolling N-sided dice

  • Extend the domain model of dice by allowing dice that have N sides, defining the value range of [1, N]. N should be an integer of 1 or more.
  • Extend the dice rolling activity with a field that specifies the number of sides the dice will have.
  • Extend the dice statistics activity with input for the number of sides a die will have.

Create dice rolling activity

Have the Android app start up with an activity that allows for dice to be rolled. There should be a way for the user to input a certain number of dice to be rolled and a way to perform the dice-rolling. When rolling N dice, N integers should be shown representing the "rolled value" of those dice. When rolling again, all numbers should be replaced with the new result set.

Setup repo

To have the repo in full working order, the following needs to be done:

  • Create empty Android Studio project with proper gitignore settings.
    • Get a proper icon for the app.
  • Write README.md for GitHub project landing page.
  • Create issues for planned milestones.

User Story: Summing dice

  • Extend the dice domain model to add dice together, combining their result. Define a dice grouping concept, that can be rolled and the "rolled value" would be the sum of all "rolled values" of the individual dice within that group.
  • Extend the dice rolling activity with a way to mark the dice to be grouped together. Rolling N dice would then result in a single integer result. Individual die rolls within that group should still be accessible.
  • Extend the dice statistics activity with a way to determine the combined distribution of rolling N dice with M sides.

Create dice statistics activity

Create an activity that displays the discrete probability distribution of a die. There should be a bar plot displaying all possible values of a die and the probability corresponding to that value.

There should be a way to navigate between this activity and the dice rolling activity. There is no relationship between these two activities when implementing this issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.