public Table(MyCard.Deck d, int playerCount, IncInformationForm incForm) { folded = false; deal = new Deal(this); this.controls = incForm; riverHidden = new MyCard.Card("unknown", Properties.Resources.back); turnHidden = new MyCard.Card("unknown", Properties.Resources.back); flopH1 = new MyCard.Card("unknown", Properties.Resources.back); flopH2 = new MyCard.Card("unknown", Properties.Resources.back); flopH3 = new MyCard.Card("unknown", Properties.Resources.back); this.deck = d; this.bigBlind = 50; this.smallBlind = 25; for (int i = 0; i < playerCount; i++) { // players.Add(new Player.AIPlayer(1000, i, this,new Parameters(0))); Player.HumanPlayer hp = new Player.HumanPlayer(1000, i, this); players.Add(new Player.HumanPlayer(1000, i, this)); players.ElementAt(i).setCards(deck.getCard(), deck.getCard()); players.ElementAt(i).setPos(Player.Position.None); } players[0].setPos(Player.Position.SmallBlind); smallBLoc = 0; // controls.playerVis[0].typeLBL.Text += "SB"; players[1].setPos(Player.Position.BigBlind); bigBLoc = 1; // controls.playerVis[1].typeLBL.Text += "BB"; }
public Table(MyCard.Deck d, int playerCount, IncInformationForm incForm) { folded = false; deal = new Deal(this); this.controls = incForm; riverHidden = new MyCard.Card("unknown", Properties.Resources.back); turnHidden = new MyCard.Card("unknown", Properties.Resources.back); flopH1 = new MyCard.Card("unknown", Properties.Resources.back); flopH2 = new MyCard.Card("unknown", Properties.Resources.back); flopH3 = new MyCard.Card("unknown", Properties.Resources.back); this.deck = d; this.bigBlind = 50; this.smallBlind = 25; this.playerCount = playerCount; for (int i = 0; i < playerCount; i++) { players.Add(new Player.HumanPlayer(1000, i, this)); players.ElementAt(i).setCards(deck.getCard(), deck.getCard()); players.ElementAt(i).setPos(Player.Position.None); } players[0].setPos(Player.Position.SmallBlind); smallBLoc = 0; controls.playerVis[0].typeLBL.Text += "SB"; players[1].setPos(Player.Position.BigBlind); bigBLoc = 1; controls.playerVis[1].typeLBL.Text += "BB"; }