ruby - syntax error, unexpected tOP_ASGN
<p>The following is a portion of my code. Any advice is appreciated.</p>

<pre><code>def how_many_guesses?
  guesses = 0
end

def guess 
  puts "Please type a number between 1 and a 100."
  gets.chomp
end

def correct?
  if guess == guess
    puts "You have already guessed this number, try again!"
    guess
  elsif guess == random_num
    you_are_correct
  elsif guess &gt; correct_num
    puts "Too high!"
    how_many_guesses? += 1
    guess
  else
    puts "Too low!"
    how_many_guesses? += 1
    guess
  end
end
</code></pre>

<p>The error I received was:</p>

<pre><code>syntax error, unexpected tOP_ASGN
    how_many_guesses? += 1
</code></pre>

<p>I don't understand what unexpected tOP_ASGN means. </p>