C# 클래스 CleanCode.Tennis

파일 보기 프로젝트 열기: alexyork/Samples 1 사용 예제들

공개 메소드들

메소드 설명
AwardPointToPlayer1 ( ) : void
AwardPointToPlayer2 ( ) : void
PrintScore ( ) : string

비공개 메소드들

메소드 설명
APlayerLeadsByOnePoint ( ) : bool
BothPlayersHaveFortyOrMore ( ) : bool
BothPlayersHaveTheSameScore ( ) : bool
GetScore ( int points ) : string
LeadingPlayer ( ) : string
OnePlayerLeadsFortyToLove ( ) : bool

메소드 상세

AwardPointToPlayer1() 공개 메소드

public AwardPointToPlayer1 ( ) : void
리턴 void

AwardPointToPlayer2() 공개 메소드

public AwardPointToPlayer2 ( ) : void
리턴 void

PrintScore() 공개 메소드

public PrintScore ( ) : string
리턴 string