Welcome to Pick Game, an exciting multiplayer dice game where two players compete to reach 100 points first. This project was designed to practice and reinforce essential JavaScript, HTML, and CSS skills by implementing game logic, DOM manipulation, and user interaction.
The game is currently in development. Some features may not be fully implemented, and there may be bugs or incomplete functionality.
Pick Game is a two-player dice game where players take turns rolling a dice to accumulate points. Here's how the game works:
- Rolling the Dice: Each player can roll the dice to get a number between 1 and 6. The number rolled gets added to the player's current round score.
- Holding the Score: Players can choose to "hold" their score, which adds the current round score to their total score and ends their turn.
- Rolling a 1: If a player rolls a 1, they lose their current round score, and the turn switches to the other player.
- Winning: The first player to reach 100 points wins the game!
- Resetting the Game: At any point, the game can be reset to start over.
- Two-player mode: Play against a friend or challenge yourself!
- Interactive UI: Real-time updates for the current score, round score, and dice rolls.
- Reset Functionality: Easily restart the game with the click of a button.
- Flowchart-based Design: The game logic was designed using a flowchart, ensuring smooth gameplay and easy understanding of the code.
This project utilizes core web technologies and was built as a practice project for learning front-end development:
- JavaScript: Game logic, DOM manipulation, and event handling.
- HTML & CSS: Structuring the game layout and styling for a sleek user interface.
- Live Demo: Hosted using Netlify.
The logic behind Pick Game is designed using a flowchart to make it easy to follow. This flowchart helps visualize the game's states, user actions, and the transitions between them.
The above flowchart illustrates the main actions and logic of the game.
This project is licensed under the MIT License. See the LICENSE file for details.
This project was developed based on the teachings of the course [The Complete JavaScript Course 2024: From Zero to Expert!] taught by Jonas Schmedtmann on Udemy.
- Course: [The Complete JavaScript Course 2024: From Zero to Expert!] (https://www.udemy.com/course/the-complete-javascript-course/?couponCode=OF83024E)
- Instructor: [Jonas Schmedtmann] (https://github.com/jonasschmedtmann)
Enjoy the game, and happy coding!