Esempio n. 1
0
 public static void BroadcastWinner()
 {
     if (Players.Any(i => i.Point >= GameWinPoint))
     {
         ShapesPanel.Clear();
         BroadcastShapes();
         RequestSendMessage($"{Players.First(i => i.Point >= GameWinPoint).Name} ({Players.First(i => i.Point >= GameWinPoint).Point}) is Won");
         RequestSendMessage($"Game Finished");
         GameRunning = false;
     }
 }
Esempio n. 2
0
 // ClearShapes: Clear the ShapesPanel, and re-broadcast it to all other clients
 private static void ClearShapes()
 {
     ShapesPanel.Clear();
     BroadcastShapes();
 }