Exemple #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            FileStream fs         = new FileStream(textBoxFile.Text, FileMode.CreateNew);
            int        card_count = Convert.ToInt32(textBoxCards.Text);

            BingoGameCore3.CardMaster.CardFactory cards = new BingoGameCore3.CardMaster.CardFactory(75);
            int n;

            for (n = 0; n < card_count; n++)
            {
                byte[, ,] face = cards.Create(null, 1, 0, 1, false);

                byte[] output = DataFormat(face);
                fs.Write(output, 0, 12);
            }
            fs.Close();
        }
Exemple #2
0
        public void DropBalls()
        {
            CardMaster.CardFactory cf = new BingoGameCore3.CardMaster.CardFactory();
            byte[, ,] card = cf.Create(1, false);
            balls          = new byte[24];
            int n = 0;

            for (int col = 0; col < 5; col++)
            {
                for (int row = 0; row < 5; row++)
                {
                    if (row == 2 && col == 2)
                    {
                        continue;
                    }
                    balls[n++] = card[0, col, row];
                }
            }
            //throw new Exception("The method or operation is not implemented.");
        }