Пример #1
0
 /// <summary>
 /// Translates the BoardPosition by the given amount in the row and column directions, returning a new
 /// position.
 /// </summary>
 /// <param name="direction">a BoardDirection object giving the amount to change the new position's row and column by</param>
 /// <returns>a new BoardPosition object that has been translated from the source</returns>
 public BoardPosition Translate(BoardDirection direction)
 {
     return(Translate(direction.RowDelta, direction.ColDelta));
 }
Пример #2
0
 public FlipSet(BoardDirection direction, sbyte count)
 {
     Direction = direction;
     Count     = count;
 }