C# Class CleanCode.Tennis

Show file Open project: alexyork/Samples Class Usage Examples

Public Methods

Method Description
AwardPointToPlayer1 ( ) : void
AwardPointToPlayer2 ( ) : void
PrintScore ( ) : string

Private Methods

Method Description
APlayerLeadsByOnePoint ( ) : bool
BothPlayersHaveFortyOrMore ( ) : bool
BothPlayersHaveTheSameScore ( ) : bool
GetScore ( int points ) : string
LeadingPlayer ( ) : string
OnePlayerLeadsFortyToLove ( ) : bool

Method Details

AwardPointToPlayer1() public method

public AwardPointToPlayer1 ( ) : void
return void

AwardPointToPlayer2() public method

public AwardPointToPlayer2 ( ) : void
return void

PrintScore() public method

public PrintScore ( ) : string
return string