Skip to content

Instantly share code, notes, and snippets.

View RyanSnodgrass's full-sized avatar

Ryan Snodgrass RyanSnodgrass

View GitHub Profile
@RyanSnodgrass
RyanSnodgrass / guessing_game.rb
Last active August 29, 2015 13:57
Guessing Game
answer = ["The Iron Yard", "Atlanta Tech Village", "Marietta", "Survivor Bar", "Buckhead"]
puts "Let's play a game"
play_again = "yes"
def parse_letters_and_words
@guess_letters = @guess.split("")
@matched_letters = @current_answer_array & @guess_letters
@guess_words = @guess.split(/ /)
@current_answer_words = @current_answer.downcase.split(/ /)
@matching_words = @guess_words & @current_answer_words
end
def blackjack
base_card = rand(1..10)
next_card = rand(1..10)
puts "your number is #{base_card} and #{next_card}."
puts "continue? Say Yes or No."
answer = gets.chomp.downcase
my_cards = [base_card, next_card]
pers_types = {extrovert: [{type: "PARTY'S LIKE AN ANIMAL"}, {type: "Gets out"}],
introvert: [{type: "Dwells in the basement"}, {type: "Stays at home"}]
}
pers_tally = 0
play_with_friend = 1
@users_hash = Hash.new
def gets_user_info
puts "first, tell me your name"
class Game
attr_reader :horse_graphic, :matz_track, :user_track, :command_explanation
def initialize
@my_horse = Horse.new(true)
@matz = Horse.new
@david = Horse.new
@horse_graphic = %{
(\\(\\_
_.0 o\\\\\\\\
("_ ))))
class Game
attr_reader :horse_graphic
def initialize
@my_horse = Horse.new(true)
@matz = Horse.new
@david = Horse.new
@horse_graphic = %{
(\\(\\_
_.0 o\\\\\\\\
("_ ))))
require 'rspec'
require './horserace.rb'
describe Horse do
let(:horse) {Horse.new}
it 'should exist' do
horse.should_not eq(nil)
end
require 'rspec'
require './horserace.rb'
describe Horse do
let(:horse) {Horse.new}
it 'should exist' do
horse.should_not eq(nil)
end
#take out trash
require 'rspec'
class KitchenCan
attr_reader :k_can
def initialize
@k_can = ["garbage"]
end
end
sorry for party rockin
@RyanSnodgrass
RyanSnodgrass / LiQo_user_stories
Last active August 29, 2015 14:02
LiQo user Stories
Login
=====
### User signs up
1. User goes to root page
2. User taken to splash page
3. User clicks on signup
4. user taken to signup page with same styling as splash page
5. user fills in information (name, email, birthday, password) and hits submit
6. user taken back to splash page