Rock-paper-scissors: Difference between revisions

m
(Added tiny Minimal BASIC program)
Line 1,252:
end
end
print "H: #{answer}, "
answer
end
Line 1,268 ⟶ 1,267:
end
end
choice = @beats[humans_choice]
print "C: #{choice} => "
choice
end
 
Line 1,277 ⟶ 1,274:
h = humanPlay
c = computerPlay
print "H: #{answerh}, C: #{c} => "
 
# only update the human player's history after the computer has chosen
Anonymous user