The Pig Game

Description

Pig is a simple dice game with many rule variations. The objective of Pig game is to score 100 points before the opponent does. The Pig game is played with a single six-sided die but this version two standard dice are rolled.

Before you start the game with your opponent, you can input your name and customize the winning score.

How it works?

All the functionality was made using JavaScript and Model-View-Controller pattern. Used different JS concepts like functions expressions, IIFE, scoping, closures, prototypes, objects and methods.

  • HTML
  • CSS
  • JavaScript
  • Client: Personal Project
  • Website: The Pig Game
  • Date: January 2018
  • Service: Web Development