Git Product home page Git Product logo

dice-game-webpack's Introduction

Template HTML Dice Game Match

NOTE: do not contain JS code for interaction

Sponsored by

Requirements

  • node > 14
  • npm > 6
  • cazzimma > โˆž

Advanced Usage

Clone the source files of the theme and navigate into the theme's root directory. Run npm install and then run npm dev which will open up a preview of the project in your default browser, watch for changes to core project files, and live reload the browser when changes are saved. You can view the package.json file to see which scripts are included.

npm Scripts

  • npm run build builds the project - this builds assets, HTML, JS, and CSS into dist
    • npm run build-prod as previous build but in production mode
  • npm run clean deletes the dist directory to prepare for rebuilding the project
  • npm run clean-inst delete the dist and node_modules directories and package-lock.json file to prepare for reinstall from scratch the entire projects
  • npm run dev runs the project in developing mode
  • npm watch not launches a live preview but runs compiling and watches for changes made to files in src
  • npm pages deletes the dist and files into docs and then build project and move in to docs folder to be displayer as DEMO GitHub Pages

You must have npm installed in order to use this build environment.

Preview HTML

Dice Match HTML preview

Game Rules

Game of Dice (Dice Match)

Match

A game consists of several consecutive hands (rounds). The participant who wins a hand receives 2 points, 0 the participant who loses. If the round is tied, both participants receive 1 point. During the game the results of the hands are added up and at the end whoever has scored the most points wins the game.

Round (hands)

The "round" (hands) is the actual game, it simply consists of throwing a die for each participant. The participant with the highest die number wins the hand. If the dice show the same number then the hand is even. As mentioned before, the participant who wins a hand receives 2 points, 0 the participant who loses. If the round is tied, both participants receive 1 point. Note Attention: during the game do not add up the dice results but only the result of the rounds, that is 2, 1 or 0 for each hand.

Copyright and License

Copyright Domenico Monaco https://domenicomonaco.it Code released under MIT License

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.