Giter Site home page Giter Site logo

dicegame's Introduction

Requirement :

  • Install ruby 2.1.3 or upper version

How to play Dice Game :

  • Take clone : git clone [email protected]:palash-kulkarni/DiceGame.git
  • cd DiceGame
  • run ruby game_manager.rb

LLD as follows :

Classes :

  • GameManager : This is singleton class which have capability to manage N number games and sets up the game for users.
  • DiceGame : Main class, which is having the composition of Players, and Dice.
  • Dice : Dice is required to play this game and it may have N number of faces. And it will roll to generate points to player.
  • Player : Actor who will play this game.
  • Rules : This is the module which is injected in DiceGame to set rules for the game.
  • Constants : Specifying module to keep centralized contants.

GameManager ---composition---> DiceGame(Injecting Rules) ---composition---> (Dice, Player)

dicegame's People

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.