Created
August 9, 2017 09:26
-
-
Save holamendi/40b2edd30cecfcd879157778e1081ccf to your computer and use it in GitHub Desktop.
Ruby script for bank coordinate cards
This file contains 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
#!/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(' ') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment