II. Rock Paper Scissors

This game was initially brainstormed to be a simple ask for input variables and than use a for loop to compare responsesĀ  to see who would win. After the initial code was written it was tested, and did not work. The for loop was bugged because the conditions were set wrong and it had to be adjusted. The program was tested by just assigning set values to the variables it had to compare. After getting the for loop to work consistently, the program was adjusted to have the program ask for the variables. This was a simple adjustment andĀ  went well with no bugs. After this a couple lines of coding were added to the for loop so that it would display an image depending on if you won, lose, or tied. After considering keeping this it was determined it would be difficult to transfer the images from computer to computer with exact names of files. Finally the while loop was added to keep the function running until the player decides to quit. This took quite a bit of testing because I couldn’t implement it effectively and had me stumped. It turned out to be an easy fix of setting the resume variable to one to start so the program would actually run.