kyu_4.the_greatest_warrior package¶
Submodules¶
kyu_4.the_greatest_warrior.test_battle module¶
kyu_4.the_greatest_warrior.test_warrior module¶
kyu_4.the_greatest_warrior.warrior module¶
The Greatest Warrior
-
class
kyu_4.the_greatest_warrior.warrior.
Warrior
[source]¶ Bases:
object
A class called Warrior which calculates and keeps track of level and skills, and ranks.
-
__set_level
() → int¶ A warrior starts at level 1 and can progress all the way to 100.
A warrior cannot progress beyond level 100.
Each time the warrior’s experience increases by another 100, the warrior’s level rises to the next level.
- Returns
-
__set_rank
() → str¶ - Returns
warrior’s experience
-
__update_experience
(experience: int)¶ A warrior’s experience is cumulative, and does not reset with each rise of level. The only exception is when the warrior reaches level 100, with which the experience stops at 10000. :return:
-
property
achievements
¶
-
property
experience
¶
-
property
level
¶ A warrior’s level
- Returns
A warrior’s level
-
property
rank
¶ A warrior starts at rank “Pushover” and can progress all the way to “Greatest”
- Returns
warrior’s rank
-