Giter Club home page Giter Club logo

android-monty-hall's Introduction

android-monty-hall

A simple simulation of the Monty Hall problem. The purpose of which was to develop the knowledge of using explicit and implicit intents. Develped as part of coursework.

Reference for Monty Hall problem:

https://en.wikipedia.org/wiki/Monty_Hall_problem

Intro:

  • The First screen displayes three buttons, each representing a door, and another button which takes the user to the wikipedia page of the description (this is the only part where the knoweldge of the implicit intents is used).

  • The second screen asks the user if they they want to keep their choice or switch it.

  • The third screen displays the result of their game. And a button to play again to go back to the

Architecture and Design:

The design tries to conform the practice of granularity of each module overall.

  • The main activity class represents the first screen (Homepage).
  • The second, third and fourth depresent each a unique intent for each outcome of the openDoorX methods (In terms of the Intro above that is the Second screen the user encounters).
  • The fifth and sixth activities represent the outcome of each each choice. As two outcomes of two doors are the same, the same method is called in both options. There is also a button which takes the user back to the Homepage.

android-monty-hall's People

Contributors

lirandepira avatar

Watchers

James Cloos avatar

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.