Skip to content
← Back to Community
Pong!
Profile icon
PattanAhmed

Pong!

Hi everyone!
This is basically just a pong game from the coding world.

How to play:-
Just simple.

Try to move two paddles so that it cannot give the opponent point if you miss the ball.

Keys:-
"W" is for moving the left paddle up.
"S" is for moving the left paddle down.
Up key is for moving the Right paddle up
Down key is for moving the Right paddle down.

And the score thing?
You will find it out in the game.

PS:- It's a bit laggy while playing this game in the Repl but we don't have any alternate for it as of now. I hope the run domain will be back soon for a better experience.

And the other thing is that, It is very beginner-friendly.
You can follow up along with the commented code.
Fork it out and try to make some differences.

Leave out your best score here in the comments.
Bye!!

All credit goes to this tutorial

Check it out if you want

This post has been locked
Voters
Profile icon
DeiGet
Profile icon
chillcafe
Profile icon
CharleSaysJr
Profile icon
SIDARTHGAZULA
Profile icon
noemark
Profile icon
MichaelZackiusS
Profile icon
ThatOneGuy1234
Profile icon
OLASUBOMIETHANE
Profile icon
KarthikChezz27
Profile icon
Gavin9
Comments
hotnewtop
Profile icon
CodingCactus

hi @programmeruser you reported this for plagiarising a tutorial, please provide the tutorial from which this is apparently copied

Profile icon
programmeruser

@CodingCactus @PattanAhmed admitted that he copied it from a tutorial in a comment below:

  1. Did I did any kind of upvote farming?
  1. Yeah, I did follow the exact tutorial, but is there any kind of rule that says "No tutorial code is allowed to share on Repl.it Share?"
  2. Having 0 cycle accounts never mean that I made many alt accounts.
  3. Ok.
Profile icon
CodingCactus

@programmeruser oh ok, well @PattanAhmed I'll give you 24hrs to edit a credit to the original maker : )

Profile icon
PattanAhmed

@CodingCactus What credit to the original maker.
and why should I?

Profile icon
CodingCactus

@PattanAhmed if you got it from a youtube video, then you credit that video, otherwise that is plagiarism which is illegal...

Profile icon
Codemonkey51
@CodingCactus technically there is public domain

Reeee @PattanAhmed dont steal ppls code and post it, claiming it as your own

Profile icon
PattanAhmed
Profile icon
PattanAhmed
Profile icon
PattanAhmed

@CodingCactus Just give me some time....
GG

Profile icon
RayhanADev

@CodingCactus wait reports aren’t anonymous!!?! Me no like...

Profile icon
xxpertHacker

@RayhanADev Oh wait... all of those people I reported...

Profile icon
RayhanADev

@xxpertHacker haha, I certainly feel invaded too. Reporting should be anonymous.

Profile icon
xxpertHacker

@RayhanADev You know what, I thought it was too... but, it doesn't explicitly say that anywhere, so I guess it was just an assumption. Don't know why I would've ever thought that it was.

Maybe it's just so common for reports to be anonymous online today?

Profile icon
xxpertHacker

@RayhanADev Also, they made it obvious for you at Repls like:
https://repl.it/talk/templates/SLICED-404-LANDING-PAGE/60118

Profile icon
RayhanADev

@xxpertHacker hahahaha

Profile icon
CodingCactus

@RayhanADev i'm very confused why you feel that reporting should be anonymous

Profile icon
RayhanADev

@CodingCactus it’s just the general norm of the internet nowadays. I just assumed it would be like that on Repl too ƪ(˘⌣˘)ʃ

Profile icon
TheDrone7

@RayhanADev reports aren't anonymous so we can reach out to the reporter for further info in case of a not well-formed report or in case of missing information.

Profile icon
RayhanADev

@TheDrone7 which I do understand, and I don’t disagree with why you do it. I just didn’t expect it and was surprised to hear it is all.

Profile icon
RayhanADev

@TheDrone7 also, here you go! :D

Profile icon
TheDrone7

@RayhanADev CSS tip: remove the outline from the active button and use cursor: pointer; when hovered over it.
image

Profile icon
RayhanADev

@TheDrone7 huh, didn’t realize that (iPad’s are weird) but thanks!

Profile icon
TheDrone7

True devs say no to Apple

Profile icon
PattanAhmed

@TheDrone7 lmao, I am trying to get an Apple for my dev.

Profile icon
realTronsi

@PattanAhmed not cool, credit the original or take this post down

Profile icon
realTronsi

@PattanAhmed I don't see it, you have to credit it in the post, and make sure it's not just some tiny footer you hide at the bottom of the post.

Cycle farming from other people's projects is already unethical to say the least, crediting is the least you can do

Profile icon
PattanAhmed

@realTronsi Bruh, check Comments.
No need to credit them in the post.

That's it.
Bye!

Profile icon
realTronsi

@PattanAhmed Hi, I will kindly ask again to credit the owner in the post as otherwise this is plagiarism. Crediting in comments does not cut it, since you obviously know it will be pushed down by the dozens of other comments, just like how youtubers don't credit the music in the comment section. Please clearly credit the original project in your post or take it down as this is already against the ToS

Profile icon
PattanAhmed

@CodingCactus Isn't that enough....

Profile icon
CodingCactus

@PattanAhmed nope, I've put it in the post for you.

Profile icon
PattanAhmed

@CodingCactus Bruh, I didn't copied all the code from there.
I have to built a lot after that myself.

All the credit don't go there.

Profile icon
RayhanADev

@PattanAhmed okay, well you still based parts of it off the video and thus you need to credit it. What you’re doing is like stealing the Google Homepage and writing an entire backend search engine yourself. You wrote most of the code, but you still used other people’s information.

@realTronsi was that a good analogy?

Profile icon
PattanAhmed

@RayhanADev Bruh, It's Done!
Check the post.

Profile icon
TysonBoring

@CodingCactus You are wrong, he is not using this for commercial purpose. Additionly all code published through repl.it is open source.

Profile icon
CodingCactus

@TysonBoring where have I said that they have used it for commercial purpose? Also the code he copied from is not off repl.it so that point is also invalid

Profile icon
TysonBoring

@CodingCactus That means he is not legally passing it off as his own due to the content lacking a license. And it is not my problem you could not fully understand my sentence.

Profile icon
CodingCactus

@TysonBoring the problem here is that they have posted this code saying that they made it all and it was discovered that they just copied a YouTube video. So I am having trouble understanding what you are arguing with about what was said.

Profile icon
TysonBoring

@CodingCactus "hi @programmeruser you reported this for plagiarising a tutorial, please provide the tutorial from which this is apparently copied" You have said this and it is wrong. He did not "Plagiarize" the youtubers "open-source" code. Additionally plagiarism is not an issue in the computer science world.

"Copy from one, it's plagiarism; copy from two, it's research." - Wilson Mizner

also could you post the link to the video this was supposedly copied from?

Profile icon
CodingCactus

@TysonBoring plagiarism is copying and taking credit for someone else's work. Which is what they did...

Profile icon
TysonBoring

@CodingCactus You still dont understand that plagiarism in computer science works differently. The code was not not published as official software, so anyone can copy it. Additionally, you have to include a in text citation of your chosen license with each file. Or else anyone is legally able to copy it for commercial purposes.

Profile icon
CodingCactus

@TysonBoring erm you want to tell me your special definition then and where you got it from then?

Profile icon
TysonBoring

@CodingCactus Dude my father is in the tech world, he works at intel vancouver,WA. Before I got into programming he explicitly explained it to me.

Profile icon
CodingCactus

@TysonBoring sounds a lot like you are talking about plagiarism in a business sense rather than a computer science sense

Profile icon
beginner10coder

Why reports should NOT be anonymous @RayhanADev:

  1. The reporter could report someone for no reason or for fun
    2.TAKE REPORTING SERIOUSLY please the report button is there for a reason TO REPORT PEOPLE WHO ARE BEING MEAN. NOT FOR FUN OR NO REASON (except my friend @Beginnerbot7 who sweared in the chat once)
    3.the repl.it people who see reported content will see if it is not inappropriate if it is appropriate the reporter WILL GET IN BIG TROUBLE! else the person reported will be banned (just like my friend @Beginnerbot7)
    so everyone and including you @RayhanADev and me we must all keep these in mind while reporting.
Profile icon
RayhanADev

@beginner10coder yeah man that’s understandable. Like I said previously too, Internet reporting is just generally anonymous and I was surprised to hear it wasn’t here. That’s it :)

Profile icon
realTronsi
  • Uh why we have to spam tap the keys to move the paddle and the ball moves at such different rates its near impossible to reach the ball from one side to another

  • We can go off the board

  • The ball moves through the middle of the paddles at times

Profile icon
PattanAhmed

@realTronsi It's not like that, literally.
It's just the Graphics Repl run is laggy.

It would be fine if we have run domain.

Profile icon
HarperframeInc

@PattanAhmed That isn't a valid excuse. Pygame runs really well, I don't see why it would be laggy. What do you mean run domain anyways? If your talking about repl.run then it won't work, repl.run only displays the terminal.

Profile icon
PattanAhmed
Profile icon
CodersXD

@HarperframeInc, he used Turtle, not Pygame.

Profile icon
PattanAhmed

@CodersXD Yeah, That's a point.

Profile icon
HarperframeInc

@PattanAhmed @CodersXD That's not what I meant. Pygame runs good, that should mean Turtle should run good.

Profile icon
CodersXD

@HarperframeInc, Turtle doesn't run smooth on repl, only pycharm or anything else.

Profile icon
CodersXD

@HarperframeInc, it should run smoothly.

Profile icon
HarperframeInc

@CodersXD How come every other project I have seen run smoothly?

Profile icon
CodersXD

@HarperframeInc, Send me a project with turtle that runs smoothly.

Profile icon
HarperframeInc
Profile icon
CodersXD

@HarperframeInc, how do I start the game?

Profile icon
HarperframeInc

@CodersXD Click!

Profile icon
[deleted]

gooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooood game dude

Profile icon
PattanAhmed

@ilovebeef Thanks :)

Profile icon
[deleted]
Profile icon
angrydoge

E

Profile icon
RayhanADev

Ahhh it so laggy and the physics is off! Otherwise pretty normal pong, great job!

Profile icon
PattanAhmed

@RayhanADev It's not like that, literally.
It's just the Graphics Repl run is laggy.

It would be fine if we have Repl run domain.
That we now don't have currently!

Profile icon
RayhanADev

@PattanAhmed ah rip, Repl Run is never coming back D: we’re all so sad too. I really mean that’s its a good game though!

Profile icon
PattanAhmed

@RayhanADev They just said that it is temporary.
IDK what will be their next decision.

Myself is really sad at this moment
Thanks for commenting!

Profile icon
Pizzaz4me

it's not that the Graphics on Repl that causes a lot of lag on a lot of projects, it's just that repl runs graphics made with python a lot slower than other languages @PattanAhmed

Profile icon
realTronsi

@PattanAhmed lag won't make the physics scuffed though, not an excuse!

Profile icon
PattanAhmed
Profile icon
Funkus
  1. Why does this get so many upvotes? It's literally just pong. I've seen more better pong games and they have less than 10 upvotes.
  2. Why would you copy and paste a youtube tutorial? If you said you didn't copy it, well I watched the exact same tutorial.
  3. I see so many 0 upvote accounts. Probably just made alt accounts to get upvotes.
  4. So depressing.
Profile icon
angrydoge

Ok wow. That was really rude @Funkus.

  1. Repl.it share is a place to SHARE code, just because he did a tutorial doesnt mean we have to shame them.
  2. There has been a spike in new users lately, That doesnt mean theyre alts. Some people dont like to comment/post
  3. Trashing his game? Come on thats just not nice.
  4. I hate it when people judge other people like this so please dont do this
Profile icon
Funkus

Ok wow. You are supporting a non-creative, stolen [email protected]
A place to share code, but not to copy one's and post? But not a place to give opinions or thoughts on? Then what's the point of sharing? This place is to be original, not a place for farming upvotes.

  1. This place is to be creative.
  2. New users don't always upvote.
  3. Being honest is better than lying about his "original" work.
  4. I hate when people support a non-creative project.
Profile icon
PattanAhmed

@Funkus

  1. Did I did any kind of upvote farming?
  2. Yeah, I did follow the exact tutorial, but is there any kind of rule that says "No tutorial code is allowed to share on Repl.it Share?"
  3. Having 0 cycle accounts never mean that I made many alt accounts.
  4. Ok.
Profile icon
PattanAhmed

@Funkus

  1. Creativeness comes from tutorials too.
  2. Why, not?
  3. Did I say that this is my "original work"?
  4. I don't care!
Profile icon
PattanAhmed

@dabombdgdzjr Thanks, bro!

Profile icon
angrydoge

@Funkus Bro, did you not know that tutorials are for copying? The main point of a tutorial is for the person to learn. He followed a tutorial (Which is allowed) and posted it on repl.it bc he liked it (which is allowed) @PattanAhmed is a pretty trusted member of repl.it, so I dont think hes just gonna destroy his reputation by cycle farming.

Profile icon
PattanAhmed

@dabombdgdzjr Yeah, I agree!

Profile icon
TsunamiOrSumth

@Funkus repl share shouldnt be for whining and complaining, also, why are you so mad that this has so many upvotes? are you jealous?

Profile icon
mesquite2234

@TsunamiOrSumth Actually the most upvoted post from @Funkus is a procedural map generator and has 30 upvotes, and anyone with a basic understanding of math knows that 30 * 2 = 60

Profile icon
potatojs

@Funkus lol that's exactly what i think when i see 99% of the trending posts in repl

Profile icon
mahendrachou

this is very
good work

Profile icon
PattanAhmed

@mahendrachou Thanks, bro!

Profile icon
ROCKINGRAYQUAZA

had a lot fun ^-^

Profile icon
PattanAhmed
Profile icon
beginner10coder

Me: Holding the w key
Me in my mind:bye bye left paddle!

Profile icon
PattanAhmed
Profile icon
PattanAhmed

Guys, If you wanna make this amazing game all by yourself using Pygame and Python.

Follow this tutorial
and credit goes to them too.

Thanks!

Profile icon
RayhanADev

@PattanAhmed ummm, you’re probably supposed to put the credits in the post itself, not a comment ƪ(˘⌣˘)ʃ

Profile icon
Blackout4344

Good game dude!

Profile icon
PattanAhmed

@Blackout4344 Thanks, bro!

Profile icon
angrydoge

Playing with myself cuz im lonely go

BRRRRRRRRRRRRRRRRRRRRRRr

Profile icon
PattanAhmed

@dabombdgdzjr Do you have Discord!?

Profile icon
angrydoge

I do but I cant go on discord with ppl i dont know @PattanAhmed

Profile icon
angrydoge
Profile icon
PattanAhmed
Profile icon
hello4691

Awesome game!

Profile icon
PattanAhmed

@hello4691 Thanks!

Profile icon
hello4691

Here is a link to play in full screen:
https://repl.it/@PattanAhmed/Pong?lite=1&outputonly=1

Profile icon
PattanAhmed

@hello4691 Woah, Thanks!!

Profile icon
hello4691

@PattanAhmed No problem. If you have other games you would like in full screen, use this link:
https://repl.it/@hello1964/Full-Screen-URL#main.py

Profile icon
PattanAhmed

@hello4691 Woah, Thanks for letting me know
#:)

Profile icon
hello4691

@PattanAhmed Oh and if the name of your repl contains special characters like "!" or "?" Don't include them

Profile icon
PattanAhmed

@hello4691 Yeah, I know.
- works too!

Profile icon
carxspeed

Can you all just stop arguing with the man about lag and stuff and just appreciate it

Profile icon
PattanAhmed

@carxspeed Thanks!
We are just going in a friendly way till now...

Profile icon
DeekshaIyer

please reply quick

Profile icon
PattanAhmed
Profile icon
DeekshaIyer

how simple my code is

Profile icon
DeekshaIyer

I'm just ten so don't judge how simple it is

Profile icon
DeekshaIyer

i made a code and i dont know how to share it with the world like you I could play this game but how do I make mine public so others could do the same

Profile icon
PattanAhmed

@DeekshaIyer Oh!
Let me show you how!

Profile icon
PattanAhmed

@DeekshaIyer Go to:-
https://repl.it/talk/share/

Click add post:-
01

02

That's it!!

Profile icon
DeekshaIyer

how do you start the game
and how do you post one I made this chatter and I'm only ten

Profile icon
PattanAhmed

@DeekshaIyer wait, I didn't understand...

You can start a game by clicking the Green play button.
and
what is your second question, can you explain a bit more!

Profile icon
gwynethwingell

good

Profile icon
PattanAhmed
Profile icon
gwynethwingell

@PattanAhmed my name is gwyneth and i am a girl and not a boy so i think u know wat i mean i don't like to be called bro.

Profile icon
PattanAhmed

@gwynethwingell Yeah, Sorry...
I edited it.

:)

Profile icon
gwynethwingell

@PattanAhmed no problem it is okay everyone makes mistakes.

Profile icon
PattanAhmed

@gwynethwingell Yeah, Good point!

Profile icon
gwynethwingell

@PattanAhmed ok bye good night.

Profile icon
PattanAhmed
Profile icon
carxspeed

just stop giving him a bad time

Profile icon
PattanAhmed

@carxspeed Bro, I am not bad at anyone here.

Profile icon
StevenBadal

Nice!

Profile icon
PattanAhmed

@StevenBadal Thanks, bro!

Profile icon
SamarthKulkarni

its really laggy, and i cant move the rackets

Profile icon
PattanAhmed

@SamarthKulkarni Yeah, It's not my fault.
I tried my best to remove it but at last, I got to say that it's Repl.it issue.

Thanks!

Profile icon
TommyGeng

I really like it!

Profile icon
PattanAhmed

@TommyGeng Thanks, bro!

Profile icon
TommyGeng

@PattanAhmed No problem

Profile icon
YuvanVighnesh

goood game!
the sound doesnt work tho

Profile icon
PattanAhmed

@YuvanVighnesh First you have to confirm the audio.
Then, it will work

Profile icon
Quickpy

The control scheme for the paddles just feels a little bit weird but thats just me anyway great game

Profile icon
PattanAhmed

@Quickpy Yeah, sorry for that.
Thanks!

Profile icon
tankerguy1917

this is cool. and is it all using turtle? or at least mostly turtle. and if so, is there some way that i could use it in a text based rpg

Profile icon
PattanAhmed

@tankerguy1917 I made it using turtle.
You can try with Pygame or Tkinter as well

Profile icon
Kudos

It's really cool that you built a pong game entirely in turtle!

I wish there were a little more js programmers in repl.it though -_-

Profile icon
PattanAhmed

@Kudos -_-
Yeah, Thanks bro.

There are js programmers as well on Repl.it

Profile icon
Blackout4344

Not bad!

Profile icon
PattanAhmed
Profile icon
ColePete

@PattanAhmed I forked the game and turned up the speed on the paddles and the ball. I found that if you put all the speeds to 15 that the game is much better. But you don't have to, I just liked it better

Profile icon
PattanAhmed

@ColePete Ok, Good.

Profile icon
RahulChoubey1

Please make this compatible with holding keys. I cannot spam keys that fast!

Profile icon
PattanAhmed

@RahulChoubey1 Sadly, I guess I can't do that in Turtle.
Pygame works tho*

Thanks for your suggestion.