- Overview This Lab We Will Begin To See A Bit More About How Scripts And Directly Interact Again It Should Be Emphasiz 1 (96.4 KiB) Viewed 18 times
Overview this lab, we will begin to see a bit more about how scripts and directly interact. Again, it should be emphasiz
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Overview this lab, we will begin to see a bit more about how scripts and directly interact. Again, it should be emphasiz
Overview this lab, we will begin to see a bit more about how scripts and directly interact. Again, it should be emphasized that this exercises are not about teaching "web design" or "web programming" in general; instead we are just using the browser as a "platform" for our actual scripts... and that the creation and execution of these scripts requires no tools above and beyond what you likely already have installed on any machine... a web browser and a text editor. Objective Create a simple "Rock, Scissors, Paper, Lizard, Spock" game in a web page where YOU play against the computer for a given number of rounds (specified by you). See: Rock Paper Scissors Spock Lizard - Sam Kass Instructions Video unavailable This video is private 1. Create a "web page" with the following components: An input field for the "number of rounds to play" • The "number of remaining" rounds should also be displayed somewhere on the screen. A button to "Start" the game play. The function attached to this button can "setup" the rest of the game. ■ For example: initialize counters, show/hide other components, etc. A set of buttons for the player choose their play: Rock • Scissors Paper 。 Lizard Spock - An output field where the computer displays it's play. (Same set as above) An output field which displays the result of the current round: For example: Computer won with rock breaking scissors. 2. The game should end when the number of rounds specified at the beginning have been played. The "overall winner" should be displayed. o For example: Human wins after winning 3 of 5 rounds.