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 'pry' | |
WHITE_BALLS = [*1..69] | |
POWERBALL = [*1..26] | |
NUM_WHITE_BALLS_NEEDED = 5 | |
FIRST_WHITE_BALL = WHITE_BALLS.first | |
LAST_WHITE_BALL = WHITE_BALLS.last | |
FIRST_POWERBALL = POWERBALL.first | |
LAST_POWERBALL = POWERBALL.last |
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 'pry' | |
class Triplet | |
attr_reader :a, :b, :c | |
def initialize(a, b, c) | |
@a = a | |
@b = b | |
@c = c | |
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 'pry' | |
class OCR | |
attr_reader :text | |
def initialize(text) | |
@text = text | |
end | |
def convert |
NewerOlder