コード例 #1
0
        public void Process_Get1MineAfterDrinkingTwice_4Mines15Turns42Profit()
        {
            var map   = MapTest.Map10Mines8;
            var state = State.Create(1,
                                     new Hero(99, 8, 9, 0, 2),
                                     new Hero(01, 1, 0, 0, 0),
                                     new Hero(50, 3, 2, 0, 0),
                                     new Hero(99, 8, 8, 0, 0),
                                     MineOwnership.Parse(".22......"));

            var collection = SafePathCollection.Create(map, state);

            collection.Procces();
            foreach (var item in collection)
            {
                Console.WriteLine(item.DebuggerDisplay);
            }

            var act = collection.BestPath;
            var exp = new SafePath(3, 7, 13, MoveDirection.E);

            Assert.AreEqual(exp, act);
        }