private static Random random = new Random();
public static void main(string[] args)
player = random.Next(2) + 1;
while (!(p1Score <= 0 || p2Score <= 0))
p1Score = p1Score - (random.Next(5) + 6);
p2Score = p2Score - (random.Next(5) + 6);
output(" Player 1 reached 0 first " + "\n");
output(" Player 2 reached 0 first " + "\n");
private static output(string text)