示例#1
0
 public Pieces(Color color, Point currentPosition, ChessPieceSymbol type)
 {
     this.PieceType       = type;
     this.PieceColor      = color;
     this.CurrentPosition = currentPosition;
     this.ListOfMoves     = new List <Move>();
 }
示例#2
0
 public Pieces(Point currentPosition, Color color, bool hasBeenMoved, ChessPieceSymbol type)
 {
     this.PieceType       = type;
     this.PieceColor      = color;
     this.CurrentPosition = currentPosition;
     this.hasBeenMoved    = false;
     this.ListOfMoves     = new List <Move>();
 }
示例#3
0
 public Pawn(Color color, Point CurrentPosition, bool HasbeenMoved, ChessPieceSymbol type = ChessPieceSymbol.Pawn)
     : base(CurrentPosition, color, HasbeenMoved, type)
 {
     this.Value = 20;
 }
示例#4
0
 public King(Color color, Point CurrentPosition, ChessPieceSymbol type = ChessPieceSymbol.King)
     : base(color, CurrentPosition, type)
 {
     this.Value = 0;
 }
示例#5
0
 public Rook(Color color, Point CurrentPosition, bool hasBeenMoved, ChessPieceSymbol type = ChessPieceSymbol.Rook)
     : base(color, CurrentPosition, type)
 {
     this.Value = 70;
 }
示例#6
0
 public Bishop(Color color, Point CurrentPosition, ChessPieceSymbol type = ChessPieceSymbol.Bishop)
     : base(color, CurrentPosition, type)
 {
     this.Value = 50;
 }
示例#7
0
 public Horse(Color color, Point CurrentPosition, ChessPieceSymbol type = ChessPieceSymbol.Horse) : base(color, CurrentPosition, type)
 {
     this.Value = 60;
 }
示例#8
0
 public Queen(Color color, Point CurrentPosition, ChessPieceSymbol type = ChessPieceSymbol.Queen)
     : base(color, CurrentPosition, type)
 {
     this.Value = 100;
 }