예제 #1
0
 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);
     }
 }
예제 #2
0
 public void NotifyCapturedPiece(Piece lostPiece, Piece capturingPiece)
 {
     Pieces.Remove(lostPiece);
     LostPieces.Add(lostPiece);
 }