Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/l0nerof/pig-game
- Owner: l0nerof
- Created: 2024-04-29T05:52:09.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-06-04T12:11:51.000Z (8 months ago)
- Last Synced: 2024-11-12T21:35:52.608Z (3 months ago)
- Topics: css, dom, game, html, javascript
- Language: CSS
- Homepage: https://l0nerof.github.io/Pig-game/
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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**