public Game(IEnumerable <Player> players) { foreach (var player in players) { Players.AddLast(player); } }
public void AddPlayer(GamePlayer player) { player.SeatNumber = Players.Count + 1; player.SetCurrentStack(TableConfig.StartingChipCount); //TODO: Check if the player is reconnecting or something var playersNode = Players.AddLast(player); PlayersMap[player.Id] = playersNode; HandlePlayerCountChange(); }
/// <summary> /// Adding a player to the list of player /// </summary> /// <param name="player">the player to add</param> public void AddPlayer(Player player) { Players.AddLast(player); _nbPlayer++; }