This file contains hidden or 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
| 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 |
This file contains hidden or 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 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] |
This file contains hidden or 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
| 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" |
This file contains hidden or 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
| 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\\\\\\\\ | |
| ("_ )))) |
This file contains hidden or 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
| class Game | |
| attr_reader :horse_graphic | |
| def initialize | |
| @my_horse = Horse.new(true) | |
| @matz = Horse.new | |
| @david = Horse.new | |
| @horse_graphic = %{ | |
| (\\(\\_ | |
| _.0 o\\\\\\\\ | |
| ("_ )))) |
This file contains hidden or 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
| require 'rspec' | |
| require './horserace.rb' | |
| describe Horse do | |
| let(:horse) {Horse.new} | |
| it 'should exist' do | |
| horse.should_not eq(nil) | |
| end | |
This file contains hidden or 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
| require 'rspec' | |
| require './horserace.rb' | |
| describe Horse do | |
| let(:horse) {Horse.new} | |
| it 'should exist' do | |
| horse.should_not eq(nil) | |
| end | |
This file contains hidden or 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
| #take out trash | |
| require 'rspec' | |
| class KitchenCan | |
| attr_reader :k_can | |
| def initialize | |
| @k_can = ["garbage"] | |
| end | |
| end |
This file contains hidden or 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
| sorry for party rockin |
This file contains hidden or 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
| 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 |
OlderNewer