Exemple #1
0
        public void thing()
        {
            thing1.Add(new Rosemary(), new Thyme());
            thing2.Add(new Basil(), new Thyme());
            thing3.Add(new Chives(), new Basil());
            thing4.Add(default(T), default(T1));
            moreThing.Add(new Basil(), new Rosemary());
            anotherThingEntirely.Method("", 1);

            thing3.Add(new Chives(), new Basil());
            thing3.Add(new Chives(), new Basil());
            anotherThingEntirely.Method("", 1);
        }
Exemple #2
0
 public void Raise(IPlayer player, ref bool raising, ref double raise, ref int call, IPot pot)
 {
     player.Raise(Convert.ToInt32(raise));
     pot.Add(Convert.ToInt32(raise));
     call = Convert.ToInt32(raise);
     raising = true;
 }
Exemple #3
0
        public void ImALittleTeapot(short stout)
        {
            _teapot.Find("Handle");
            _teapot.Find("Spout");

            _teapot.Add(new Tea());
        }
Exemple #4
0
 public void Raise(IPlayer player, ref bool raising, ref double raise, ref int call, IPot pot)
 {
     player.Raise(Convert.ToInt32(raise));
     pot.Add(Convert.ToInt32(raise));
     call    = Convert.ToInt32(raise);
     raising = true;
 }
Exemple #5
0
        public void Smooth(IPlayer player, int n, int r, int call, IPot pot, ref double Raise, ref bool raising)
        {
            if (call <= 0)
            {
                this.playerActions.Check(player, ref raising);
            }
            else
            {
                if (call >= RoundN(player.Chips, n))
                {
                    if (player.Chips > call)
                    {
                        this.playerActions.Call(player, ref raising, call, pot);
                    }
                    else if (player.Chips <= call)
                    {
                        raising                 = false;
                        player.IsInTurn         = false;
                        player.Chips            = 0;
                        player.StatusLabel.Text = "Call " + player.Chips;
                        pot.Add(player.Chips);
                        //textboxPot.Text = (int.Parse(textboxPot.Text) + player.Chips).ToString();
                    }
                }
                else
                {
                    if (Raise > 0)
                    {
                        if (player.Chips >= Raise * 2)
                        {
                            Raise *= 2;
                            this.playerActions.Raise(player, ref raising, ref Raise, ref call, pot);
                        }
                        else
                        {
                            this.playerActions.Call(player, ref raising, call, pot);
                        }
                    }
                    else
                    {
                        Raise = call * 2;
                        this.playerActions.Raise(player, ref raising, ref Raise, ref call, pot);
                    }
                }
            }

            if (player.Chips <= 0)
            {
                player.FoldedTurn = true;
            }
        }
Exemple #6
0
 public void Call(IPlayer player, ref bool raising, int call, IPot pot)
 {
     raising = false;
     player.Call(call);
     pot.Add(call);
 }
Exemple #7
0
        public void Smooth(IPlayer player, int n, int r, int call, IPot pot, ref double Raise, ref bool raising)
        {
            if (call <= 0)
            {
                this.playerActions.Check(player, ref raising);
            }
            else
            {
                if (call >= RoundN(player.Chips, n))
                {
                    if (player.Chips > call)
                    {
                        this.playerActions.Call(player, ref raising, call, pot);
                    }
                    else if (player.Chips <= call)
                    {
                        raising = false;
                        player.IsInTurn = false;
                        player.Chips = 0;
                        player.StatusLabel.Text = "Call " + player.Chips;
                        pot.Add(player.Chips);
                        //textboxPot.Text = (int.Parse(textboxPot.Text) + player.Chips).ToString();
                    }
                }
                else
                {
                    if (Raise > 0)
                    {
                        if (player.Chips >= Raise * 2)
                        {
                            Raise *= 2;
                            this.playerActions.Raise(player, ref raising, ref Raise, ref call, pot);
                        }
                        else
                        {
                            this.playerActions.Call(player, ref raising, call, pot);
                        }
                    }
                    else
                    {
                        Raise = call * 2;
                        this.playerActions.Raise(player, ref raising, ref Raise, ref call, pot);
                    }
                }
            }

            if (player.Chips <= 0)
            {
                player.FoldedTurn = true;
            }
        }
Exemple #8
0
 public void Call(IPlayer player, ref bool raising, int call, IPot pot)
 {
     raising = false;
     player.Call(call);
     pot.Add(call);
 }