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.
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
Player's Name Section
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.
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
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 <div align-"center">
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
CSS
Javascript
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 |
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
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.
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.
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.
The UX design was made in balsamiq. See the wireframes here
The live link can be found here - https://caleom.github.io/Hackathon2/
Hover effect on footer uses this guide: Youtube link
The header's font style was taken from Font Space.
The game's section's font style was taken from Google Fonts.
The icons in the game's section were taken from GetEmoji.
The icons in the footer were taken from Font Awesome.
The icons in the header were taken from RPSLS.
The Teacher Probability Plan was self-created.
The National Curriculum KS3 Preference was taken from NCTEM
ChatGPT was also used as a support for the generation and research of resources.
Lesson plan reference 1 [https://math.stackexchange.com/questions/376187/probability-game]
Lesson plan reference 2 [https://medium.com/@neelymann/how-to-java-lizard-spock-f1069952012b]
Lesson plan reference 3 [https://www.naturphilosophie.co.uk/winning-rock-paper-scissors-lizard-spock/]
Lesson plan reference 4 [https://www.reddit.com/r/theydidthemath/comments/vp21x6/request_rock_paper_scissors_lizard_spock/]
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.