In the lines where you do
guesses - 1
you decrement the value of guesses
by 1 but you are not assigning the result to a variable. What you need to do is:
guesses = guesses - 1
There is also a shorter way to write the same thing:
guesses -= 1
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…