private void btnStart_Click(object sender, EventArgs e) { Random num = new Random(); int player = num.Next(1, 10) % 2; table = new ConnectFourTable(player); updateTable(); displayPlayer(table.Turn); setVisibility(true); }
public void assignLabel(Label label, ConnectFourTable gameTable, int x, int y) { label.BackColor = findColor(gameTable.C4Table[x, y]); label.ForeColor = Color.White; label.Text = gameTable.C4Table[x, y].ToString(); }