Ejemplo n.º 1
0
 public KingSurvivalEngineContext(IRenderer renderer, IInputProvider inputProvider, IBoard board, IWinningConditions winningConditions, IList <IPlayer> players)
 {
     this.renderer           = renderer;
     this.provider           = inputProvider;
     this.winningConditions  = winningConditions;
     this.players            = players;
     this.memory             = new BoardMemory();
     this.currentPlayerIndex = 0;
     this.board      = board;
     this.kingPlayer = this.players[0];
     this.pawnPlayer = this.players[1];
 }
Ejemplo n.º 2
0
 public CommandContext(BoardMemory memento, IBoard board, IPlayer player)
 {
     this.Memory = memento;
     this.Board  = board;
     this.Player = player;
 }