RPS - 70 IF C = 2 AND X = 2 THEN PRINT "YOU...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 LIST 1 REM MATTHEW HEELAN COACH SECTION D1 5/08/07 2 REM 3 ROCK PAPER SCISSORS WITH COMPUTER 10 INPUT " ENTER 1 FOR ROCK, 2 FOR SCISSORS, 3 FOR PAPER" X 20 LET C = INT(3*RND+1) 30 IF C = 1 AND X = 2 THEN PRINT "YOU LOOSE" 40 IF C = 1 AND X = 1 THEN PRINT "YOU TIED" 50 IF C = 1 AND X = 3 THEN PRINT "YOU WIN" 60 IF C = 2 AND X = 1 THEN PRINT "YOU WIN"
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 70 IF C = 2 AND X = 2 THEN PRINT "YOU TIED" 80 IF C = 2 AND X = 3 THEN PRINT "YOU LOOSE" 90 IF C = 3 AND X = 1 THEN PRINT "YOU WIN" 100 IF C = 3 AND X = 2 THEN PRINT "YOU LOOSE" 110 IF C = 3 AND X = 3 THEN PRINT "YOU TIED" 120 END Ok RUN ENTER 1 FOR ROCK, 2 FOR SCISSORS, 3 FOR PAPER? 1 YOU WIN Ok...
View Full Document

Ask a homework question - tutors are online