Demos/RpsGame_RefactoredWithDb-testingInMemoryExample/RpsGameMain/Match.cs
/// <summary>
/// This methodvtakes an optional Player object and increments the number of round wins for that player.
/// no arguments means a tie.
/// </summary>
/// <param name="p"></param>
This methodvtakes an optional Player object and increments the number of round wins for that player.
no arguments means a tie.
This methodvtakes an optional Player object and increments the number of round wins for that player . no arguments means a tie .
public void RoundWinner(Player p = null)
        {
            if (p == null)
            {
                ties++;
            }
            else if (p.playerId == Player1.playerId)
            {
                p1RoundWins++;
            }
            else if (p.playerId == Player2.playerId)
            {
                p2RoundWins++;
            }
        }
public void RoundWinner ( Player p = null ) { if ( p == null ) { ties ++ ; } else if ( p . playerId == Player1 . playerId ) { p1RoundWins ++ ; } else if ( p . playerId == Player2 . playerId ) { p2RoundWins ++ ; } }
This methodvtakes an optional Player object and increments the number of round wins for that player.
This methodvtakes an optional Player object and increments the number of round wins for that player .
p
Player
None