Пример #1
0
 String disambiguationFile()
 {
     foreach (Move move in this.board.getCurrentPlayer().getLegalMoves())
     {
         if (move.getDestinationCoordinate() == this.destinationCoordinate && !this.Equals(move) &&
             this.movedPiece.getPieceType().GetPieceType().Equals(move.getMovedPiece().getPieceType()))
         {
             return(BoardUtils.getPostionAtCoordinate(this.movedPiece.getPiecePosition()).Substring(0, 1));
         }
     }
     return("");
 }
Пример #2
0
 public override string ToString()
 {
     return(BoardUtils.getPostionAtCoordinate(this.destinationCoordinate));
 }
Пример #3
0
 public override string ToString()
 {
     return(BoardUtils.getPostionAtCoordinate(this.movedPiece.getPiecePosition()).Substring(0, 1) +
            "x" +
            BoardUtils.getPostionAtCoordinate(this.destinationCoordinate));
 }
Пример #4
0
 public override string ToString()
 {
     return(movedPiece.getPieceType().GetPieceType() + disambiguationFile() + "x" +
            BoardUtils.getPostionAtCoordinate(this.destinationCoordinate));
 }