I'm making a small game in which you can choose the amount of points needed for victory. You play until either cpu_point or player_point is equal to (or greater than) the rounds. You get one point per win.
What I'm having trouble with is the while check. I'd like to shorten the code by using "or". Either I've completely misunderstood the use of "or" in Python, or my syntax is wrong.
Neither
while rounds > player_point or cpu_point:
nor
while rounds > player_point or rounds > cpu_point:
gives me the desired effect.
The former just keeps playing endlessly, while the latter is acting like an "AND", meaning that both cpu_point and player_point have to reach the mark before the game ends.
The solution is probably really obvious to seasoned programmers, but I'm still learning the basics.
Thanks for reading.