An open API service indexing awesome lists of open source software.

https://github.com/codabytez/pig_game


https://github.com/codabytez/pig_game

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

          

# PIG GAME

## Description

This is a simple dice game built with HTML, CSS and Javascript. It is a game of chance where two players roll a dice and the first to reach the final score wins the 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, if the player rolls a 1, all his ROUND score gets lost. After that, 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 the play selected points on GLOBAL score wins the game

## How to play

- Enter the final score and click on set score
- Click on the roll dice button to roll the dice
- Click on the hold button to hold your score
- Click on the new game button to start a new game

## Demo

[Live Demo](https://pig-game-ssr.vercel.app/)

## Tech Stack

**Client:** HTML, CSS, Javascript

## License

![Licence](https://img.shields.io/github/license/codabytez/pig_game?style=flat-square)

## Badges

![GitHub top language](https://img.shields.io/github/languages/top/codabytez/pig_game?style=for-the-badge)

![GitHub language count](https://img.shields.io/github/languages/count/codabytez/pig_game?style=for-the-badge)
![GitHub last commit](https://img.shields.io/github/last-commit/codabytez/pig_game?style=for-the-badge)
![GitHub repo size](https://img.shields.io/github/repo-size/codabytez/pig_game?style=for-the-badge)
![HTML](https://img.shields.io/badge/HTML-05122A?style=for-the-badge&logo=html5) 
![CSS](https://img.shields.io/badge/CSS-05122A?&style=for-the-badge&logo=css3&logoColor=blue) 
![JavaScript](https://img.shields.io/badge/JavaScript-05122A?style=for-the-badge&logo=javascript) 
![Vercel](https://img.shields.io/badge/Vercel-05122A?style=for-the-badge&logo=vercel) 
![VSCode](https://img.shields.io/badge/VSCode-05122A?style=for-the-badge&logo=visual-studio-code&logoColor=blue) 
![Git](https://img.shields.io/badge/Git-05122A?style=for-the-badge&logo=git) 
![GitHub](https://img.shields.io/badge/GitHub-05122A?style=for-the-badge&logo=github)