void DoTurn() { Phase = BettingPhase.Turn; AddCards(1); if (Output) { Console.Write("\nTurn: "); Card.PrintCards(Cards[4], Cards[5], Cards[6], Cards[7]); GamePrint(); } PlayerA.SetTurn(Cards[7]); PlayerB.SetTurn(Cards[7]); if (BetNode.SimultaneousBetting) DoBetting_Simultaneous(Setup.Turn); else { ActivePlayerPosition = Player.Dealer; DoBetting_Complex(Setup.RaiseAmount); } }
void DoPockets() { Phase = BettingPhase.PreFlop; AddCards(4); if (Output) GamePrint("\nBeginning of round.\n"); PlayerA.SetPocket(Cards[0], Cards[1]); PlayerB.SetPocket(Cards[2], Cards[3]); if (BetNode.SimultaneousBetting) DoBetting_Simultaneous(Setup.PreFlop); else { ActivePlayerPosition = Player.Button; SpentA = Setup.LittleBlind; SpentB = Setup.BigBlind; DoBetting_Complex(Setup.RaiseAmount); } }
public SimultaneousNode(Node parent, int Spent, int Pot, BettingPhase Phase) : base(parent, Spent, Pot) { this.Phase = Phase; Initialize(); }
void DoFlop() { Phase = BettingPhase.Flop; AddCards(3); if (Output) { Console.Write("\nFlop: "); Card.PrintCards(Cards[4], Cards[5], Cards[6]); GamePrint(); } PlayerA.SetFlop(Cards[4], Cards[5], Cards[6]); PlayerB.SetFlop(Cards[4], Cards[5], Cards[6]); if (BetNode.SimultaneousBetting) DoBetting_Simultaneous(Setup.Flop); else { ActivePlayerPosition = Player.Dealer; DoBetting_Complex(Setup.RaiseAmount); } }
//public static Node GetJunction(BettingPhase Phase, Node parent, int Spent, int Pot) //{ // return new PocketShowdownNode(parent, Pot); //} public static Junction GetJunction(BettingPhase Phase, Node Parent, int Spent, int Pot) { return new Junction(Parent, Parent.MyCommunity, Spent, Pot); }