Skip to content

l0nerof/Pig-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pig Game

Pig Game is a browser-based game where two players take turns rolling a dice with numbers from 1 to 6 to score points. If a player rolls a 1, the turn switches to the other player. The game continues until one player reaches a score of 20. After the game ends, players can start a new game immediately. This project was developed to enhance skills in JavaScript, DOM manipulation, HTML, BEM, and CSS.

Features

  • Dice Rolling: Players roll a dice to accumulate points.
  • Turn Switching: If a player rolls a 1, the turn switches to the other player.
  • Win Condition: The game ends when one player reaches a score of 20.
  • New Game: Players can start a new game after the current game ends.

Technology Stack

  • JavaScript
  • DOM manipulation
  • HTML
  • BEM (Block Element Modifier)
  • CSS