This project highlights my JavaScript skills in creating a dynamic 2-player dice web game. The objective was to develop an engaging game where players take turns rolling dice, accumulating points based on the dice outcome, while strategically deciding when to hold and when to risk rolling for more points.
Using JavaScript, I successfully implemented the game mechanics, allowing players to roll the dice and have a random dice side displayed. Each time a player rolls, they accumulate points based on the dice side. However, if a player rolls a one, they lose their turn and forfeit the points they were accumulating. To safeguard their points, players can choose to click the hold button, transferring their accumulated points to their total score while passing the turn to the next player.
The game continues until a player reaches a score of 100 or more, declaring them the winner. Throughout the development process, I focused on creating an intuitive user interface and smooth gameplay experience. The game features interactive elements, such as dice animations and score updates, to enhance the excitement and engagement for players.
By successfully completing this project, I demonstrated my proficiency in JavaScript programming, game logic implementation, and user interface design. The 2-player dice web game exemplifies my ability to create interactive and entertaining experiences, showcasing my passion for both coding and game development.