예제 #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);
        }
예제 #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();
 }