public Board(int width, int height) { Width = width; Height = height; Randomize(); floodFiller = new FloodFiller(colors); }
// Used to populate the board in a networked game public Board(Data data) { Width = data.Width; Height = data.Height; SetColors(data.Colors); floodFiller = new FloodFiller(colors); }
public int GetConnectedColorsCount(Vector2D square) { var testFloodFiller = new FloodFiller((Color[, ])colors.Clone()); testFloodFiller.SetColor((int)square.X, (int)square.Y, Color.TransparentWhite); return(testFloodFiller.ProcessedCount); }
public int GetConnectedColorsCount(Vector2D square) { var testFloodFiller = new FloodFiller((Color[,])colors.Clone()); testFloodFiller.SetColor((int)square.X, (int)square.Y, Color.TransparentWhite); return testFloodFiller.ProcessedCount; }