def obtain_type_player(self): ''' This method will be used by the sub-classes PlayerHuman and PlayerComputer. Returns: Le type de player, 'Computer' or 'Human' ''' return 'Human' or 'Computer'
if
def obtain_type_player(self): type = "Computer" # the default answer if some_other_information is true: type = "Human" return type
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)