title: Getting ArgumentError: wrong number of arguments (given 0, expected 1)
body: <p>This is my code:</p>
  <pre><code>def random_card
    cards = [&quot;two&quot;, &quot;three&quot;, &quot;four&quot;, &quot;five&quot;, &quot;six&quot;, &quot;seven&quot;,
             &quot;eight&quot;, &quot;nine&quot;, &quot;ten&quot;,
             &quot;jack&quot;, &quot;queen&quot;, &quot;king&quot;, &quot;ace&quot;]
  
    cards[rand(13)]
  end
  
  
  def score(hand_score)
    random_card_numbers = {
      &quot;two&quot; =&gt; 2,
      &quot;three&quot; =&gt; 3,
      &quot;four&quot; =&gt; 4,
      &quot;five&quot; =&gt; 5,
      &quot;six&quot; =&gt; 6,
      &quot;seven&quot; =&gt; 7,
      &quot;eight&quot; =&gt; 8,
      &quot;nine&quot; =&gt; 9,
      &quot;ten&quot; =&gt; 10,
      &quot;jack&quot; =&gt; 10,
      &quot;queen&quot; =&gt; 10,
      &quot;king&quot; =&gt; 10,
      &quot;ace&quot; =&gt; 11
    }
    new_score = 0
    hand_score.each do |x|
       new_score += random_card_numbers[x]
    end
    new_score
  end
  
  def move(hand_score)
    while true do
      puts &quot;Enter hit or stick&quot;  
      user_input = gets.chomp
      if user_input == &quot;hit&quot; 
        hand_score.push(random_card)
        puts &quot;Score so far: #{score(hand_score)}&quot;
      elsif user_input == &quot;stick&quot;
        if score(hand_score) &lt;= 21
          puts&quot;You scored: #{score(hand_score)}&quot;
        elsif score(hand_score) &gt; 21
          puts &quot;You busted with #{score(hand_score)}&quot;
        end
        break
      end
    end
  end
  
  def run_game
    overall = []
    move(overall)
  end
  
  </code></pre>
  <p>I get the following error when I run rspec with with the automated tests.
  The program works fine but is not working with the automated tests. I looked at the parameters of move but dont quite understand why is it failing. I kinda think it is to do with the where I have put the while loops and if statements. If anyone can help it would be much appreciated.</p>
  <pre><code> Failure/Error: expect(move).to eq(&quot;hit&quot;) 
       ArgumentError:
         wrong number of arguments (given 0, expected 1)
       # ./questions/question_1.rb:85:in `move' 
  </code></pre>