Rock+Paper+Scissors+part+4

Overview
For the final part of the program you will get the program to display the player and computer scores, and tidy up the way the screen elements appear.

Update Card Script - PlayComputerHand
Add the following lines of code to the bottom of the **PlayComputerHand** procedure.



Update Card Script - on OpenStack
We want to reset the scores and the game when the stack is opened. Add this code to the top of the card script.



Update Card Script - other Procedures
Add the code for the **DisplayScores**, **GetReadyScreen**, **ResultScreen** and **PlayScreen** procedures

Update Rock Paper Scissors Buttons
Finally, you need to make a small change to each of the rock paper and scissors button scripts.

On each button script, delete the line:



and replace it with

Testing
To test that your program works properly, go to the //**View**// menu and choose //**Go Next**//. This takes you to the next card in the stack, it's where all the graphics are stored Now go back to the //**View**// menu and choose //**Go Prev**//. This will take you back to your main card. It also makes the on OpenCard script run, resetting the scores and starting a new game