예제 #1
0
파일: GameEngine.cs 프로젝트: gvallejo/2048
        public GameEngine(IBoard board, IMoveProcessor moveProcessor, IAIModule aiModule, IGameInput input, IGameOutput output)
        {
            _board = board;
            this.MoveProcessor = moveProcessor;
            this.MoveProcessor.Board = _board;
            this.AIModule = aiModule;
            this.Input = input;
            this.Output = output;

            this.Input.OnMoveReceived += Input_OnMoveReceived;
        }
예제 #2
0
 public Processor(IMoveProcessor moveProcessor)
 {
     _moveProcessor = moveProcessor;
 }