Exemple #1
0
        public GameHarness(TestGameSettings gameSettings, string?debugFilePath = null)
        {
            _gameClock    = new TestGameClock();
            _gameSettings = gameSettings;

            Game = new Game(_gameClock, _gameSettings);

            _now = DateTime.UtcNow;

            _createDebugFile = !string.IsNullOrWhiteSpace(debugFilePath);
            _debugFilePath   = debugFilePath;

            if (_createDebugFile)
            {
                File.WriteAllText(debugFilePath, $"{DateTime.Now} - {debugFilePath}" + System.Environment.NewLine);
            }
        }
Exemple #2
0
 public AsciiTestSettingBuilder(TestGameSettings gameSettings)
 {
     _gameSettings = gameSettings;
 }