import random

class pokemon():
  max_hp = 10
  min_attack = 1
  max_attack = 3
  min_defend = 1
  max_defend = 3
  min_speed = 1
  max_speed = 3
  xp = 0
  def __init__(self):
      self.attack = random.randint(self.min_attack, self.max_attack)
      self.defend = random.randint(self.min_defend, self.max_defend)
      self.hp = self.max_hp
      self.speed = random.randint(self.min_speed, self.max_speed)



class Charmander(pokemon):
  name = 'Charmander'
  max_hp = 20
  ptype = 'fire'
  max_attack = 5
  min_attack = 2
  moves = ['scratch', 'tailwhip']

class Bulbasaur(pokemon):
  name = 'Bulbasaur'
  max_hp = 25
  ptype = 'grass'
  max_defend = 5
  max_attack = 5
  min_attack = 2
  moves = ['bite', 'growl']
  
class Squirtle(pokemon):
  max_hp = 20
  name = 'Squirtle'
  ptype = 'water'
  max_speed = 2
  max_attack = 5
  min_attack = 2
  moves = ['bite', 'tailwhip']

class Pidgey(pokemon):
  name = 'Pidgey'
  ptype = 'normal'
  max_defend = 5
  speed = 1
  moves = ['scratch', 'tailwhip']

  
class Rattata(pokemon):
  name = 'Rattata'
  ptype = 'normal'
  speed = 1
  moves = ['bite', 'tailwhip']    
