示例#1
0
        private bool isLegalContinuousMove(Board.Cell i_SourceCell, Board.Cell i_TargetCell)
        {
            bool isSourceCellLegal = i_SourceCell.Equals(m_TargetCell);
            bool isTargetCellLegal = (r_Board.GetCoin(i_TargetCell) == null) && r_Board.GetCoin(i_SourceCell).ObligatoryMoves.Contains(i_TargetCell);

            return(isSourceCellLegal && isTargetCellLegal);
        }
示例#2
0
 private bool isRelevantCell(Board.Cell i_PotentialCell, Board.Cell i_CompareToCell)
 {
     return(!i_PotentialCell.Equals(i_CompareToCell));
 }