Sha256: 743efd59498c7cad3728dc8c9f7c3e2fd9de52ed4c3dbe63018230bfc308d894

Contents?: true

Size: 1.66 KB

Versions: 4

Compression:

Stored size: 1.66 KB

Contents

#creating color configurations for the gem tco
conf = Tco.config
conf.names["purple"] = "#622e90"
conf.names["dark-blue"] = "#2d3091"
conf.names["blue"] = "#42cbff"
conf.names["green"] = "#59ff00"
conf.names["yellow"] = "#fdea22"
conf.names["orange"] = "#f37f5a"
conf.names["red"] = "#ff476c"
conf.names["light_purp"] = "#4d5a75"
Tco.reconfigure conf

#supplementing the color configurations into an array constant
COLORS = ["purple", "dark-blue", "blue", "green", "yellow", "orange", "red", "light_purp"]

mtg = <<-EOS
          BB    BB           BBBBBBBBB       BBBBBBBBB
         BBBB  BBBB             BBB        BBBB     BBB
       BBBBBBBBBBBBBB           BBB        BBB
     BBBB    BB    BBBB         BBB        BBB      BBBBBB
    BBB              BBB        BBB        BBBB       BBB
  BBBBBB            BBBBBB      BBB         BBBBBBBBBBB
EOS

card = <<-EOS

    BBBBBBB        BBBB        BBBBBBB      BBBBBBB
   BBB            BB  BB       BB   BBB     BB    BBB
  BBB            BBB  BBB      BB   BBB     BB     BBB
  BBB           BBBBBBBBBB     BBBBBB       BB     BBB
   BBB         BBB     BBBB    BB   BBB     BB    BBB
    BBBBBB    BBB       BBBB   BB    BBB    BBBBBBB
EOS

finder = <<-EOS

   BBBBBBBBBB  BB  BBB      BB  BBBBBBB     BBBBBBB  BBBBBBB
   BB          BB  BB BB    BB  BB    BBB   BB       BB  BBB
   BBBBBBBBB   BB  BB  BB   BB  BB     BBB  BBBBB    BBBBBB
   BB          BB  BB   BB  BB  BB     BBB  BB       BB   BB
   BB          BB  BB    BB BB  BB    BBB   BB       BB    BB
   BB          BB  BB     BBBB  BBBBBBBB    BBBBBBB  BB     BB
EOS

puts ""
print mtg.fg "red"; sleep(1);
print card.fg "orange"; sleep(1);
print finder.fg "yellow"; sleep(1);
puts ""

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mtg-card-finder-0.1.4 lib/mtg_card_finder/color.rb
mtg-card-finder-0.1.3 lib/mtg_card_finder/color.rb
mtg-card-finder-0.1.1 lib/mtg_card_finder/color.rb
mtg-card-finder-0.1.0 lib/mtg_card_finder/color.rb