コード例 #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
ファイル: Processor.cs プロジェクト: MehmetOzgul/MarsRover
 public Processor(IMoveProcessor moveProcessor)
 {
     _moveProcessor = moveProcessor;
 }