Esempio n. 1
0
 static King()
 {
     int[] dRows = new int[] { -1, -1, -1, 0, 0, 1, 1, 1 };
     int[] dCols = new int[] { -1, 0, 1, -1, 1, -1, 0, 1 };
     King.MovePattern = new MovePattern(dRows, dCols, false);
 }
Esempio n. 2
0
 public SimpleMovePiece(Field pos, PieceType type, Color color, MovePattern movePattern, int moveCount = 0)
     : base(pos, type, color, moveCount)
 {
     this.MovePattern = movePattern;
 }