PokemonGeneratorGem

Install

Add this line of code into your gemfile

  gem 'PokemonGenerator', '~>0.1.3'

Then type this in your terminal

  $ gem install bundler
  $ bundle

Usage

To get the name of a pokemon you call this method anywhere in your code.

  PokemonGenerator.name() => "Staravia"

To get a type of pokemon you call this method which will either return a string or an array containing strings of the different type that pokemon has.

  PokemonGenerator.type() => "Water"
  PokemonGenerator.type() => ["Water", "Fighter"]

If you want a whole pokemon object.

  PokemonGenerator.pokemon() => {
     "name" => "Diggersby",
     "type" => [
        [0] "Normal",
        [1] "Ground"
    ],
    "moves" => [
        [ 0] "Agility",
        [ 1] "Bulldoze",
        [ 2] "Hammer Arm",
        [ 3] "Leer",
        [ 4] "Rototiller",
        . . .
    ]
  }

To choose a specific pokemon by its name.

  PokemonGenerator.pokemon({ name: "Squirtle" }) => {
     "name" => "Squirtle",
     "type" => "Water",
    "moves" => [
        [ 0] "Tackle",
        [ 1] "Tail Whip",
        [ 2] "Water Gun",
        [ 3] "Withdraw",
        [ 4] "Bubble",
        . . .
    ]
  }

To choose a specific pokemon by its type.

  PokemonGenerator.pokemon({ type: "Fire" }) => {
     "name" => "Rotom",
     "type" => [
        [0] "Electric",
        [1] "Fire"
    ],
    "moves" => [
        [ 0] "Astonish",
        [ 1] "Charge",
        [ 2] "Confuse Ray",
        [ 3] "Discharge",
        [ 4] "Thunder Shock",
        . . .
    ]
  }

To choose a specific set of moves by its type.

  PokemonGenerator.moves({ type: "Fire" }) => [
    [ 0] "Leer",
    [ 1] "Smog",
    [ 2] "Ember",
    [ 3] "Smokescreen",
    [ 4] "Feint Attack",
    [ 5] "Fire Spin",
    . . .
  [

To choose a specific set of moves for a perticular pokemon.

  PokemonGenerator.moves({ name: "Squirtle" }) => [
    [ 0] "Tackle",
    [ 1] "Tail Whip",
    [ 2] "Water Gun",
    [ 3] "Withdraw",
    [ 4] "Bubble",
    . . .
]

Contribution

Any Bug reports and or pull requests are more than welcome at https://github.com/collinL34/PokemonGeneratorGem.

License

This code is free to use under the terms of the MIT license. MIT License.