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