コード例 #1
0
ファイル: Rook.cs プロジェクト: edsalisb/SalisburyChessEngine
 public Rook(bool isWhite, Func <string, Cell> getCell, string coordinates, King enemyKing) : base(isWhite, coordinates, getCell)
 {
     this.getCell     = getCell;
     this.TypeOfPiece = PieceType.Rook;
     this.EnemyKing   = enemyKing;
 }
コード例 #2
0
 public Bishop(bool isWhite, Func <string, Cell> getCell, string coordinates, King enemyKing) : base(isWhite, coordinates, getCell)
 {
     this.EnemyKing   = enemyKing;
     this.TypeOfPiece = PieceType.Bishop;
 }