Skip to content

Instantly share code, notes, and snippets.

@galbrecht18
galbrecht18 / L1_RPS.rb
Last active September 3, 2015 00:45
Gist for Lesson One Rock, Paper, Scissors application.
#Lesson One Rock Paper Scissors App
#Created by George Albrecht
#9-1-2015
#Updated Version
require 'pry'
CHOICES = {'r' => 'Rock', 'p' => 'Paper', 's' => 'Scissors'}
puts "***** Welcome to Rock, Paper, Scissors! Can you beat the computer? *****"
#Lesson One Calculator Application
#Created by George Albrecht
#8-30-2015
#Working. Need to determine how to figure out if user is entering garbage data (strings not numbers). Maybe Regex?
#Also need to put in a rescue for divide by 0 error.
#Require pry for debugging
require 'pry'
#Method to get user input