Giter Site home page Giter Site logo

aakashsr / pig-game Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 14.19 MB

:pig: A fun Dice Game(Pig game) in Vanilla JS

Home Page: http://aakashdev.me/Pig-Game/

JavaScript 41.28% HTML 19.20% CSS 39.52%
javascript css3 html5 game javascriptgame pig-game dice-game dice

pig-game's Introduction

JavaScript Pig Game

================================

Pig is what’s known as a jeopardy game. You will have to make risky choice to balance getting ahead without losing it all.

DEMO

GAME RULES

  • The game has 2 players, playing in rounds.
  • In each turn, a player rolls a dice as many times as he whishes. Each result get added to his ROUND Score
  • BUT , When a player rolls two dice and one of the die is a 1, he loses the points just for that turn.
  • And, if he rolls double 6s, he loses his total score. After which, it's the next player's turn.
  • The player can choose to 'Hold', which means that his ROUND score gets added to his GLOBAL Score. After that, it's the next player's turn.
  • The first player to reach 100 points on GLOBAL score wins the game.

Feel Free To Fork This Repository :)

pig-game's People

Contributors

aakashsr avatar imgbotapp avatar

Watchers

 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.