As if diversity wasn't enough a problem.
Git's default master branch
uppers = "A".."Z" | |
lowers = "a".."z" | |
letters = uppers.to_a + lowers.to_a | |
numbers = ("0".."9") | |
#### | |
## 1st question | |
#### | |
all_letters = false |
class SharkTank | |
attr_reader :sharks, :entrepreneur | |
def initialize | |
@sharks = [] | |
end | |
def add_shark(shark) | |
@sharks << shark | |
end |
class Batman | |
def intro | |
puts "*"*80 | |
puts "Welcome to Batman: Arkham Asylum" | |
puts "*"*80 | |
end | |
def ask_question(question, options) | |
puts "*"*80, question, "*"*80 |
As if diversity wasn't enough a problem.
Git's default master branch
puts "Shawty what yo name is?" | |
n = gets.chomp.split(" ").join("") | |
l = n.length | |
puts "No it ain't. It's #{n[0]}#{l-2}#{n[l-1]}" |
class Survivor | |
attr_accessor :contestants, :teams | |
def initialize | |
@contestants = [] | |
@teams = [] | |
end | |
# return the losing team | |
def challenge |