Well, i haven't done anything in Python but i am willing to learn, seeing as it is a language which some refer to as "executable pseudo code".
I'll have a look through the source or this release and get myself familiar with you're coding techniques and see what python networking is like, if i find it a fairly good language to learn (considering i am having to currently learn assembly, c# and vba for my college course might take some time) .
If you use an IDE what one is it?
Well just starting to read i can see fairly easy language to do, but the way you've done stuff is very processor heavy concerned with other ways.
Just started reading you're code and seen that you have it so that there is code for ever pokemon to be caught... would be much more resourceful to have their names in a data file then it randomly chooses. and has catch rates based on a secondary factor (could be lots of these but each could be used on several pokemon) or just specify their catch rate after their name in the data file.
this is more code than needed:
Code:
def pokecountcmd():
global pokecount #ASSIGN TRAINER RANKS
if pokecount >= 0 and pokecount < 10:
print("\nYour rank is: Pokemon Beginner!")
if pokecount >= 10 and pokecount < 30:
print("\nYour rank is: Pokemon Amateur!")
if pokecount >= 30 and pokecount < 50:
print("\nYour rank is: Pokemon Novice!")
if pokecount >= 50 and pokecount < 70:
print("\nYour rank is: Pokemon Trainer!")
if pokecount >= 70 and pokecount < 90:
print("\nYour rank is: Pokemon Captain!")
if pokecount >= 90 and pokecount < 120:
print("\nYour rank is: Pokemon Commander!")
if pokecount >= 120 and pokecount < 150:
print("\nYour rank is: Pokemon Overseer!")
if pokecount == 151:
print("\nYour rank is: Pokemon Master!!")
print("You have"), pokecount,("/151 Pokemon!")
pokemenu()
it could be just something along these lines but a way that it will jump to the end once the if is true.
Code:
def pokecountcmd():
global pokecount #ASSIGN TRAINER RANKS
if pokecount >= 0:
rank = "Pokemon Beginner"
if pokecount >= 10:
rank = "Pokemon Amateur"
if pokecount >= 30:
rank = "Pokemon Novice"
if pokecount >= 50:
rank = "Pokemon Trainer"
if pokecount >= 70:
rank = "Pokemon Captain"
if pokecount >= 90:
rank = "Pokemon Commander"
if pokecount >= 120:
rank = "Pokemon Overseer"
if pokecount == 151:
rank = "Pokemon Master"
//DON'T KNOW HOW TO END IF STATEMENT OR ANYTHING SO THE LINES BELOW AND NOT PART OF THE STATEMENT ABOVE
print("\nYour rank is: " + rank)
print("You have"), pokecount,("/151 Pokemon!")
pokemenu()
that still is not the best way to do it, but I am writing this nearly midnight and no knowledge of python.