title: How do I set a variable as a key when I call my hash value?
body: <p>When the user enters "hit", they are given a random card assigned to a value. I have set the card as key and points as a value in hashes, and every time I try to call it, it does not put anything!</p>
  
  <pre><code>def random_card
    cards = ["two", "three", "four", "five", "six", "seven",
             "eight", "nine", "ten",
             "jack", "queen", "king", "ace"]
  
    cards[rand(13)]
  end
  
  def score
    card_value = {
    two: 2,
    three: 3,
    four: 4,
    five: 5,
    six: 6,
    seven: 7,
    eight: 8,
    nine: 9,
    ten: 10,
    jack: 10,
    queen: 10,
    king: 10,
    ace: 11,
  }
  puts "point #{card_value[:card]}"
  end
  
  def move
    while true
      puts '"hit" or "stick"'
      input = gets.chomp
      if input == "hit"
        puts card = random_card
        score
      end
      break if input == "stick"
    end
  end
  </code></pre>
  
  <p>When the user enters "hit" output should be a random card and the point that is assigned to that card, eg Three points 3</p>