Share your repls and programming experiences

← Back to all posts
Pokemon Battle (C++ version)
nN34398Ff (110)

POKEMON BATTLE C++ VERSION!

A long time ago, I tried making
a pokemon battle on python.
I sucked so badly that it took literally
500 lines and nothing worked. Then...

AFK TIME!

After a while of
scratch.mit.edu and boredom...

C++ COMES UP AND TAKES OVER!
Now I know a bit of C++ (enough to make this, at least). I used it to remake the python project from long ago... and it WORKED! Now you can actually fight, and it's only around 100 lines!


I will soon add:

  • more moves DONE! ✅
  • more items Not yet =( ❌
  • maybe more POKEMON? Not yet =( ❌

That button at the top left which has a number in it looks so sad and gray... how about you click it and make it green and happy?? =D

To type "scratch" and
spam "potion" or not to...

Hey there's new moves for the enemy check them out =D

Cool kid club:

Oh the jellybeans
how delicious they are
yay
especially the pink lemonade ones
mmmm

Commentshotnewtop
DynamicSquid (2677)

Cool! Few things though:

#include <cstdlib> // what is this,
#include <stdlib.h> // and this for?

using namespace std; // you don't need this
nN34398Ff (110)

Thanks!!!!!! I took out the unneeded #stuff
@DynamicSquid
It was for a color text thing and a clear the terminal thing... Do you know how to clear the terminal using code?

DynamicSquid (2677)

@nN34398Ff try to put it in your c++ code, instead of typing it out in the shell

DynamicSquid (2677)

@nN34398Ff yup, np!

Please mark this as accepted if it helped you

nN34398Ff (110)

So I just say accepted? Ok @DynamicSquid

DynamicSquid (2677)

@nN34398Ff you have to click on the checkmark

nN34398Ff (110)

@DynamicSquid Oof I'm a noob... i'm not sure what u mean...

IreTheKID (277)

@DynamicSquid lmao this isn't an ask post

DynamicSquid (2677)

@IreTheKID OOOOOOOOOOOOOOHHHHHHHHHHHHHHHHHHHHH yeah I knew that lol

nN34398Ff (110)

@DynamicSquid Ok I knew it had to be an ask post!! (totally XD)

AbhayBhat (257)

@IreTheKID, what algorithm did you use to calculate if the person is a spammer in your rc website becuase it says I am 99%-100% a spammer and I want to get it lower... It is really embarrassing. I didn't think I was a spammer...

CarlosRosiles (153)

@DynamicSquid I always use

using namespace std;

It always saves me some time from typing std::
But thats just how I do it.

nN34398Ff (110)

@CarlosRosiles Yeah I can do that but I really don't care, it's pretty fun to type so yeah. DynamicSquid is talking about way earlier, when I randomly had it there.

nN34398Ff (110)

@IreTheKID woah you made the rc website!!! amazing!! Also how am I a spammer???? XD

IreTheKID (277)

@nN34398Ff & @AbhayBhat

Find more info about the Spam Score here.

AbhayBhat (257)

@IreTheKID, uh, the link never loads

IreTheKID (277)

@AbhayBhat should be good now, found a few bugs in the code :/

nN34398Ff (110)

@IreTheKID it still doesnt work =(

IreTheKID (277)

@nN34398Ff it should work, what's wrong?

nN34398Ff (110)

@IreTheKID I go to the link you posted (your website) then I press on the blue link within the website... then it crashes.

IreTheKID (277)

@nN34398Ff you need to open the site in a new tab lol

xxpertHacker (341)

Didn't expect someone to ever say they preferred C++ over Python, and nice job!

Keep it up, I for one can't wait to see what happens when you know even more!

nN34398Ff (110)

@StudentFires Thank you! Yeah, it's a bit weird, considering python is 10 times easier than c++ but I guess I kinda understand c++ better... =D Maybe after learning c++ I can go back to python and fix up my python version of this.

nN34398Ff (110)


Top ten least used programming languages compared to python! I got this from https://rc.irethekid.repl.co/statistics

HahaYes (1060)

@nN34398Ff well because python is used by kiddos a lot.

nN34398Ff (110)

@HahaYes yes and a major part of the replit population is kiddos =)

HahaYes (1060)

@nN34398Ff everyone knows python is slow and C++ and C are fast

nN34398Ff (110)

@HahaYes everyone except my bro XD

nN34398Ff (110)

@HahaYes But it is pretty good... I use it rarely tho, cause to me c++ is easier to remember. Eh. I have no idea why. =D

nN34398Ff (110)

Wow so many famous coders are upvoting this!!! Thanks all you guys!

LTI2 (40)

game is kind of easy

nN34398Ff (110)

@LTI2 Yup, the enemy really does suck. But don't worry, I'm going to add more.

nN34398Ff (110)

Ok now it's a bit harder @LTI2

nN34398Ff (110)

Holy cow I made this today and suddenly it's second on the most popular "share" trending thing =0 Thanks to highwayman and dynamicsquid!!! Man the're awsom

Highwayman (1367)

scratch scratch scratch potion potion scratch potion flame flame potion potion potion potion flame flame flame scratch potion potion flame...

nN34398Ff (110)

@Highwayman yeeeeeeeeeeeee lets go infinate potions XD

Highwayman (1367)

YEA! 😜@nN34398Ff