public void UpdatePieces(IMoveResult moveResult) { foreach (var lostPiece in moveResult.GetLostPieces().Where(p => p.PlayerId == Id)) { ActiveSquares.Remove(moveResult.UpdatedSquares.Single(s => s.ContainedPiece == lostPiece)); LostPieces.Add(lostPiece); } }
public void NotifyCapturedPiece(Piece lostPiece, Piece capturingPiece) { Pieces.Remove(lostPiece); LostPieces.Add(lostPiece); }