public void PassingTest()
        {
            GameDataParser gameDataParser = new GameDataParser();
            GameData       gameData       = gameDataParser.GetGameData(GameData.SuccessPath);

            GameSimulation simulation = new GameSimulation();

            simulation.Init(
                gameData.BoardSize,
                gameData.StartingPosition,
                gameData.EndPosition,
                gameData.MinePositions,
                gameData.ActionSequences[0].ToList()
                );

            Assert.Equal(5, Add(2, 2));
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            GameDataParser gameDataParser = new GameDataParser();
            GameData       gameData       = gameDataParser.GetGameData(GameData.FilePathSuccess);

            foreach (string[] sequence in gameData.ActionSequences)
            {
                GameSimulation simulation = new GameSimulation();
                simulation.Init(
                    gameData.BoardSize,
                    gameData.StartingPosition,
                    gameData.TurtleRotation,
                    gameData.EndPosition,
                    gameData.MinePositions,
                    sequence.ToList()
                    );

                System.Console.WriteLine("------Simulation Started------");
                simulation.RunSimulation();
                simulation.LogResult();
            }
        }