Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/l0nerof/pig-game

Pig Game - a browser-based game
https://github.com/l0nerof/pig-game

css dom game html javascript

Last synced: 26 days ago
JSON representation

Pig Game - a browser-based game

Awesome Lists containing this project

README

        

# 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**