class ĠT enn is Game 1 Ġ: ĠT enn is Game Ġ{ ĊĊĠĠĠ Ġprivate Ġvar Ġplayer One Points : ĠInt Ġ= Ġ 0 ĊĠĠĠ Ġprivate Ġvar Ġplayer Two Points : ĠInt Ġ= Ġ 0 ĊĊĠĠĠ Ġoverride Ġfun Ġwon Point ( player Name : ĠString ) Ġ{ ĊĠĠĠĠĠĠĠ Ġif Ġ( player Name Ġ=== Ġ" player 1 ") Ġplayer One Points ++ Ġelse Ġplayer Two Points ++ ĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġget Score (): ĠString Ġ{ ĊĠĠĠĠĠĠĠ Ġif Ġ( are T ied ()) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġreturn Ġget Score When Are T ied () ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġreturn Ġif Ġ( has Players More Than 3 Points ()) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġget Score When Players Has More Than 3 Points () ĊĠĠĠĠĠĠĠ Ġ} Ġelse Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġget Score Word ( player One Points ) Ġ+ Ġ"-" Ġ+ Ġget Score Word ( player Two Points ) ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġget Score When Players Has More Than 3 Points (): ĠString Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġminus Result Ġ= Ġcalculate Diff Points () ĊĠĠĠĠĠĠĠ Ġreturn Ġif Ġ( is Player One Win ning By One Point ( minus Result )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" Adv antage Ġplayer 1 " ĊĠĠĠĠĠĠĠ Ġelse Ġif Ġ( is Player Two Win ning By Two Points ( minus Result )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" Adv antage Ġplayer 2 " ĊĠĠĠĠĠĠĠ Ġelse Ġif Ġ( is Player One Win ning By Two Points ( minus Result )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" Win Ġfor Ġplayer 1 " ĊĠĠĠĠĠĠĠ Ġelse ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" Win Ġfor Ġplayer 2 " ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġget Score Word ( temp Score : ĠInt ): ĠString Ġ{ ĊĊĠĠĠĠĠĠĠ Ġreturn Ġwhen Ġ( temp Score ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠ 0 Ġ-> Ġ" Lo ve " ĊĠĠĠĠĠĠĠĠĠĠĠĠ 1 Ġ-> Ġ" F if teen " ĊĠĠĠĠĠĠĠĠĠĠĠĠ 2 Ġ-> Ġ" Th irty " ĊĠĠĠĠĠĠĠĠĠĠĠ Ġelse Ġ-> Ġ" Fort y " ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġis Player One Win ning By Two Points ( minus Result : ĠInt ) Ġ= Ġminus Result Ġ>= Ġ 2 ĊĊĠĠĠ Ġprivate Ġfun Ġis Player Two Win ning By Two Points ( minus Result : ĠInt ) Ġ= Ġminus Result Ġ== Ġ- 1 ĊĊĠĠĠ Ġprivate Ġfun Ġis Player One Win ning By One Point ( minus Result : ĠInt ) Ġ= Ġminus Result Ġ== Ġ 1 ĊĊĠĠĠ Ġprivate Ġfun Ġcalculate Diff Points () Ġ= Ġplayer One Points Ġ- Ġplayer Two Points ĊĊĠĠĠ Ġprivate Ġfun Ġhas Players More Than 3 Points () Ġ= Ġplayer One Points Ġ>= Ġ 4 Ġ|| Ġplayer Two Points Ġ>= Ġ 4 ĊĊĠĠĠ Ġprivate Ġfun Ġget Score When Are T ied () Ġ= Ġwhen Ġ( player One Points ) Ġ{ ĊĠĠĠĠĠĠĠĠ 0 Ġ-> Ġ" Lo ve - All " ĊĠĠĠĠĠĠĠĠ 1 Ġ-> Ġ" F if teen - All " ĊĠĠĠĠĠĠĠĠ 2 Ġ-> Ġ" Th irty - All " ĊĠĠĠĠĠĠĠ Ġelse Ġ-> Ġ" De uce " ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġare T ied () Ġ= Ġplayer One Points Ġ== Ġplayer Two Points Ċ } Ċ