Exemplo n.º 1
0
 protected void RemovePiece(Position from, IGameState state)
 {
     state.NewEmptyPiece(from);
 }
Exemplo n.º 2
0
 protected void RollbackMovePiece(Position from, Position to, IGameState state)
 {
     state[from] = state[to];
     state[from].Unmove();
     state.NewEmptyPiece(to);
 }
Exemplo n.º 3
0
 protected void MovePiece(Position from, Position to, IGameState state)
 {
     state[to] = state[@from];
     state[to].Move(to);
     state.NewEmptyPiece(from);
 }