public formMain() { InitializeComponent(); gameBoard = new Board(); engine = new gfxSettings(panelBoard); gameBoard.initBoard(engine, panelBoard, labelScore); gameBoard.resetScore(); }
public void initBoard(gfxSettings mainGFX, Panel panelBoard, Label labelScore) { p = panelBoard; g = mainGFX; l = labelScore; tileWidth = p.Size.Width / 3; refill(); }
private void panelMain_Paint(object sender, PaintEventArgs e) { engine = new gfxSettings(panelBoard); gameBoard.initBoard(engine, panelBoard, labelScore); }