RPSLS is a game where you choose one of the following, Rock, Paper, Scissor, Lizar or Spock and the computer randomly chooses one as well. Then if you won you get a score added or if the computer won it gets a score added. The game score goes to 5 and which one reaches it before wins the game.
Welcome to the journey through Rock Paper Scissors Lizar Spock
The wireframes for Restaurant were produced in Figma. There are frames for a full width display. The final site varies slightly from the wireframes due to developments that occured during the creation process.
RPSLS game has two pages. The home page is the default loading page and the Game page
-
The fonts chosen were 'Montserrat' for all fonts in the game. They fall back to sans-serif respectively.
-
The colors are very bright and fun. They were chosen to brighten up the game and give some lightness to it.
RPSLS game is a game for fun. The landing page has the instructions and then you start the game and choose your weapon to combat the computer.
-
- This is the landing page which you start on, it is fully responsive and contains link to the main game page.
-
- This is the main game area, where you choose your weapaon and play against the computer.
-
- Here you can see the game in progress, the layout of game choices and result text.
-
- This is the screen that comes up if you win the game! Here you can see the result and also you can reset the game and try again.
-
* This is the screen that comes up if you lose the game! Here you can see the result and also you can reset the game and try again.
-
- Add audio to gameplay.
- Add animations to the game.
- HTML5 - provides the content and structure for the website.
- CSS - provides the styling.
- JavaScript - provides the function of the game.
- Figma - used to create the wireframes.
- Gitpod - used to deploy the website.
- Github - used to host and edit the website.
The RPSLS game site has be throughly tested. All the code has been run through the W3C html Validator the W3C CSS Validator and JSHint javascript validator. Errors were found. After a fix and retest, no errors were returned.
The HTML validator results for each page are below:
- Home page
- Main game page
The CSS validator results are below:
The JavaScript validator results are below:
Metrics There are 11 functions in this file.
Function with the largest signature take 1 arguments, while the median is 0.
Largest function has 10 statements in it, while the median is 2.
The most complex function has a cyclomatic complexity value of 6 while the median is 2.
- The responsive design tests were carried out manually with Google Chrome DevTools and Responsive Design Checker.
Moto G4 | Galaxy S5 | iPhone 5 | iPad | iPad Pro | Display <1200px | Display >1200px | |
---|---|---|---|---|---|---|---|
Render | pass | pass | pass | pass | pass | pass | pass |
Images | pass | pass | pass | pass | pass | pass | pass |
Links | pass | pass | pass | pass | pass | pass | pass |
Note: On wide display types the contents of the site are restricted in width to 2000px. This helps the UX by not spreading the content too wide on the extra wide screens.
RPSLS game was tested on the following browsers with no visible issues for the user. Google Chrome, Microsoft Edge, Safari and Mozilla Firefox. Appearance, functionality and responsiveness were consistent throughout for a range of device sizes and browsers.
-
-
During validation two bugs became known during the validation stage, a brief description is below:
-
CSS - Wrong attribute for one of the text elements. Fixed.
-
-
- JavaScript warnings in the JShint validator.
The site was deployed to GitHub pages. The steps to deploy a site are as follows:
- In the GitHub repository, navigate to the Settings tab.
- Once in Settings, navigate to the Pages tab on the left hand side.
- Under Source, select the branch to main, then click save.
- 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 to the Github repository can be found here - https://johannes2503.github.io/Project-2-RPSLS/
A copy of the GitHub Repository can be made by forking the GitHub account. This copy can be viewed and changes can be made to the copy without affecting the original repository. Take the following steps to fork the repository;
- Log in to GitHub and locate the repository.
- On the right hand side of the page inline with the repository name is a button called 'Fork', click on the button to create a copy of the original repository in your GitHub Account.
The method from cloning a project from GitHub is below:
- Under the repository’s name, click on the code tab.
- In the Clone with HTTPS section, click on the clipboard icon to copy the given URL.
- In your IDE of choice, open Git Bash.
- Change the current working directory to the location where you want the cloned directory to be made.
- Type git clone, and then paste the URL copied from GitHub.
- Press enter and the local clone will be created.
- The font came from Google Fonts.
- The colour palate was found on Behance.
- The icons came from Font Awesome.
- Figma was used to create the wireframes.
The Game was completed as a Portfolio 2 Project piece for the Full Stack Software Developer (e-Commerce) Diploma at the Code Institute. As such I would like to thank my mentor Precious Ijege, the Slack community, and all at the Code Institute for their help and support. Also want to thank Ewan Colquhoun for the README.md template which this readme is based on.Ewan Colquhoun.
Johannes Hreinsson 2022.