the prototype pattern class knight(prototype)def __init__(selflevel)self unit_type "knightfilename "{} {datformat(self unit_typelevelwith open(filename' 'as parameter_filelines parameter_file read(split("\ "self life lines[ self speed lines[ self attack_power lines[ self attack_range lines[ self weapon lines[ def __str__(self)return "type{ }\ "life{ }\ "speed{ }\ "attack power{ }\ "attack range{ }\ "weapon{ }formatself unit_typeself lifeself speedself attack_powerself attack_rangeself weapon def clone(self)return deepcopy(selfclass archer(prototype)def __init__(selflevel)self unit_type "archerfilename "{} {datformat(self unit_typelevel