#video 72 def clear_screen(): import os os.system("clear") clear_screen() #Importa toda la libreria player.py import player sorcerer = player.Sorcerer(hit_points=40, mana=80) knight = player.Knight(hit_points=433, mana=8080) paladin = player.Paladin() enano = player.Enano() druid = player.Druid(hit_points=433, mana=8080) print() print() print(sorcerer) print() print(knight) print() print(paladin) print() print(enano) print() print(druid) input() print("Fin del programa!!!!") input()
import player import troll # sorcerer = Player(40,80,"Sorcerer","Rayo Hielo") sorcerer = player.Sorcerer(hit_points=40, mana=80) print(sorcerer) knight = player.Knight(hit_points=80, mana=40) print(knight) paladin = player.Paladin(hit_points=60, mana=60) print(paladin) druida = player.Druida(hit_points=50, mana=70) print(druida) # Trolls normal_troll = troll.Troll(hit_points=50, mana=290, experience=20, loot=[ "gold coins", "hand axes", "leather boots", "leather helmets", "meat"]) print(normal_troll) # print(normal_troll.atacar()) frost_Troll = troll.FrostTroll(hit_points=55, mana=300, experience=23, loot=[ "carry fish", "gold coins", "rapiers", "spears", "wooden shields"]) print(frost_Troll) # print(frost_Troll.atacar())
import player Sorcerer = player.Sorcerer(vida=200, mana=5000) caballero = player.Knight(vida=1000, mana=500) paladin = player.Paladin(vida=500, mana=1000) druida = player.Druida(vida=150, mana=6500) print(Sorcerer) print() print(caballero) print() print(paladin) print() print(druida)
import player as pl sorcerer = pl.Sorcerer(hit_points=40, mana=80) knight = pl.Knight(hit_points=80, mana=20) print(knight) print(sorcerer)
import player sorcerer = player.Sorcerer(hit_point=40, mana=80) knight = player.Knight(hit_point=80, mana=20) druid = player.Druid(hit_point=60, mana=50) paladin = player.Paladin(hit_point=70, mana=50) print(sorcerer) print(knight) print(druid) print(paladin)
#video 72 def clear_screen(): import os os.system ("clear") clear_screen() #Importa toda la libreria player.py import player sorcerer = player.Sorcerer(hit_points = 40, mana = 80) knight = player.Knight(hit_points = 433, mana = 8080 ,hechizo = "cabaiaaaa") paladin = player.Paladin() enano = player.Enano() druid = player.Druid(hit_points = 433, mana = 8080 ,hechizo = "cabaiaaaa") print() print() print("El {} tiene: {} de Hit Points y {} de Mana y puede lanzar: {}".format(sorcerer.vocation, sorcerer.hit_points, sorcerer.mana, sorcerer.hechizo)) print("El {} tiene: {} de Hit Points y {} de Mana y puede lanzar: {}".format(knight.vocation, knight.hit_points, knight.mana, knight.hechizo))
import player import enemy dir(enemy) #pjjllayer = player.Player() #nuevo= player.Player() druid = player.Druid(hitpoints=50, mana=80) paladin = player.Paladin(hitpoints=80, mana=80) knight = player.Knight(hitpoints=80, mana=60) trolDeFuego = enemy.Fire_troll() trolDeHIelo = enemy.Ice_troll() trolDeTierra = enemy.Earth_troll() trolDeAire = enemy.Air_troll() print(knight) print(druid) print(paladin) print(trolDeAire) print(trolDeFuego) print(trolDeHIelo) print(trolDeTierra)