Question about Python Classes
I have to create a python program using classes and I have a question on whether some definitions should be separate from the class or not. My program will be a casino class with different types of games. Then I'm going to have another class to create a player. My question is whether the games such as blackjack and roulette should be within the class or separate. I am having a difficult time figuring out how the program structure should be. If it helps, this is just what I have so far let me know if there is anything I should change class Casino: def __init__(self, casinos_balance, wins = 0, loses = 0): self.casinos_balance = casinos_balance self.wins = wins self.loses = loses def __repr__(self): return '{} {} {} {} {}'.format(self.casinos_balance, self.wins, self.loses) def money_losed(self, money): self.casinos_balance -= money self.loses += 1 def money_won(self, money): self.casinos_balance += money self.wins += 1