Code Monkey home page Code Monkey logo

cmd_pokemon's Introduction

Developer: Sahil Bairagi
Development Started: 28th August, 2020
Status: Completed

cmd_pokemon

CMD Pokemon is a Terminal(Command line) based pokemon game written in python.
It is a non graphical game which will ask you to type your decisions in one letter characters or integers.

Game:

image

Fight tutorial after choosing first pokemon image image

Battle ends when one pokemons health reaches zero image

Main menu image

Map image

View your progress image

Buy stuff from shops image

Key Features and basic storyline of game:

  • Game starts with you choosing from four starter pokemons (charmander, bulbasaur, squirtle and pikachu)
  • After you choose your pokemon, Gary(Your arch rival) challenges you to a pokemon duel.
  • After beating Gary, you continue your journey from pallet town.
  • You can Save Progress at any point of time and then Reload from there.
  • You can navigate to other cities and use world map as a reference.
  • You can Hunt pokemons in wild and catch them once they are weak enough.
  • You can carry 7 pokemons at a time. Other pokemons caught will be stored in archive and equipped by visiting pokemon centres.
  • As pokemons fight and win, they will gain experience and level up. They will also learn new attacks while levelling up.
  • Once your pokemons reach a certain level, they will evolve to a stronger pokemon. Some pokemons like Pikachu, Eevee require stones(thunderstone, waterstone, firestone) to evolve.
  • You can Challenge Gym leaders to earn pokemon badges which will allow you to enter Indigo League.
  • You may encounter some Legendary pokemons while exploring the map. They are very strong and nearly impossible to catch or defeat.

How to play

For Developers:
  1. Your System must have python installed .
  2. Download the code and extract it.
  3. Open terminal(or Command prompt) in the folder where code is present.
  4. Install the required packages using the following command:
    pip install -r requirements.txt
  5. Run main.py from Terminal using python main.py command
For Other Users:
  1. Download the code and extract it.
  2. Run the main.exe

Note: Main.py is the beta version and any update and bug fixes will be released for it before they are added in Executable Game for Users.

About Pokemon:

Pokemon is an adventure rpg game where you go on a journey to catch animal like species called pokemons (Short for pocket monsters).
They can be caught using something known as pokeballs, but you need to weaken them first by battling with them using your own pokemons or other strategies. Occasionally, you may encounter Team Rocket in Wild whose sole aim is to steal pokemons.
You need to participate in Ultimate Pokemon duelling competition which is the Indigo League, but for that, you need to prove your worth by defeating 8 Pokemon Gym Leaders situated in different parts of world.
As your pokemon gets stronger and gain experience, it will learn new attacks and even evolve to a stronger pokemon.

cmd_pokemon's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cmd_pokemon's Issues

Participate in Hacktoberfest

Can you please add the hacktoberfest topic to the repository? I realized that my PRs are not being counted and simply labelled as being for an ineligible repository. I would really appreciate it.

Can't run main.py

Screenshot from 2020-10-01 19-30-31
I've installed the required packages, I'm still getting this error. Please assist.

Adding new pokemon in main.py (help)

I tried the following before main_menu in main.py:

zapdosData = pokemonWorld['zapdos']
Zapdos = Pokemon('zapdos', zapdosData, 0)
Zapdos.npcPokemonReady(100)

But I cannot figure out how to add the pokemon to the player. I've tried append methods with player and pokemonTrainer, but the methods I try do not seem to work. Please help. I've tried with deepcopy in the first line as well, I think I'm just missing the command to add the pokemon to the player.

Pokemon.py attack() bugs

Saw this bit:

elif enemyType in typeDisadantages[attackType]:
	pprint("It's not very effective !!")
	sleep(0.2)
	enemyPokemon.health += floor((0.2+random()*0.5)*attackUsed.damage)

Is the += a typo or deliberate healing?
Also,

if attackUsed.recoil != 0:
	sleep(0.2)
	pprint(f"{self.name} got a recoil of {-floor(attackUsed.recoil)}"); sleep(0.2)
	self.health += floor(attackUsed.recoil)
	self.health = max(0, self.health)

Here also recoil is leading to healing. This is also a bug?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.