Exemple #1
0
        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);
        }
Exemple #2
0
 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();
 }