RosettaCodeData/Task/Rock-paper-scissors/Rascal/rock-paper-scissors-2.rascal
Ingy döt Net b83f433714 tasks a-s
2013-04-10 23:57:08 -07:00

29 lines
621 B
Text

rascal>RPS("Rock")
str: "Computer played Rock. Nobody wins!"
rascal>RPS("Rock")
str: "Computer played Rock. Nobody wins!"
rascal>RPS("Rock")
str: "Computer played Scissors. Rock wins!"
rascal>RPS("Rock")
str: "Computer played Paper. Paper wins!"
rascal>RPS("Rock")
str: "Computer played Paper. Paper wins!"
rascal>RPS("Rock")
str: "Computer played Paper. Paper wins!"
rascal>RPS("Rock")
str: "Computer played Paper. Paper wins!"
rascal>RPS("Rock")
str: "Computer played Rock. Nobody wins!"
rascal>RPS("Rock")
str: "Computer played Paper. Paper wins!"
rascal>RPS("Rock")
str: "Computer played Paper. Paper wins!"