This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def do_i_win my_choice, your_choice | |
if my_choice == 'rock' and your_choice == 'scissors' | |
return true | |
elsif my_choice == 'paper' and your_choice == 'rock' | |
return true | |
elsif my_choice == 'scissors' and your_choice == 'paper' | |
return true | |
end | |
return false | |
end |