internal bool IsAdjacent(Field f) { return Abs(Position.X - f.Position.X) <= 1 && Abs(Position.Y - f.Position.Y) <= 1; }
private int GetAdjacentMinnedsOf(Field fd) { return Board.Where(i => i.IsMinned && fd.IsAdjacent(i)).Count(); }
public Field(Field fd) { IsMinned = fd.IsMinned; AdjecentMinnedFields = fd.AdjecentMinnedFields; Position = fd.Position; }
public ModelViewField(Field field) : base(field) { }