Beispiel #1
0
        public void Run()
        {
            A.Reset();
            B.Reset();

            _a = new PlayerCard(_a);
            _b = new PlayerCard(_b);
            T  = 0;

            while (T < Length)
            {
                Choices a, b;

                a = A.Choice(this);
                b = B.Choice(this);

                if (a == Choices.R)
                {
                    HasRandom = true;
                    a         = RandomChoice();
                }
                if (b == Choices.R)
                {
                    HasRandom = true;
                    b         = RandomChoice();
                }

                _a.AddPast(a, b);
                _b.AddPast(b, a);
                T++;
            }
        }