safihasan / the-game-theory-gang1

1 stars 0 forks source link

Overview

Rock-Paper-Scissors-Lizard-Spock is an entertaining game of chance that offers a fun twist on the classic Rock-Paper-Scissors. In this expanded version, players choose from five options: Rock, Paper, Scissors, Lizard, or Spock. The computer opponent also makes a random choice, and the user interface displays the outcome—whether the user wins, loses, or draws. Additionally, the game features score tracking, allowing users to keep a record of their wins and losses over multiple rounds. The player has the option to play again after each round.

User stories

Acceptance criteria

Wireframes

We used Balsamiq to craft wireframes, capturing the visual essence of our game. The following images illustrate the progression of our design:

Languages, Frameworks and Libraries

Game features

Game title

The game title is prominently displayed at the top of the user interface, ensuring that players always know the name of the game. Styled attractively in an eye-catching shade of orange, the title harmonizes with the overall color scheme of the game, enhancing the visual appeal and maintaining consistency throughout the interface.

Rules

The game includes a "Rules" button that, when clicked, provides users with a comprehensive guide to the game rules. Upon clicking, a modal pops up displaying the following image:

.

Additionally, the voice of Sheldon is heard, offering an auditory explanation of the rules. This combination of visual and auditory guidance ensures that players have a clear understanding of how to play the game.

Score tracking

The game includes a score tracking feature that counts and displays the number of wins for each player. After each round, the player's score is shown on the left side of the UI, while the computer opponent's score appears on the right side. This clear and straightforward layout allows players to easily keep track of the number of games won by both themselves and the computer.

Feedback

The game contains a features that gives the player feedback after each game. It tells the user which option they picked, the option picked by the computer and which participant won the round.

After each game, the player will receive comprehensive feedback that includes the following information:

  1. Player's Choice: Clearly state the option the player selected.
  2. Computer's Choice: Clearly state the option the computer selected.
  3. Round Outcome: Inform the player whether they won or lost the round.

Play again

After each round, the player is presented with a "Play Again" button, allowing them to continue playing the game seamlessly. This button is styled to match the game's theme, ensuring a cohesive look and feel. Upon clicking the button, the user is taken back to the main game interface to start a new round.

Testing

Validation:

https://validator.w3.org/ - One warning only, for missing heading. https://jigsaw.w3.org/css-validator/ -Congratulations, no errors found.

Performance testing

The application was evaluated for speed, loading times, accessibility, and search engine optimization using Google Chrome Lighthouse. The results showed that the game application performed well overall, though there are areas for potential improvement. For instance, enhancing accessibility can be achieved by increasing the contrast between the foreground and background. Additionally, search engine optimization can be improved by including a meta description in the document.

Bugs

The bugs encountered while making this game, included. html positioning for UX. Bug detected in winner results and resolved.

Deployment

The site was deployed to GitHub pages on 28th May 2024. The steps to deploy are as follows: In the GitHub repository, navigate to the Settings tab From the source section drop-down menu, select the Master Branch Once the master branch has been selected, the page will be automatically refreshed with a detailed ribbon display to indicate the successful deployment. The live link can be found here https://safihasan.github.io/the-game-theory-gang1/

Credits

README template

Online Javascript Tutorials

W3schools

Bootstrap

Free icon