Skip to content
← Back to Community
💻💻 PONG with UNBEATABLE BOT 💻💻
Profile icon
SwaroopBappanad

Hey guys! I spent a day (most of it when I was supposed to be doing schoolwork lol) making this, and I put a LOT of effort into it. Normally, I would fine tune it to make it look good and stuff, but I'm honestly dead at this point.

It's basically you vs an AI that knows your every move. I tried to make it as original as possible, but I also thought I should add a bit of originality into it. It has no point system, but again, it's hard to criticize a dead man.

Bottom line, it's trash. I really don't care anymore, but I know that this is the best of my ability, so give me a break. I'm not Sundar Pichai or @Coder100. If on the rare occasion that you do enjoy it, please upvote! I poured a lot of time and effort into this, and I would really appreciate it.

P.S. Press the up arrow to move up, and the down arrow to move down.

Credits:

  1. Me, obviously
  2. Coder100, for the 'w' and 'a' functionality ideas, plus the idea of a score system
  3. ridark, for the idea of showing your score when you lose
  4. GeditEdger, for the idea of pressing 'r' to restart
  5. Everybody else, who gave so much support for this project. Merry Christmas!
Voters
Profile icon
ChristianDutton
Profile icon
Orca20
Profile icon
forceofyoda
Profile icon
20064791
Profile icon
mat1
Profile icon
ShadowWalker258
Profile icon
Firestorm8
Profile icon
parkerslv
Profile icon
N3rdL0rd
Profile icon
AgastyaSandhuja
Comments
hotnewtop
Profile icon
TalinSharma

image

Profile icon
SwaroopBappanad

@TalinSharma Whoa, nice!

Profile icon
SwaroopBappanad

@TalinSharma But I was better

image

Profile icon
TalinSharma
Profile icon
SwaroopBappanad

@TalinSharma whooopeeeeeeeeeeeeeeeeeeeeeee

Profile icon
WILLIAMBAEWER

@SwaroopBappanad
Screenshot 2020-12-23 at 3.44.35 PM

BEHOLD MY POWER

Profile icon
SwaroopBappanad

@WILLIAMBAEWER ....God....Talk about dedicated.....

Profile icon
HDFuzy

@WILLIAMBAEWER no you behold my power
image

Profile icon
SwaroopBappanad
Profile icon
ShivaSubraman

@HDFuzy How did you do that?! My high score is 6

Profile icon
JKE010

@HDFuzy
Foolish mortals, all of you behold MY power.
Screen Shot 2020-12-25 at 2.25.53 PM

Profile icon
SwaroopBappanad

@JKE010 How have I not disintegrated yet, beholding your power and all.

Profile icon
HimanshuShekha4

@JKE010
are you sure ?
image

Profile icon
JKE010

i-
i've been outplayed.
I can't come back from this.
@HimanshuShekha4

Profile icon
JKE010

I dunno man, it's a lotta power. 137 units of power, to be accurate. @SwaroopBappanad

Profile icon
HimanshuShekha4

@JKE010 did you looked at my score carefully is'nt there something suspecious in it ??

Profile icon
HimanshuShekha4

@JKE010 man ur great at it

Profile icon
JKE010

No, no, I don't think so. Obviously all scores are black, out of place, and in italics.
@HimanshuShekha4

Profile icon
JKE010

ayo thanks, LOL @HimanshuShekha4

Profile icon
mrslep

@HimanshuShekha4 thats a photoshop lol

Profile icon
SwaroopBappanad

@srsly What? No, that's obviously real.

Profile icon
JKE010

@srsly yeah dude, don't get salty just cause YOU couldn't get 900000000000.

Profile icon
HimanshuShekha4

@srsly yes, lol

Profile icon
msgaalex

@JKE010 Can you beat this??!

image

#DedicationSquad

Profile icon
Trex10

@msgaalex
did you do glitch thing where it switches between only 2 shots?

Profile icon
SwaroopBappanad

@Trex10 Honestly idk how to fix that. Ppl keep thinking I preprogrammed the moves, but ig the collision system is somewhat flawed.

Profile icon
msgaalex

@Trex10 idk what you're talking about

Profile icon
JKE010

bet. wait, just wait. @msgaalex

Profile icon
albertlu2

@JKE010
look

image

Profile icon
SwaroopBappanad

@albertlu2 lol nice try but I see the different font lmao

Profile icon
msgaalex

@JKE010 lol ok

Profile icon
JKE010

yeah that's 100% fake. ~2.4 million? Nah. @albertlu2

Profile icon
albertlu2

@SwaroopBappanad thats my default font

Profile icon
SwaroopBappanad

@albertlu2 That's not how HTML works lmao

Profile icon
HDFuzy

@msgaalex already did hehe
image

Profile icon
msgaalex

@HDFuzy did you change the code to say that??

Profile icon
albertlu2
Profile icon
HDFuzy

@ShivaSubraman Easy I just copy pasted the numbers in paint

Profile icon
HDFuzy

@msgaalex No I changed it on the paint app :)

Profile icon
msgaalex

@HDFuzy Please refrain from commenting on this post, it's over a year old.

Profile icon
SwaroopBappanad

@msgaalex lmfaoo

Profile icon
firefish

Why I am a so overjoyed to get a score greater than 2?

Profile icon
FloCal35
Profile icon
SwaroopBappanad

@firefish lol good job

Profile icon
JBloves27

Pretty cool! ...the AI is flippin cheating I love the AI! XD

Profile icon
SwaroopBappanad

@JBYT27 Well, I kinda coded it to cheat lol.

Profile icon
JBloves27
Profile icon
StealthySniper
Profile icon
SwaroopBappanad

@StealthySniper pog indeed.

Profile icon
ch1ck3n

image

Profile icon
SwaroopBappanad

@ch1ck3n Whoa!

Profile icon
clancastor05

You underate your own project. As a game is not SO fantastic but is fun to see how Pong is in reallity. Pong is a mistake game, the winner is the one who commits less mistakes. This bot only foccus on surviving, not beating you. At one point, I managed to enter in a loop where I don't move and the bot react in such a manner that I don't lose (infinite score xd). Upvoted! Good job.

Profile icon
SwaroopBappanad

@clancastor05 lol thx for the feedback!

Profile icon
badst

All it does is follow the Y cord of the ball. This is not AI as you give the Y cord so all it does is follow it.

Profile icon
SwaroopBappanad

@pepelaugh Read the comments above (or below idk), I needed a catchy title

Profile icon
badst

@SwaroopBappanad well, it's not an AI so rename it like "follow bot" or something like that.

Profile icon
SwaroopBappanad

@pepelaugh Honestly, everything else in the title is genuine. If it bothers you THAT much, I'll change the title to "bot."

Profile icon
[deleted]

@SwaroopBappanad - Its not that hard too. I made it less than an hour and I'm not that good. Its just pong with the y of the computer as the y of the ball. Not hating, just stating facts, don't take offense :)

Profile icon
HimanshuShekha4

@pepelaugh chill dude nothings an AI in that way ..... it is technically an AI

Profile icon
HEMLANU

i like very much this program

Profile icon
SwaroopBappanad

@HEMLANU Thank you!

Profile icon
HEMLANU

i am asking you only have you beat this i tried 110000 time but i got till 50 only

Profile icon
SwaroopBappanad

@HEMLANU I'm terrible at pong lmao

Profile icon
HEMLANU

but good you have made very very good

Profile icon
HEMLANU

it is so hard

Profile icon
SwaroopBappanad

@HEMLANU It was designed to be hard!

Profile icon
HEMLANU

has anyone beat the game

Profile icon
SwaroopBappanad
Profile icon
GeumjuKim

someone make a battle of bots - (one pong bot on one side, one on the other. That would be something satisfying to watch.)

Profile icon
MahdiKouroughli

My power is too strong.
h e l p m e

image

Profile icon
SwaroopBappanad
Profile icon
MahdiKouroughli

@SwaroopBappanad just change how much points you get per block or change what the starting score is.

Profile icon
UwaiseNoorani1

idk how to play!!!

Screenshot 2020-12-26 134117

image

Profile icon
SwaroopBappanad

@UwaiseNoorani1 lol don't look at the console! That undefined stuff was for testing values! (press up and down arrows, or 'w' and 'a' keys)

Profile icon
MrH0lmes

extraordinary job, sir! congratulations!

Profile icon
SwaroopBappanad

@MrH0lmes Thanks!

Profile icon
ReyesP

Unbeatable.

Profile icon
TalinSharma

🤯

Is it okay if I fork it to make it look better and such?

Thanks

Mind Blown!

POG

Profile icon
SwaroopBappanad

@TalinSharma Yeah sure! Isn't that what coding is all about? Consistently improving and maximizing code? Anyway, thanks!

Profile icon
TalinSharma
Profile icon
SwaroopBappanad

@TalinSharma Merry christmas!

Profile icon
TalinSharma
Profile icon
Noahloader12

whaaat you like legend of zelddaaaaa

Profile icon
SwaroopBappanad

@Noahloader12 Yes. Yes I do. BOTW is a pretty good game.

Profile icon
DungeonMaster00

@SwaroopBappanad have you played the new hyrule warriors game

Profile icon
DungeonMaster00
Profile icon
SwaroopBappanad

@DungeonMaster00 No, I haven't, although I heard it's a completely new timeline.

Profile icon
DungeonMaster00

@SwaroopBappanad it is basically the events of the reat calamity

also, in breath of the wild, i like to take pictures of monster faces, mostly bokoblins and moblins

Profile icon
SwaroopBappanad

@DungeonMaster00 But don't the champions survive this time?

Profile icon
SwaroopBappanad

@DungeonMaster00 I got BOTW as a present couple days ago, and moblins are currently the bane of my existence.

Profile icon
DungeonMaster00

@SwaroopBappanad i got the game a couple years ago and i feel like getting 100%

Profile icon
SwaroopBappanad

@DungeonMaster00 Thats gonna be so hard (cuz koroks are a thing)

Profile icon
SwaroopBappanad

@DungeonMaster00 Koroks make the game better and worse at the same time.

Profile icon
DungeonMaster00

@SwaroopBappanad oh i forgot about them; there are about 900 koroks in the game

Profile icon
SwaroopBappanad

@DungeonMaster00 Yeah, and that's why I'm never even gonna think about 100%ing the game.

Profile icon
M07

@SwaroopBappanad I wholeheartedly agree with you

Profile icon
SwaroopBappanad

@M07 poggers

Profile icon
M07

Fun fact: that was my first comment ever here (repl.it)

Profile icon
SwaroopBappanad

@M07 The start of a very fun journey.

Profile icon
JKE010

oh snap, I recognized your pfp but I didn't know you were a BOTW fan, lol. Am I the only one who still can't beat a lynel with full armor because they're scary- @SwaroopBappanad

Profile icon
SwaroopBappanad

@JKE010 I just beat Vah Ruta, Tried the lynel out and immediately got incinerated

Profile icon
JKE010

pain. I've got all divine beasts (thunderblight was hell) i'm just too scared to fight ganon lol. @SwaroopBappanad

Profile icon
SwaroopBappanad

@JKE010 Honestly I think golden lynels are scarier than ganon

Profile icon
SwaroopBappanad

@JKE010 Or just any lynel in general, really (I SWEAR THAT'S NOT RACISM)

Profile icon
JKE010

hmmm, respect the lynels. #LynelLivesMatter
Wait, they try to kill us, their lives don't really matter.
Anyways, I reseted my save file, because I hadn't played the game in like a year so I wanted to start fresh.
@SwaroopBappanad

Profile icon
SwaroopBappanad

@JKE010 Nice.

Profile icon
Noahloader12

@SwaroopBappanad I am a big zelda fan too i havent tried the new game but i like botw though it is my favorite game ever

p.s. I finished all the shrines 4 days ago.

Profile icon
SwaroopBappanad

@Noahloader12 What?! Now THAT'S cool!

Profile icon
Michael8910

wow the ball really doesn't like to follow physics

Profile icon
SwaroopBappanad
Profile icon
mesquite2234

image
I very pog at game

Profile icon
SwaroopBappanad
Profile icon
DarkTheif

My totally real score not fake AT ALL!!
image

Profile icon
SwaroopBappanad

@DarkTheif wHoAaAaA

Profile icon
ColinEdwardEdwa

I just hit 1000 points and I think I broke it, the score isn't going up anymore.
image

Profile icon
SwaroopBappanad

@ColinEdwardEdwa oh it is, you just can't see it

Profile icon
ColinEdwardEdwa

I havent beat the bot, but this is as close as you can get
Screenshot 2021-01-22 at 10.33.56 AM

Profile icon
SwaroopBappanad

@ColinEdwardEdwa lol good job!

Profile icon
ColinEdwardEdwa

I've got mine into a infinite loop, so I have infinite points
image

Profile icon
SwaroopBappanad
Profile icon
TheJamCoder

@SwaroopBappanad- When I press r it doesn't reset you might fix that error

Profile icon
[deleted]

I am the inevitable -

image

Profile icon
SwaroopBappanad

@daksheshdorala oH mY gOd yOuR aN aBsOlUtE bEaSt

Profile icon
DarkswordsmanJG

You should make the ball go faster every score of 10. Cool game though

Profile icon
SwaroopBappanad
Profile icon
[deleted]

Nice Game! My highest score was 6 lol

Profile icon
SwaroopBappanad

@SUNAYK Thanks!

Profile icon
EliasTheGreat

it's really cool but there is no sensor on the wall on the A.I's side (no need since it's unbeatable but...)

Profile icon
SwaroopBappanad

@EliasTheGreat lol, true

Profile icon
RayvelArjoon

This is well made. It just needs a tuneup on the physics. The ball doesn't bounce using proper arcade physics. It sometimes bounces in the opposite direction that it should. The angle of impact should be equal to the angle that it leaves at. The center angle should then add to 180. This isn't true for 95% of the bounces.

Profile icon
SwaroopBappanad

@RayvelArjoon It's pretty hard, but I'm studying up on physics and trig to get more accurate physics next time!