Three Ways

Hello !
This is my three ways game. You can move the ball with k, l, and m or arrows. Press enter to play and retry. It's better to play in a new tab. I hope you will enjoy it.
I'm still working on it, so it's not finished. I will add a system to change the size of the game on the screen, change the menu screen, and add a config to move with the arrows. You can tell me if you find bugs or things to improve.
If the screen is oversized, you can go to this link :
https://three-ways--equation.repl.co/
You enjoyed the game ? Don't forget to upvote !
Now available : gold rush ! Go on the paddle to earn gold !
Have fun !
(Sorry for my bad English, this game comes from France ;)

You are viewing a single comment. View All
Equation (195)

@SakuraKimiko hello !
You can add a system of parts in your code, like that :

import random
random.randint(20,100)
agegap=int(random.randint(20,100))
print (agegap)
myBolleanValue == True

step = 1

while myBolleanValue == True:
if step == 1 :
if age>agegap:
print("You are older")
step ++

``````              elif age==agegap:
print ("You are of the same age")
step ++

else:
print("You are younger")
step ++
elif step == 2 :
//``````

First, add a boolean variable as condition to your loop. Like that, if you want to stop it, you just have to write myBooleanValue = False in your code.
Second, a step system will ask the question to the user, analyse the answer (older or younger) and go to step 2. In step 2, you write that the variable value is "age" equal to the user answer, so it will ask the user a second time.

I hope it will be useful. If you have more question, you can ask me.

(don't forget to vote ;)