GithubHelp home page GithubHelp logo

mayuri-saha18 / dice_game Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 49 KB

Three dice are present in this when you click on the roll the dice button three dice roll and show you some random number where green color present the largest number or winner, yellow color present the second largest number, red present the smallest number, and blue for the draw.

Home Page: https://658eacbe5225749eda4b0212--delicate-pixie-a8ccdd.netlify.app/

HTML 23.17% JavaScript 76.83%
advanced-javascript css3 html

dice_game's Introduction

Dice_game

Problem Statement : Throw Dice

You and your two other team members are doing your construct week project. An issue arises in your project and all three of you come up with a solution. All the three solutions are feasible and each one of you wants to implement his own solution. Hence all of you decided to roll a dice and whoever gets the maximum score will implement his solution. But the problem is you cannot roll a dice online, so you, being an active team member, decided to make an app with three dice showing a random number between 1 to 6 as described below.

Description :-

🌟Create an Index.html file

🌟Create three “DIV”, which will represent three dice and show a random number between 1 to 6.

🌟First will represent score for Member A

🌟Second will represent score for Member B

🌟And third will represent score for Member C

🌟Make a button with text content “ROLL THE DICE”

🌟On pressing the button all the three dice should roll and show a random number between 1 to 6.

🌟Make a “DIV” at the top which will show the winner.

Things to follow :-

🌟First dice will have id “member-1”.

🌟Second dice will have id “member-2”.

🌟Third dice will have id “member-3”.

🌟Roll the dice button will have id “roll”.

🌟The winner showing div will have id “winner”

🌟The winning dice will be in color green.

🌟The Second scorer dice will be in yellow

🌟And the dice who scored least should be in red.

🌟In case of draw make the dice scoring equal appear blue.

Tech-Stack used

  1. HTML
  2. CSS
  3. Java-Script

Deployed-link:

https://658eacbe5225749eda4b0212--delicate-pixie-a8ccdd.netlify.app/

dice_game's People

Contributors

mayuri-saha18 avatar

Stargazers

 avatar  avatar  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.