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
#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? *****" |
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
#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 |