Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
C#
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
CleanCode
Tennis
APlayerLeadsByOnePoint
CleanCode.Tennis.APlayerLeadsByOnePoint C# (CSharp) Method
Tennis Class Documentation
Show file
Open project: alexyork/Samples
APlayerLeadsByOnePoint()
private
method
private
APlayerLeadsByOnePoint
( ) :
bool
return
bool
private bool APlayerLeadsByOnePoint() { return Math.Abs(pointsForPlayer1 - pointsForPlayer2) == 1; }
Tennis
APlayerLeadsByOnePoint
AwardPointToPlayer1
AwardPointToPlayer2
BothPlayersHaveFortyOrMore
BothPlayersHaveTheSameScore
GetScore
LeadingPlayer
OnePlayerLeadsFortyToLove
PrintScore