Esempio n. 1
0
        private void Reset()
        {
            var simulationResult = _gameStrategy.Reset();

            _result = new SimulationResultViewModel(simulationResult);

            _eventAggregator
            .GetEvent <UpdateBrainMessage>()
            .Publish(_result);
        }
Esempio n. 2
0
        private void Move(string?direction)
        {
            var simulationResult = _gameStrategy.Move(_result.SelectedState.State, direction);

            _result = new SimulationResultViewModel(simulationResult);

            _eventAggregator
            .GetEvent <UpdateBrainMessage>()
            .Publish(_result);
        }