Skip to content

Instantly share code, notes, and snippets.

View sarahzrf's full-sized avatar

sarahzrf sarahzrf

View GitHub Profile
class Deck
RANKS = %w(2 3 4 5 6 7 8 9 10 J Q K A)
SUITS = %w(s h c d)
def initialize
@cards = RANKS.product(SUITS).map {|r, s| {rank: r, suit: s}}
end
end
Array.new(2) { |i|
Thread.new do
binding.pry_remote("localhost", 6000 + i)
end
}.each(&:join)