コード例 #1
0
        public void CreateTwoRandomGrids_SameRandomSeed()
        {
            var randomGenerator1 = new CustomDayGenerator(26, 04, 2020);
            var randomGenerator2 = new CustomDayGenerator(26, 04, 2020);

            var grid1 = RandomGridGenerator.GenerateRandomGrid(randomGenerator1);
            var grid2 = RandomGridGenerator.GenerateRandomGrid(randomGenerator2);

            AssertGridsEqual(grid1, grid2);
        }
コード例 #2
0
        public void CreateTwentyRandomGrids()
        {
            var randomGenerator = new CustomDayGenerator(26, 04, 2020);

            for (int i = 0; i < 20; i++)
            {
                Debug.Log(i + 1);

                var grid = RandomGridGenerator.GenerateRandomGrid(randomGenerator);

                PrintGrid(grid);
            }
        }