C# Class CleanCode.Tennis

Afficher le fichier Open project: alexyork/Samples Class Usage Examples

Méthodes publiques

Méthode Description
AwardPointToPlayer1 ( ) : void
AwardPointToPlayer2 ( ) : void
PrintScore ( ) : string

Private Methods

Méthode Description
APlayerLeadsByOnePoint ( ) : bool
BothPlayersHaveFortyOrMore ( ) : bool
BothPlayersHaveTheSameScore ( ) : bool
GetScore ( int points ) : string
LeadingPlayer ( ) : string
OnePlayerLeadsFortyToLove ( ) : bool

Method Details

AwardPointToPlayer1() public méthode

public AwardPointToPlayer1 ( ) : void
Résultat void

AwardPointToPlayer2() public méthode

public AwardPointToPlayer2 ( ) : void
Résultat void

PrintScore() public méthode

public PrintScore ( ) : string
Résultat string