Question: I need the code for this game using HTML, CSS and java script 1. Make a folder named firstname-lastname-a1 2. Create a simple Rock-Paper-Scissor game.

I need the code for this game using HTML, CSS and java script

1. Make a folder named firstname-lastname-a1

2. Create a simple Rock-Paper-Scissor game.

3. Make two HTML files and save them with the names index.html and rock.html within the firstname-lastname-a1 folder.

4. The

tag should read: Assignment 1 for .

5. Display the following information in

tag as heading in the index.html page:

Web Programming

Your FirstName Last Name

6. Add a

tag before and after the above heading.

7. After the

tag, display the game instructions on how to play the game.

8. Add a start button or link that navigates the user to rock.html

9. On the rock.html file, implement the game using JavaScript.

10. Ask the user to choose their move using a prompt() dialog box.

  1. Get inputs for users turn. For e.g. R for Rock, P for Paper, S for Scissor.

  2. Keep asking the user their move if the user enters some invalid input.

11. Then the computer chooses its move randomly and is displayed in an alert() dialog box.

12. The result is displayed on the screen using alert() dialog box.

13. The user should be asked using a confirm() dialog box if they want to play again, and a running score should be kept.

14. If the user selects not to continue, display the final score of the user and the computer, and the winner using alert() dialog box.

15. Add an Exit button or link on rock.html that navigates the user back to index.html.

16. Add CSS.

Sample Run: should look like this below need the code I need the code for this game using HTML, CSS and

AutoSave AR- Assignment-1 Home Draw Design Layout References Mailings Review View RCM Acrobat Tell me Share Comments Calibr (Bo... 11 Adv ++ RE AaBbc abled AaBb CDI Acta Aaben Pauli 17 += Na Na Hu e Batu Bb XX Pusat EINAS SIA Saly Creais end share linux Sylures Sample Run: Dialog Box Prompt Button Clicked Input Rand OK dicked Alert OK Confirm Prompt OK Input P and OK clicked Alert OK Message Press R for ROCK Press P for PAPER Press Sfor SCISSOR You picked ROCK. Computer picked SCISSOR. You win You: 1 Computer: 0 Do you want to play again? Press R for ROCK Press P for PAPER Press Sfor SCISSOR You picked PAPER. Computer picked ROCK. You win. You: 2 Computer: 0 Do you want to play again? Press 1 for ROCK Press 2 for PAPER Press 3 for SCISSOR You picked ROCK. Computer picked ROCK It's a tie. You: 2 Computer: 0 Do you want to play again? Final score You: 2 2 Computer: 0 You win!! Confirm Prompt OK Input Rand OK dicked Nert OK Confirm Alert Cancel OK Submission: 1. You are to submit 3 files, separately a. Upload the .ZIP Ale of your assignment b. Upload two.TXT files to SLATE. 2. Zip and upload the contents of your entire assignment folder to the homework 3. You must copy and paste all of your source code from your HTML and JavaScript files into plain text files. a. You can copy and paste the source codes into Notepad. Page 2 of 2 520 words LE English Canada Focus 503

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!