Example #1
0
        public Trials(FreeStrategy strategy)
        {
            var logger = new NullLogger();

            for (var i = 0; i < TrialCount; i++)
            {
                var q = new Quest(strategy, 1, logger).FromRivendell();
                if (q.IsCorrupted())
                {
                    SARVs.Increment(q.Turns);
                }
                else if (q.IsRingDestroyed())
                {
                    FPRVs.Increment(q.Turns);
                }
                else
                {
                    Debug.Assert(false, "This game isn't finished. Why?");
                }
            }
        }