Skip to content

StephShobiye/Hackathon2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

172 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rock, Paper, Scissors, Lizard, Spock

Rock, Paper, Scissors, Lizard, Spock aims to provide a digital version of an intergenerationally popular game. While the primary audience is young children aged between 4 and 7 (KS1), it must also appeal to their parents as they would be the primary purchasers of such a game.

Responsive Mockup

Table of Contents

Features

This website was made by a composition of different features. For the overall design of the game, vibrant colours were chosen with the purpose of creating a vivid, vibrant and captivating website.

  • Header

    • The header is shown on both pages, the home page and rules page. The header is fully responsive. It includes the full name of the game, together with icons for larger screens, and it only displays the icons of the game for smaller screens thus saving screen space for the user.

    • The header's purpose is to give a friendly and welcoming look to the user. By choosing bright and colourful colours, it is possible to make it more attractive to children.

      Header Image

  • Player's Name Section

    • The player's name section allows the user to enter and display their name on the screen when playing the game. Thus feeling more idenfitied and relating in a closer manner to the game. Player's Name
  • Landing Page Game

    • It includes the game which is compound by:

      • The score of the player vs. the computer score.
      • Five buttons with the respective icon of the desired move by the player.
      • When a choice is made, the game will display the user's move and the computer moves, finally showing who's the winner of the round.
      • The winner is declared in a best of 5 games.
      • The game will finally display two different message on screen followed by a sound depending on whether the user wins or loses.
      • Finally, it also includes a rules page to comprehend the game and reset button to restart the game.

      Game Section

  • Footer

    • The footer includes links to the GitHub pages of each collaborator. It will open on a new tab to allow easy navigation for the user.

    • It is a valuable feature, since it will allow future employers to have an easy access to other projects made by the team members.

      Footer

  • Rules

    • The rules page provides a brief and simple explanation of the rules of the game.

    • It also includes three different buttons:

      • The Teacher Probability Plan:
      • Home page button that will allow the user to return to the main page after reading the rules of the game.
      • National Curriculum KS3 Reference
      Rules Page

Features Left to Implement

  • Two-players Mode
  • Timer
  • Quiz

Testing

We completed a lot of the responsiveness and function testing as we went along. After a new feature was added to our project we would then run the site through dev tools checking different device sizes to ensure responsiveness and features were working as expected. We had a slight stuggle with the header, ensuring the words pushed down into imgs when on smaller devices. However after spending some time referring to the bootstrap wesbite we were able to accomplish what we set out.

  • Validator Testing

    • HTML.html Validator result. An a tag inside the button was the simplest way to make a button a link so we decided to keep that HTML
index-w3v
  • Rules.html Validator result. An a tag inside the button was the simplest way to make a button a link so we decided to keep that HTML
Rules HTML Validator
  • CSS
CSS Validator
  • Javascript
JSHint Output
  • Responsiveness Testing
Page ACTION EXPECTATION RESULT
Index Size to 320px by 800px using Chrome Dev Tools Elements look good @ 320px by 800px Works as expected
Index Size to 798px by 1024px using Chrome Dev Tools Elements look good @ 1920px by 1080px Works as expected
Index Size to 1920px by 1080px using Chrome Dev Tools Elements look good @ 1920px by 1080px Works as expected
Rules Size to 320px by 800px using Chrome Dev Tools Elements look good @ 320px by 800px Works as expected
Rules Size to 798px by 1024px using Chrome Dev Tools Elements look good @ 1920px by 1080px Works as expected
Rules Size to 1920px by 1080px using Chrome Dev Tools Elements look good @ 1920px by 1080px Works as expected
  • Browser Testing

For browser testing we used https://www.browserling.com as well as our own devices. As we used emojis to keep to the child audience it come apprent some emojis were not cross browser compatable, our rock emoji would not work on Safari so we had to change it to a fist.

  • Chrome Version 90.0.4430.212 (Official Build) (64-bit) - Works as expected.

  • Firefox Version 88.0.1 (64-bit) - Works as expected.

  • Safari on macOS Catalina (Safari Version 14.0.3) - Works as expected (rules buttons highlights as hyperlink) Lighthouse Index Page

  • Lighthouse

    You will see our lighthouse reports are not perfect, main suggestions were the img increasing page loading time. However we as a team feels the pages load is sufficent time.

Lighthouse Index Page

Lighthouse Rules Page

  • Unfixed Bugs

    Input field accepts special characters and numbers. We tried to resolve VIA pattern attribute in HTML however this would not work as the input field was not posting or getting. However we use .value in javascript to pull it out the input field and apply it with userscore. The work around is a javascript regex that pulls out the numbers and special characters before applying to user score after researching and help of chatGPT.

Lighthouse Rules Page

User Experience Testing

We asked two Maths teachers to test our project and obtained verbal feedback. They both responded that they liked the site and felt that it could be useful used in the right home or class context. They were content that the lesson plan was suitable for our target age range, and said that the game was visually appealing. Homework Quizz games based on calculating probabilties was suggested as a future feature. We also asked a group of parents and children of the target age range for their opinion. All said the game was easy to understand, fun to play, and that it worked on a variety of screen sizes.

Design

The UX design was made in balsamiq. See the wireframes here

Deployment

  • The site was deployed to GitHub pages. 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://caleom.github.io/Hackathon2/

Credits

  • User Experience Testers were members of "ALN Cymru - HE & EOTAS", a parent peer support network for those educated outside school in Wales. This was simply because these were the people we had time to ask to view and test the finished product within the time constraints of this project.

Content

Media

  • The header's cloud image was taken from Wallpaper Flare.
  • The image picture of the character Sheldon Cooper from The Big Bang Theory and Captain Spock from Star Treck was taken from InfoSeriesTv
  • The sounds were taken from MiXKIT.

About

JavaScript Hackathon

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • HTML 66.5%
  • JavaScript 18.0%
  • CSS 15.5%