showstestedcode.R

#Creating pokemon that exists
poke1= Pokemon$new("Litwick")
poke2 = Pokemon$new("Ivysaur")

#Creating pokemon that does not exist
poke3 = Pokemon$new("Samin")
poke3

#Testing the 'fight' method to make sure it works
poke1$fight(poke2)
poke1

poke1$fight(poke2)
poke1

poke1$fight(poke2)
poke1

poke1$fight(poke2)
samincharepoo/newpackage documentation built on March 7, 2021, 12:18 a.m.