After I completed the tutorial in CodeAcademy, I imported the codes into Dreamweaver CS6. I created another choice for the user called "computer". So instead of rock, paper, and scissor, it's rock, paper, scissor, and computer. I know, it's silly, but that was all I can think of... The computer can beat paper and scissors, and is beaten by rocks because of common sense... But I had a issue making the function to load after the page loads, then I realized I needed a function over everything and call that function with a onclick on a button. This not only lets the user decide when to start the game after the page load, they can also click the button to replay the game.
Thursday, November 17, 2016
Lab 5: Rock, Paper, Scissor, and Computer Game
In this lab, we have to create a game similar to the rock, paper, and scissor game kids play. And this game has to be within the webpage. We have to first complete the tutorial of building this "Rock, Paper, Scissors' game from CodeAcademy. CodeAcademy is a really helpful website that can teach you many types of computer languages. It taught me how to create this game with JavaScript from scratch. After we finish the tutorial and got the code, we need to modify the game to prove that we understand how to actually use the code. And we do that by creating a new chose for the user.
After I completed the tutorial in CodeAcademy, I imported the codes into Dreamweaver CS6. I created another choice for the user called "computer". So instead of rock, paper, and scissor, it's rock, paper, scissor, and computer. I know, it's silly, but that was all I can think of... The computer can beat paper and scissors, and is beaten by rocks because of common sense... But I had a issue making the function to load after the page loads, then I realized I needed a function over everything and call that function with a onclick on a button. This not only lets the user decide when to start the game after the page load, they can also click the button to replay the game.
After I completed the tutorial in CodeAcademy, I imported the codes into Dreamweaver CS6. I created another choice for the user called "computer". So instead of rock, paper, and scissor, it's rock, paper, scissor, and computer. I know, it's silly, but that was all I can think of... The computer can beat paper and scissors, and is beaten by rocks because of common sense... But I had a issue making the function to load after the page loads, then I realized I needed a function over everything and call that function with a onclick on a button. This not only lets the user decide when to start the game after the page load, they can also click the button to replay the game.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment