Coder Social home page Coder Social logo

kaffan / pig-game Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 7 KB

This a fun and exciting 2 player game made using HTML, CSS and Vanilla.js.

Home Page: https://kaffan.github.io/Pig-Game/

HTML 22.43% JavaScript 48.89% CSS 28.68%
css game html5 javascript

pig-game's Introduction

Pig-Game

This a web app based game made using HTML, CSS and vanilla.js (no frameworks used)

Working of the Game

1. No. of players

There are 2 players in this game

2. Workflow

  1. Each player, during his/her chance, can roll the dice by clicking on the Roll dice button.
  2. When the roll dice button is clicked, the temporary score of the one, whose's chance is, increases.
  3. if the player clicks on hold button then his/her temporary score is addded to the main score and the chance to play is passed to another player.
  4. if, before clicking on hold button, the player encounters 1 one the dice then all his/her temporary score is reduced to zero without that temporary score being added to main score and the player loses his/her chance.
  5. if any of the player's main score reaches 100 before another then that player is the winner of the game.
Pig-game-explanation.mp4

pig-game's People

Contributors

kaffan avatar

Watchers

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