I'm trying to make a random Guess the Number game with a simple points system. The thing is I'm going through the code again and again and I don't see what the problem is. The thing is the computer always says I'm wrong, I never win and I even tried using random.randint(1,2) but nothing. I usually have bad luck but I'm pretty sure it's the code not working.
import random
print("Guess the number from 1 to 10")
while True:
number = random.randint(1, 2)
number = int(number)
guess = input("Enter number: ")
points = 0
if number == guess:
print("You guessed right!")
points += 1
else:
print("Sorry, wrong guess")
print("You have: " + str(points) + " points.")
print("Wanna try again? ")
tryagain = input("Y or N: ")
if tryagain == "Y" or "y":
continue
else:
break