static string PlayerName1;
static string PlayerName2;
static int Player1PointsScored;
static int Player2PointsScored;
static string[] ScoreDisplay = new[] {"Love", "15", "30", "40", "Game"};
public static void Main()
while (GameIsOver() == false)
if (Player1PointsScored >= 4 || Player2PointsScored >=4)
public static void GetPlayerNames()
Console.WriteLine("Player name 1:");
PlayerName1 = Console.ReadLine();
Console.WriteLine("Player name 2:");
PlayerName2 = Console.ReadLine();
Console.WriteLine("Good luck, Sam!");
Console.WriteLine("Good luck, Tom!");
public static void GetNextScore()
Console.WriteLine("Who scored the point? Enter A for " + PlayerName1 + " or B for " + PlayerName2);
whoScored = Console.ReadLine();
if ( whoScored == "A" || whoScored == "a")
if ( whoScored == "B" || whoScored == "b")
else Console.WriteLine("That isn't a valid letter you silly sausage");
public static void SetScoresToZero()
public static void PrintCurrentScores()
Console.WriteLine("Current Score:" + ScoreDisplay[Player1PointsScored] + "-" + ScoreDisplay[Player2PointsScored]);
public static bool GameIsOver()
if (Player1PointsScored >= 4)
Console.WriteLine(PlayerName1 + " wins!");
if (Player2PointsScored >= 4)
Console.WriteLine(PlayerName2 + " wins!");