private void btnJoin_Click(object sender, RoutedEventArgs e) { playerID = words.PStats.Count; Player p = new Player(); p.Nickname = "Player " + playerID; p.Score = 0; words.AddPlayer(p); btnJoin.IsEnabled = false; btnSitOut.IsEnabled = true; }
//Add a player to the game public void AddPlayer(Player p) { pStats_.Add(p); details = "Player Added!"; updateAllClients(true); }