Share your repls and programming experiences

← Back to all posts
Pong!
PattanAhmed (1260)

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!!

Some credit goes to this tutorial too.
Check it out if you want

Commentshotnewtop
CodingCactus (3088)

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

programmeruser (148)

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

  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.
CodingCactus (3088)

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

PattanAhmed (1260)

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

CodingCactus (3088)

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

Codemonkey51 (894)
@CodingCactus technically there is public domain

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

PattanAhmed (1260)

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

RayhanADev (1002)

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

xxpertHacker (555)

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

RayhanADev (1002)

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

xxpertHacker (555)

@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?

CodingCactus (3088)

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

RayhanADev (1002)

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

TheDrone7 (1446)

@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.

RayhanADev (1002)

@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.

TheDrone7 (1446)

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

RayhanADev (1002)

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

TheDrone7 (1446)

True devs say no to Apple

PattanAhmed (1260)

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

realTronsi (782)

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

realTronsi (782)

@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

PattanAhmed (1260)

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

That's it.
Bye!

realTronsi (782)

@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

CodingCactus (3088)

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

PattanAhmed (1260)

@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.

RayhanADev (1002)

@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?

PattanAhmed (1260)

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

TysonBoring (11)

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

CodingCactus (3088)

@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

TysonBoring (11)

@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.

CodingCactus (3088)

@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.

TysonBoring (11)

@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?

CodingCactus (3088)

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

TysonBoring (11)

@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.

CodingCactus (3088)

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

TysonBoring (11)

@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.

CodingCactus (3088)

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

beginner10coder (3)

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.

RayhanADev (1002)

@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 :)

realTronsi (782)
  • 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

PattanAhmed (1260)

@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.

HarperframeInc (391)

@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.

CodersXD (20)

@HarperframeInc, he used Turtle, not Pygame.

HarperframeInc (391)

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

CodersXD (20)

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

CodersXD (20)

@HarperframeInc, it should run smoothly.

HarperframeInc (391)

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

CodersXD (20)

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

CodersXD (20)

@HarperframeInc, how do I start the game?

[deleted]

gooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooood game dude

RayhanADev (1002)

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

PattanAhmed (1260)

@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!

RayhanADev (1002)

@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!

PattanAhmed (1260)

@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!

PlaySoccer (54)

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

realTronsi (782)

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

Funkus (214)
  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.
dabombdgdzjr (120)

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

Funkus (214)

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.
PattanAhmed (1260)

@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.

PattanAhmed (1260)

@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!

dabombdgdzjr (120)

@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.

TsunamiOrSumth (352)

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

TommyVictory (197)

@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

potatojs (800)

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

beginner10coder (3)

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

PattanAhmed (1260)

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!

RayhanADev (1002)

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

dabombdgdzjr (120)

Playing with myself cuz im lonely go

BRRRRRRRRRRRRRRRRRRRRRRr

hello4691 (32)

@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

PattanAhmed (1260)

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

hello4691 (32)

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

PattanAhmed (1260)

@hello4691 Yeah, I know.
- works too!

carxspeed (5)

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

PattanAhmed (1260)

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

DeekshaIyer (0)

how simple my code is

DeekshaIyer (0)

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

DeekshaIyer (0)

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

DeekshaIyer (0)

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

PattanAhmed (1260)

@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!

gwynethwingell (37)

@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.

gwynethwingell (37)

@PattanAhmed no problem it is okay everyone makes mistakes.

carxspeed (5)

just stop giving him a bad time

PattanAhmed (1260)

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

SamarthKulkarni (0)

its really laggy, and i cant move the rackets

PattanAhmed (1260)

@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!

YuvanVighnesh (82)

goood game!
the sound doesnt work tho

PattanAhmed (1260)

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

Quickpy (4)

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

PattanAhmed (1260)

@Quickpy Yeah, sorry for that.
Thanks!

tankerguy1917 (84)

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

PattanAhmed (1260)

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

Kudos (35)

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 -_-

PattanAhmed (1260)

@Kudos -_-
Yeah, Thanks bro.

There are js programmers as well on Repl.it

ColePete (12)

@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

RahulChoubey1 (62)

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

PattanAhmed (1260)

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

Thanks for your suggestion.