Giter Site home page Giter Site logo

gl_assessment's Introduction

Code for Great Learning Assessment

HOW TO RUN

  1. Clone the project and run main.py file
  2. Enter Player no and max points which range for 0 to MAXINT
  3. enter r/R and then enter to roll the dice

Problem Statement -> Make a Dice rolling game with following functionalities

  1. Take inputs from user for no of players and max points
  2. Simulate Dice roll
  3. add dice roll value to points of player
  4. Skip the chance in case of double 1
  5. Give extra chance in case of 6
  6. Show ranks after every roll
  7. Once player points go over reuired points he completes the games
  8. Game is finished when every person get his points over the the required points

Assumptions:

  1. only positive integers would be entered by the users for input for no' of players and max points, even then validation has been applies
  2. dice roll is randomly simulated in python by generating a random number between 1 - 6
  3. Upper Bounds on No of players and max points is equal to max value that can be stored in int data type and min value is 1 for both

Issues: 1. Ranking system should have been made as a doubly linked list for faster display

Bonus:

  1. Tests are created for checking ranks

gl_assessment's People

Contributors

cph0r avatar

Watchers

 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.