MCPcopy Create free account
hub / github.com/ndleah/python-mini-project / Player

Class Player

TEXTVENTURE/game.py:201–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199
200# ---- PLayer Class ---- #
201class Player:
202
203 # Initializing the player
204 def __init__(self):
205 self.name = ''
206 self.username = ''
207 self.trade = ''
208 self.hp = 0
209 self.magic_points = 0
210 self.effects = []
211 self.location = 'Town Market'
212 self.gave_over = False
213
214# ---- Creating the Player ---- #
215player = Player()

Callers 1

game.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected