示例#1
0
文件: King.cs 项目: Ofri-Chen/Chess
 public override Point[] GetPossibleMoves(Piece[][] board)
 {
     return(MovesCalculator.CalculateMoves(this, board, MovesCalculator.OneSquareToAnyDirection));
 }
示例#2
0
文件: Rock.cs 项目: Ofri-Chen/Chess
 public override Point[] GetPossibleMoves(Piece[][] board)
 {
     return(MovesCalculator.CalculateMoves(this, board, MovesCalculator.StraightLine));
 }