private static void DoWinTheGame(Player player, Location location) { if (player == null) { throw new ArgumentNullException($"Error: LocationAction DoWinTheGame null player."); } if (location == null) { throw new ArgumentNullException($"Error: LocationAction DoWinTheGame null location."); } if (player.IsAlive && player.Location == location) { GameEngine.SayToAll($"Congratulations to {player.Name} for deftly making it to THE TOWN and conquering the game!"); if (player.HasClient) { player.Client.SendUpdate($"\n\nCongratulations to you for deftly making it to THE TOWN and conquering the game!\nBUT IS THIS REALLY THE END?"); player.Client.KickClient("You won!"); } GameEngine.Players.Remove(player); } else { GameEngine.SayToLocation(player.Location, $"{player.Name} was about to win the game but was interrupted!"); } }