top of page

Overview



Pig Game is a classic dice game I built as an interactive web application. Two players take turns rolling a dice to accumulate points, but there's a catch  roll a 1 and you lose all points from that turn. It's a game of risk versus reward that tests your luck and decision-making.

IMG_6728_edited.jpg

How the Game Works

  1. Players take turns rolling a dice

  2. Each roll adds to your current score for that turn

  3. You can "Hold" to bank your points safely to your total score

  4. But if you roll a 1, you lose all unbanked points and your turn ends

  5. First player to reach 100 points wins

Technologies Used

StructureHTML5

StylingCSS3

LogicVanilla

JavaScript (ES6+)

DeploymentNetlify

DesignCustom UI with modern aesthetics

IMG_6726.jpg

Key Features

Two-Player Gameplay — Alternating turns between Player 1 and Player 2.

Dice Roll Animation — Visual dice display that updates with each roll.

Score Tracking — Real-time current score and total score for both players.

Hold Functionality — Strategic option to bank points safely.

Win Detection — Automatic winner announcement at 100 points

New Game Reset — Start fresh anytime with one click.

Active Player Highlighting — Clear visual indicator of whose turn it is.

Responsive Design — Playable on desktop and mobile devices.

Clean UI — Minimalist design that focuses on gameplay.

bottom of page