Skip to content
← Back to Community
Creating a scoring system in Pygame - Adding points
Profile icon
UmarQureshi4

Hello Repl.it community,

I am creating a game for my manga comic franchise Rebound Ready, which combines basketball and Pokémon. I have created a scoring system, but every time I run the program, it shows that the variable points has already got a value of 3 when the player hasn't received any points.

How can I make it so that the variable points isn't preset to 3?

Voters
Profile icon
UmarQureshi4
Comments
hotnewtop
Profile icon
Spacecraft

It defaults to 3 points because those are the conditions you've set it at. You set points=0 on line 308, but then immediately change it to 3 in the IF statement on lines 311 and 312. blRecOri is set to 0 on line 300:

blRecOri=0

Then you use an IF statement on lines 311, 312 to change points to 3 if blRecOri meets the conditions. Since 0 passes both conditions in the IF statement, it passes:

if blRecOri >= 0 and blRecOri <= 45: points+=3

If you don't want to have points immediately changed to 3, you'll need to change the conditions of your IF statement so it doesn't include 0:

if blRecOri > 0 and blRecOri <= 45:
Profile icon
UmarQureshi4

@Spacecraft How would I accomplish that?

Profile icon
Gekot

Often, beginners do not trust the casino, fearing for their own funds. This leads to the fact that the player deposits small amounts, often not being able to win back a small loss, and also concentrates not on the game, but on whether the casino will cheat him or not. But it is better to immediately choose a casino and explore possible ways to withdraw money. You can find such information on the site https://wildjokercasino-au.com/promotions/ this data will help you better navigate payment transactions and the conditions for crediting funds and payouts.

Profile icon
Gekot

Truly great painting! Hat is off to you: good:
By the way, this picture reminds me of how I often play at https://slotsjudge.com/online-casinos/best-paying-casinos/
Yes, of course, I play it on the Internet, and not in real life in a casino, but all the same, the sensations remain the same