Skip to content
Sign upLog in
← Back to Community
Three Ways
Profile icon
Equation

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 ;)

Voters
Profile icon
hakkanliker69
Profile icon
Jacog28
Profile icon
h00p
Profile icon
DanielKubik
Profile icon
BobTheTomatoPie
Profile icon
noquinn
Profile icon
phantomlord45
Profile icon
ShouyuDu1
Profile icon
TheOceanFace
Profile icon
TimothyChen
Comments
hotnewtop
Profile icon
philippineDESTR

I love this game! It's brilliant!!

Profile icon
[deleted]

This is a really good game!

Profile icon
AmeliaBlackwell

this is really good, made it to 62! maybe add a "press enter to run" text on the starting page so stupid people like me don't try and click the run button because they didn't read the post properly haha

Profile icon
Equation

@AmeliaBlackwell
Nice score ! You're right, I'm gonna add this message, it's a good idea. Thanks for playing, I hope you enjoyed my game !
PS : I'll try your fishing game, it looks very fun ;)

Profile icon
AmeliaBlackwell

@Equation
hahaha, thank you!! hope you enjoy :)

Profile icon
Ov3R10rd

@AmeliaBlackwell
I made it to 63!

Profile icon
lsambrook

omg how can this game not be famous ? the creator is a genious !!

Profile icon
lsambrook

best game ever

Profile icon
JohnnyWobble

This is so addicting

Profile icon
DudaYa

cool, really cool
which language was used?

Profile icon
Equation

@DudaYa
Thanks !
It's in Javascript, html and a little CSS.

Profile icon
dleboulaire

@Equation
Do u know how to create on graphic interface on Python ? Because I am also creating a game ( an RPG game more precisely ) but I really don't know how to open a new tab with it... Can you give some advices ?

Profile icon
EmilienBUSSON1

@dleboulaire

To open the console in a new tab, you shall press the button with an arrow in a square, "open in a new tab".
To create a graphic interface with the python language, I have the regret to say to you that it's impossible... You may use Javascript, CSS and HTML. If you want to learn these languages, there are many tutos and videos on Youtube.

Profile icon
dleboulaire

@EmilienBUSSON1
Ok thanks for your advice ; I am going now on ytb !

Profile icon
MatthewStirling

@Equation
Cool game! Quick question: how did you get the game to show in one screen? I'm also working in JS, but my game shows the code as well. How do I get mine to do what you're doing? Thanks!

Profile icon
Equation

@MatthewStirling
Thanks ! To show only the result and not the code in a post, you have to put the url of the result (the url of the game when you open it in a new tab) as the post's repl. You can upvote if you enjoyed the game !

Profile icon
MatthewStirling

@Equation
You have my upvote. Many thanks!

Profile icon
argthe1st

@dleboulaire
You have to use a third party module such as Tkinter or Pygame

Profile icon
dleboulaire

@argthe1st
Thanks ; ) !

Profile icon
Murzikal

@dleboulaire
its not impossible, just use tkinter or pygame

Profile icon
dleboulaire

@Murzikal
I try pygame and my game is working ! ; ) Thanks !

Profile icon
Murzikal

@dleboulaire
np dude

Profile icon
Suparn

My winning strategy is to always stay in the middle. Great game!! My high score is 152 btw

Profile icon
Equation

@Suparn
Thanks ! Nice score, try to beat mine (1200 :)

Profile icon
[deleted]

Wont work. Play button wont make it run

Profile icon
Equation

@RoylatGnail
Press enter to start the game

Profile icon
dleboulaire

@RoylatGnail
Yes you don't have to click on "Run", it's more simple : press enter and your beautiful game will restart. : )

Profile icon
SakuraKimiko

Hello, I did not get a chance to play your game but I'll try it later. Could you help me with my code.
I am a complete beginner (a baby in programming or python world)
my code is as follows

import random
random.randint(20,100)
age=int(input("What is your age:"))
agegap=int(random.randint(20,100))
print (agegap)
while True:
if age>agegap:
print("You are older")

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

else:
print("You are younger")
after it prints you are younger, same age or older I want it to ask the question again. How would I do that? I 've tried adding while true: but loops the answer in an infinite loop. I want it to give the answer once and ask the question again.

Could you help me with it

thank you

Sakura

Profile icon
Equation

@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 :
age=int(input("What is your age:"))
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 : age=int(input("What is your age:")) //

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 ;)

Profile icon
JohnnyWobble

@SakuraKimiko
what is wrong with this?

import random random.randint(20,100) agegap=int(random.randint(20,100)) print (agegap) while True: age=int(input("What is your age:")) while True: if age>agegap: print("You are older") break elif age==agegap: print ("You are of the same age") break else: print("You are younger") break
Profile icon
CalsonLee

@JohnnyWobble
The nested while loop is unnecessary. You could use try/except to try doing int(input("What is your age:")). Then, if the user enters something like "end", there will be an error which will trigger the except. In the except, put break. If you're confused, try looking through the documentation.

Profile icon
SakuraKimiko

@CalsonLee
Thank you for your help, do you have any websites you can recommend, I am currently learning from udemy

Profile icon
SakuraKimiko

@Equation
Hello sorry for the late reply but thank you so much for your help in this equation, is this all python or are we adding some other coding language,
I really want to become good in python because I want to do something in data analysis and I think it uses either r or python.
I could really use you help just like this. Thank you

Profile icon
Equation

@SakuraKimiko
No problem ! To learn more about programming in python or in other langage, there are many lessons on YouTube, and I know a site, https://openclassrooms.com : it's a very good site to learn coding, and it's free. I learn JavaScript here. Thanks for playing, and if you have more question, you can ask me :)

Profile icon
SakuraKimiko

@Equation
Hello again I need your help with this code

memberlist=[]
print ("******Welcome to mymailbox.com *****")

asking whether they would like to sign up or already a user

alreadymember=input("Are you a member?:").lower()

while True:
if alreadymember=="Yes" or alreadymember=="YES" or alreadymember=="yes" or alreadymember=="y" or alreadymember=="Y":
print("Welcome, Please login")

elif alreadymember=="No" or alreadymember=="NO" or alreadymember=="no" or alreadymember=="n" or alreadymember=="N":
signup=input("Would you like to signup?:").lower().upper()

member=input("Enter your user name:").strip().title()

if member in memberlist:
print("Welcome", (member))

else:
print ("member not found")

signup=input("Would you like to signup?:").lower().upper()

if signup=="yes"or signup=="YES" or signup=="yes" or signup=="y" or signup=="Y":
print("Kindly fill out the following form")

First_name=input("Enter Your first name:") Second_name=input("Enter Your last name:") Age=int(input("Enter Your age:")) Occupation=("What is your occupation:") Username=input("Enter your username:") memberlist.append(First_name) print("Welcome to the Team",(First_name))

elif signup=="No"or signup=="NO" or signup=="no" or signup=="N" or signup=="n":

print("Enjoy browsing mymailbox.com, Hope you change your mind and join our team")

print(memberlist)

there are a few problems with it they are as follows

when I say I don't want to signup it shows "enter your username" where as I want it to say "Enjoy browsing mymailbox.com, Hope you change your mind and join our team" (as I have mentioned at the end of the print)

It doesn't add the name in the list. I have given the command to print the name once added in the list, but when I enter the name again (in the same process) it says member not found. e.g. if i say i want to sign up and fill the form with the name nancy etc it shows the name nancy and it asks again enter your user name when I enter the name nancy again it says member not found.

I will appreciate your help, I have been wracking my brains on it for about a week now

Thank you in advance :)

Profile icon
Equation

@SakuraKimiko
Could you send me your repl's link, so that I could look it more precisly ?

Profile icon
SakuraKimiko

@Equation
..

https://repl.it/@SakuraKimiko/dictionaries

if this doesnt work I am copying the code once more

memberlist=[]
print ("******Welcome to mymailbox.com *****")

asking whether they would like to sign up or already a user

alreadymember=input("Are you a member?:").lower()

while True:
if alreadymember=="Yes" or alreadymember=="YES" or alreadymember=="yes" or alreadymember=="y" or alreadymember=="Y":
print("Welcome, Please login")

elif alreadymember=="No" or alreadymember=="NO" or alreadymember=="no" or alreadymember=="n" or alreadymember=="N":
signup=input("Would you like to signup?:").lower().upper()

member=input("Enter your user name:").strip().title()

if member in memberlist:
print("Welcome", (member))

else:
print ("member not found")

signup=input("Would you like to signup?:").lower().upper()

if signup=="yes"or signup=="YES" or signup=="yes" or signup=="y" or signup=="Y":
print("Kindly fill out the following form")

First_name=input("Enter Your first name:") Second_name=input("Enter Your last name:") Age=int(input("Enter Your age:")) Occupation=("What is your occupation:") Username=input("Enter your username:") memberlist.append(First_name) print("Welcome to the Team",(First_name))

elif signup=="No"or signup=="NO" or signup=="no" or signup=="N" or signup=="n":

print("Enjoy browsing mymailbox.com, Hope you change your mind and join our team")

print(memberlist)

I had added the print(memberlist) at the end because I wanted to see whether it is accepting the name or not, when you run it again in the same process, you'll notice it will show the name e.g nancy but when you'll enter the name nancy again it 'll say member not found.
Secondly if we say we don't want to signup it should say
Enjoy browsing mymailbox.com, Hope you change your mind and join our team
rather it says enter user name
Thank you again for your time :>

Profile icon
emilienBUSSON

Please, set an arrow-move system ! It's so no-intuitive to move with "k", "l" et "m" ! Moreover, it seems to be the initials of the national air flight company of the Netherlands... KLM
;-)

Profile icon
Equation

@emilienBUSSON
That's done !

Profile icon
emilienBUSSON

@Equation
Great !
Now, why don't put an option screen to konw more about the commands, the controls, maybe about you, the version of the game, the choice of colours...
I know that it's quite hard to set up a system like that, but I hope it will be soon "incoroporé" in this marvellous game !
Thanks
Distingued salutations

Profile icon
dleboulaire

I love your game !!!!! XD It's so goooooooood !!!!! It's better than fortnite LOL ! My best record is 316 ! Who can beat it ?

Profile icon
Pythonier

Wow! This game is awesome!

Profile icon
Equation

@Pythonier
Thank you !

Profile icon
[deleted]

Great game, and I know how to fix the oversized screen.
Just add this in your canvas initialization:

canvas.style.width = "100%";
canvas.style.height = canvas.style.width / 2;

Everything in your game will be unaffected. Those 2 lines I accidentally discovered downsize or upsize your canvas to the exact size of the screen/box it's in. But THE PIXELS STAY THE SAME! I used this for my game (submitted at https://repl.it/talk/challenge/Space-Runner/12625), and I don't have to worry about the size of the canvas at all. My code always thinks that it's 4000 by 2000 pixels.

(also please check out my game no one's even commented on it)

Profile icon
Equation

@GameMaster1928
Thanks for your help, I'm going to see your game :)

Profile icon
SakuraKimiko

You should totally make this game for mobile version,great work loved it

Profile icon
Equation

@SakuraKimiko
yes, it could be fun, but I have to learn how to make it as an app. Thanks for playing !

Profile icon
mdjb4

so good. You have my upvote without a doubt! Amazing graphics and Je suis aussi de France!

Profile icon
Equation

@mdjb4
Thank you ! Merci du soutien la team France !

Profile icon
mdjb4

@Equation
Allez les bleus!

Profile icon
manonDUFRAISSE

This game is life changing !! Love it !

Profile icon
GOEZDAVE

I like that it is a simple but hard game.

Profile icon
ThomasLairy

It's an amazing game !
You should sell him to a company

Profile icon
Sparkster

I did it still didn’t work

Profile icon
Equation

@Sparkster
I'm working on it.

Profile icon
Sparkster
Profile icon
Sparkster

You need to size the game down because i cant play it

Profile icon
Equation

@Sparkster
it should be better like that. Open it in a new tab to improve your game experience :)

Profile icon
kingdracorex

too addicting!!!

Profile icon
kingdracorex

23!

Profile icon
kingdracorex

15!

Profile icon
GeumjuKim

51 this is rly fun
rhymes kinda
one,fun.

Profile icon
[deleted]

OMG I LUV THIS <3

Profile icon
thenullified

record 65 and counting

Profile icon
noodles37

Record 64

Profile icon
noodles37

Awesome Game!

Profile icon
cerbers

ce jeu est tellement bien
pourrais tu rajouter un highscores juste pour le fun et pouvoir se comparer avec des amis