public bool IsItSuitable(Button[] Ship) { foreach (Button MyShip in Ship) { (int i, int j) = MyField.FindIndex(MyShip.Location.X, MyShip.Location.Y); if (IsItTrue(i, j)) { return(false); } } return(true); }
public AI(MyField EF) { this.EF = EF; }