Share your repls and programming experiences

← Back to all posts
Pokemon Battling Simulator
JimBob5

Play Pokemon against a friend with 6 random Pokemon. 30 Pokemon are currently available with 8 different types.

Check out my other games:
https://repl.it/talk/share/Dont-hit-13/26888

Voters
SamuelStocks2
LordPython404
davidyu9
MarbleMammal397
AshCodz
BraydenMorkasse
SilentShadowBla
ikerf164
grady00f
Dude20121
Comments
hotnewtop
LeonDoesCode

Can I suggest https://pokeapi.co/. You will need to rewrite quite a bit, and also do a few requests, but it could be worth it. All the stats, alsong with a lot of other information is there.

Love the game as it is though, can't wait to see you add more!

RayvelArjoon

To make your game a bit more user friendly, introduce some while statements into your game:

CharlesHood

If i enter a number higher than 6 for choosing my pokemon then the game has an error. maybe in your error checking loop check if the number is between 1 and 6 as well.

JimBob5

@CharlesHood If I were to do that it would be a bit more complicated then that. For example different situations would require different limits and the number of Pokemon changes.

PatMorrison

nice not working code. #COVID19KP2

ShadowAkira

When I start, and it asks me "What display speed would you like (in seconds, can be 0)" if I input 0 then it shows this:


Could you fix this?
This is still really cool though.

merrillUwU

culd you try to add eevee evolutions?

ShamantaK123

20 seconds

FreakingG0d

nice but how come bulbasaur using absorb can get an over health

Dart

screeches in variables

Warhawk947

@Zexogon

BigMitch123

I found that it would crash alot

ImGrimReaper

this game was amazing

willbs

very cool XD uwu

LaneWales

Wow just amazing, thats some dedication!

launcherman08

Nice job! One suggestion is to add an ending because my sister and I were playing, and she had zero pokemon. The game asked her to select a pokemon even though she had none.

JimBob5

@launcherman08 I have attempted to add an ending but it seems not to be working from what you are saying. I will try and fix it and let you know when I do.

JimBob5

@launcherman08 I think the game should now tell you who wins and ask you if you want to play again.

launcherman08

@JimBob5 Thank you! It now works.

JimBob5

@launcherman08 Did it also ask you if you wanted to play again?

launcherman08

@JimBob5 Yes it did! Thanks!

LoneAce

Amazing game! You should try from replit import clear and clear() in order to clear the screen as it is cleaner. Cool concept btw :)

JimBob5

@LoneAce Thank you! I will use that in the code now and let you know when it is done.

JimBob5

@LoneAce I think I have now replaced all the line creators with clears.

LoneAce

@JimBob5 Noice

OathOfCode

@JimBob5 Love this game! Very fun! I have some suggestions though. If you use classes, it would make the code much simpler and cleaner. You also wouldn't have to use as many "if" statements as well.

Heres a link to my version of pokemon, but it uses classes. You may copy the code, change it up, basically do what ever you want to it to help improve your game!

JimBob5

@OathOfCode Thanks for the advice, I'll look into it.

[deleted]

pretty cool

SharkJohn

This is awesome! How long did it take to make?

JimBob5

@SharkJohn I think I started the first version about 2 months ago but I haven't edited it for a few weeks before uploading it here.

generationXcode

Very addictive. Nice game

WyattKeenan

The only thing you could improve on is the layout. This is fantastic!

[deleted]

@WyattKeenan Yeah the layout is kinda weird

icloud

Make it so it can catch errors

JimBob5

@icloud What do you mean by this?

generationXcode

@JimBob5 use the try:except: syntax

generationXcode

@JimBob5 for example:
try:
1/0
except:
print("ofcourse that wont work")

JimBob5

@generationXcode Thank you for clearing it up, I will try and add this to the next version.

generationXcode

@JimBob5 np we're here to help each other anyway. also try and make it so that the whole program restarts after an error occurs

JimBob5

@icloud The program now prevents users from entering non-numbers.

icloud

@JimBob5 good job

vatsalvyas1920

Nicely done

Hyndoku

This is great! I dont know if you have or not yet but you should add the type advantages next.

JimBob5

Thanks for the feedback, but they are currently added.