holamendi
8/9/2017 - 9:26 AM

Ruby script for bank coordinate cards

Ruby script for bank coordinate cards

#!/usr/bin/ruby

# 1. Replace 00 with the numbers on your card
# 2. Run the script: card a1 f2 j5
# 3. Profit

CARD = { 
  a: %w(00 00 00 00 00),
  b: %w(00 00 00 00 00),
  c: %w(00 00 00 00 00),
  d: %w(00 00 00 00 00),
  e: %w(00 00 00 00 00),
  f: %w(00 00 00 00 00),
  g: %w(00 00 00 00 00),
  h: %w(00 00 00 00 00),
  i: %w(00 00 00 00 00),
  j: %w(00 00 00 00 00)
}

puts ARGV.map{ |a| CARD[a[0].to_sym][a[1].to_i - 1] }.join(' ')