Skip to content

I model Pokémon population growth by programming a Python-based simulation.

Notifications You must be signed in to change notification settings

CalvinaHarr/PokemonPopulationGrowth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

PokemonPopulationGrowth

Overview

For the Pokémon population growth simulation, I analyze the growth of a base population of a certain number of Pokémon within the species over a certain amount of time, considering the number of egg cycles and gender ratio.

Pokémon Class

For every Pokémon, the simulation takes into consideration its name, gender, and egg group.

Egg Class

An egg is categorized by the species of the Pokémon is hatches into, using its species name. It keeps track of its current cycle.

Gender Definition

Every Pokémon within the population will have a probability of being male or female based on the gender rate. Each Pokémon born will also have this chance.

Time

Time will be measured using cycles as the unit. This is because throughout the games, 1 egg cycle is the same number of steps as how long it takes the egg breeder to check for an egg. This is to say that Pokémon will also be spawned with the chance to have certain abilities.

Breeding

Breeding will take place between one male and one female of the species. Each female in a population checks if there is a male with whom to try breeding. If successful, the female will carry the egg until it is ready to hatch. This is because there is no trainer to help the egg hatch. Ergo, there needs to be a party to incubate the egg.

Spreadsheet

To visualize the population growth, the program will use Python's excel writer, allowing for a chart to be made of the data.

About

I model Pokémon population growth by programming a Python-based simulation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages