Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

C# Game-MineTracker

0.00/5 (No votes)
8 Jun 2009 1  
A step ahead to MInesweeper. Game shouldn't be based on luck, if necessary give hints to user.
intnamGame.PNG 

Introduction

This game is of 2-D puzzel type, where user needn't to apply luck to intiate the game or where-ever user feels ambiguity, game itself will help him through help sections.

Background

I had played Minesweeper, and feel we have only 33% probability of first right click on any box. If we get the any safe box, then also the things will not become transparent, even then we have to apply luck although the percentage decreases as compared to the initial level. Here, i tried to make it lilte more logical than luck through help section and all.

Here, i had tried to standardise view of the clock and timing pulse. In this Clock the total 4 quard is quantised in 8 pulses and every pulse will make the white flag (just below to clock) to red. The total time in user hand is 4*9 quads (36 quads) each of 2 second pulse, as total 72 seconds.

In Gammer section, a small application of SAPI5.1 TTS is applied, if you want to go through Gammer section click on the 2nd row, 2nd cols button and type "intnam" as identification key. Follow the instuction and you will get all the mines detected.

Using the Code

//------------------------Help Section-1------------------------------------------------

//------------------------Code is not optimised------------------------------------------

//------------------------This is the Demo. One of the help section .--------

//-----------------------Specification key for Gammer is - intnam-----------------------

int helprow = 0, helpcol = 0;
private void help1_CheckedChanged_1(object sender, EventArgs e)
{
    help2.Enabled = true;
    int x, y;
    helplbl2.ForeColor = System.Drawing.Color.SpringGreen;

    help1.ForeColor = System.Drawing.Color.SpringGreen;
    //for loop for rows (displaying explosive on the particular location of the button)
    for (int i = 0; i < 10; i++)
        //for loop for collumns (displaying explosive on the particular location
        //of the button)
        for (int j = 0; j < 10; j++)
        {
            //checking explosive array value as 9 accordinglly with buttons possition
            if ((explo[i, j] == 9) && (helpcount == 0))
            {
                if ((i == 0) && (helpcount == 0))//||(helpcount2==0))) // displaying explosive for buttons in row-1
                {
                    if ((j == 0) && (helpcount == 0)) // displaying explosive for button-1
                    {
                        bob1.Hide();
                        pictureBox1.Image = imageList2.Images[1];
                        pictureBox1.Show();
                        pictureBox1.Show();
                        x = bob1.Location.X;
                        y = bob1.Location.Y;
                        pictureBox1.Location = new System.Drawing.Point(x, y);
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 1) && (helpcount == 0)) // displaying explosive for button-2
                    {
                        bob2.Hide();
                        pictureBox2.Image = imageList2.Images[1];
                        pictureBox2.Show();
                        //lbl2.Show();
                        x = bob2.Location.X;
                        y = bob2.Location.Y;
                        pictureBox2.Location = new System.Drawing.Point(x, y);
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 2) && (helpcount == 0)) // displaying explosive for button-3
                    {
                        bob3.Hide();
                        //lbl3.Show();
                        pictureBox3.Image = imageList2.Images[1];
                        pictureBox3.Show();
                        x = bob3.Location.X;
                        y = bob3.Location.Y;
                        pictureBox3.Location = new System.Drawing.Point(x, y);
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 3) && (helpcount == 0)) // displaying explosive for button-4
                    {
                        bob4.Hide();
                        //lbl4.Show();
                        pictureBox4.Image = imageList2.Images[1];
                        pictureBox4.Show();
                        x = bob4.Location.X;
                        y = bob4.Location.Y;
                        pictureBox4.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;

                    }
                    if ((j == 4) && (helpcount == 0)) // displaying explosive for button-5
                    {
                        bob5.Hide();
                        //lbl5.Show();
                        pictureBox5.Image = imageList2.Images[1];
                        pictureBox5.Show();
                        x = bob5.Location.X;
                        y = bob5.Location.Y;
                        pictureBox5.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;

                    }
                    if ((j == 5) && (helpcount == 0)) // displaying explosive for button-6
                    {
                        bob6.Hide();
                        //lbl6.Show();
                        pictureBox6.Image = imageList2.Images[1];
                        pictureBox6.Show();
                        x = bob6.Location.X;
                        y = bob6.Location.Y;
                        pictureBox6.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;

                    }
                    if ((j == 6) && (helpcount == 0)) // displaying explosive for button-7
                    {
                        bob7.Hide();
                        //lbl7.Show();
                        pictureBox7.Image = imageList2.Images[1];
                        pictureBox7.Show();
                        x = bob7.Location.X;
                        y = bob7.Location.Y;
                        pictureBox7.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;

                    }
                    if ((j == 7) && (helpcount == 0)) // displaying explosive for button-8
                    {
                        bob8.Hide();
                        //lbl8.Show();
                        pictureBox8.Image = imageList2.Images[1];
                        pictureBox8.Show();
                        x = bob8.Location.X;
                        y = bob8.Location.Y;
                        pictureBox8.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;

                    }
                    if ((j == 8) && (helpcount == 0)) // displaying explosive for button-9
                    {
                        bob9.Hide();
                        //lbl9.Show();
                        pictureBox9.Image = imageList2.Images[1];
                        pictureBox9.Show();
                        x = bob9.Location.X;
                        y = bob9.Location.Y;
                        pictureBox9.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;

                    }
                    if (j == 9) // displaying explosive for button-10
                    {
                        bob10.Hide();
                        //lbl10.Show();
                        pictureBox10.Image = imageList2.Images[1];
                        pictureBox10.Show();
                        x = bob10.Location.X;
                        y = bob10.Location.Y;
                        pictureBox10.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;

                    }
                }
                // displaying explosive for buttons in row-2
                if ((i == 1) && (helpcount == 0))// || (helpcount1 == 0) || (helpcount2 == 0)))
                {
                    if ((j == 0) && (helpcount == 0)) // displaying explosive for button-11
                    {
                        bob11.Hide();
                        //lbl11.Show();
                        pictureBox11.Image = imageList2.Images[1];
                        pictureBox11.Show();
                        x = bob11.Location.X;
                        y = bob11.Location.Y;
                        pictureBox11.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;

                    }
                    if ((j == 1) && (helpcount == 0)) // displaying explosive for button-12
                    {
                        bob12.Hide();
                        //lbl12.Show();
                        pictureBox12.Image = imageList2.Images[1];
                        pictureBox12.Show();
                        x = bob12.Location.X;
                        y = bob12.Location.Y;
                        pictureBox12.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;

                    }
                    if ((j == 2) && (helpcount == 0)) // displaying explosive for button-13
                    {
                        bob13.Hide();
                        //lbl13.Show();
                        pictureBox13.Image = imageList2.Images[1];
                        pictureBox13.Show();
                        x = bob13.Location.X;
                        y = bob13.Location.Y;
                        pictureBox13.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;

                    }
                    if ((j == 3) && (helpcount == 0)) // displaying explosive for button-14
                    {
                        bob14.Hide();
                        //lbl14.Show();
                        pictureBox14.Image = imageList2.Images[1];
                        pictureBox14.Show();
                        x = bob14.Location.X;
                        y = bob14.Location.Y;
                        pictureBox14.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;

                    }
                    if ((j == 4) && (helpcount == 0)) // displaying explosive for button-15
                    {
                        bob15.Hide();
                        //lbl15.Show();
                        pictureBox15.Image = imageList2.Images[1];
                        pictureBox15.Show();
                        x = bob15.Location.X;
                        y = bob15.Location.Y;
                        pictureBox15.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;

                    }
                    if ((j == 5) && (helpcount == 0)) // displaying explosive for button-16
                    {
                        bob16.Hide();
                        //lbl16.Show();
                        pictureBox16.Image = imageList2.Images[1];
                        pictureBox16.Show();
                        x = bob16.Location.X;
                        y = bob16.Location.Y;
                        pictureBox16.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;

                    }
                    if ((j == 6) && (helpcount == 0)) // displaying explosive for button-17
                    {
                        bob17.Hide();
                        //lbl17.Show();
                        pictureBox17.Image = imageList2.Images[1];
                        pictureBox17.Show();
                        x = bob17.Location.X;
                        y = bob17.Location.Y;
                        pictureBox17.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;

                    }
                    if ((j == 7) && (helpcount == 0)) // displaying explosive for button-18
                    {
                        bob18.Hide();
                        //lbl18.Show();
                        pictureBox18.Image = imageList2.Images[1];
                        pictureBox18.Show();
                        x = bob18.Location.X;
                        y = bob18.Location.Y;
                        pictureBox18.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;

                    }
                    if ((j == 8) && (helpcount == 0)) // displaying explosive for button-19
                    {
                        bob19.Hide();
                        // lbl19.Show();
                        pictureBox19.Image = imageList2.Images[1];
                        pictureBox19.Show();
                        x = bob19.Location.X;
                        y = bob19.Location.Y;
                        pictureBox19.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;

                    }
                    if ((j == 9) && (helpcount == 0)) // displaying explosive for button-20
                    {
                        bob20.Hide();
                        //lbl20.Show();
                        pictureBox20.Image = imageList2.Images[1];
                        pictureBox20.Show();
                        x = bob20.Location.X;
                        y = bob20.Location.Y;
                        pictureBox20.Location = new System.Drawing.Point(x, y);
                        // if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;

                    }
                }
                // displaying explosive for buttons in row-3
                if ((i == 2) && (helpcount == 0)) //&& ((helpcount == 0) || (helpcount1 == 0) || (helpcount2 == 0)))
                {
                    if ((j == 0) && (helpcount == 0)) // displaying explosive for button-21 
                    {
                        bob21.Hide();
                        //lbl21.Show();
                        pictureBox21.Image = imageList2.Images[1];
                        pictureBox21.Show();
                        x = bob21.Location.X;
                        y = bob21.Location.Y;
                        pictureBox21.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;

                    }
                    if ((j == 1) && (helpcount == 0)) // displaying explosive for button-22
                    {
                        bob22.Hide();
                        //lbl22.Show();
                        pictureBox22.Image = imageList2.Images[1];
                        pictureBox22.Show();
                        x = bob22.Location.X;
                        y = bob22.Location.Y;
                        pictureBox22.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;

                    }
                    if ((j == 2) && (helpcount == 0)) // displaying explosive for button-23
                    {
                        bob23.Hide();
                        //lbl23.Show();
                        pictureBox23.Image = imageList2.Images[1];
                        pictureBox23.Show();
                        x = bob23.Location.X;
                        y = bob23.Location.Y;
                        pictureBox23.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;

                    }
                    if ((j == 3) && (helpcount == 0)) // displaying explosive for button-24
                    {
                        bob24.Hide();
                        //lbl24.Show();
                        pictureBox24.Image = imageList2.Images[1];
                        pictureBox24.Show();
                        x = bob24.Location.X;
                        y = bob24.Location.Y;
                        pictureBox24.Location = new System.Drawing.Point(x, y);
                        // if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;

                    }
                    if ((j == 4) && (helpcount == 0)) // displaying explosive for button-25
                    {
                        bob25.Hide();
                        //lbl25.Show();
                        pictureBox25.Image = imageList2.Images[1];
                        pictureBox25.Show();
                        x = bob25.Location.X;
                        y = bob25.Location.Y;
                        pictureBox25.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;

                    }
                    if ((j == 5) && (helpcount == 0)) // displaying explosive for button-26
                    {
                        bob26.Hide();
                        //lbl26.Show();
                        pictureBox26.Image = imageList2.Images[1];
                        pictureBox26.Show();
                        x = bob26.Location.X;
                        y = bob26.Location.Y;
                        pictureBox26.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;

                    }
                    if ((j == 6) && (helpcount == 0)) // displaying explosive for button-27
                    {
                        bob27.Hide();
                        //lbl27.Show();
                        pictureBox27.Image = imageList2.Images[1];
                        pictureBox27.Show();
                        x = bob27.Location.X;
                        y = bob27.Location.Y;
                        pictureBox27.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;

                    }
                    if ((j == 7) && (helpcount == 0)) // displaying explosive for button-28
                    {
                        bob28.Hide();
                        //lbl28.Show();
                        pictureBox28.Image = imageList2.Images[1];
                        pictureBox28.Show();
                        x = bob28.Location.X;
                        y = bob28.Location.Y;
                        pictureBox28.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;

                    }
                    if ((j == 8) && (helpcount == 0)) // displaying explosive for button-29
                    {
                        bob29.Hide();
                        //lbl29.Show();
                        pictureBox29.Image = imageList2.Images[1];
                        pictureBox29.Show();
                        x = bob29.Location.X;
                        y = bob29.Location.Y;
                        pictureBox29.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;

                    }
                    if ((j == 9) && (helpcount == 0)) // displaying explosive for button-30
                    {
                        bob30.Hide();
                        //lbl30.Show();
                        pictureBox30.Image = imageList2.Images[1];
                        pictureBox30.Show();
                        x = bob30.Location.X;
                        y = bob30.Location.Y;
                        pictureBox30.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;

                    }
                }
                // displaying explosive for buttons in row-4
                if ((i == 3) && (helpcount == 0)) //&& ((helpcount == 0) || (helpcount1 == 0) || (helpcount2 == 0)))
                {
                    if (j == 0) // displaying explosive for button-31
                    {
                        bob31.Hide();
                        //lbl31.Show();
                        pictureBox31.Image = imageList2.Images[1];
                        pictureBox31.Show();
                        x = bob31.Location.X;
                        y = bob31.Location.Y;
                        pictureBox31.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;

                    }
                    if ((j == 1) && (helpcount == 0)) // displaying explosive for button-32
                    {
                        bob32.Hide();
                        //lbl32.Show();
                        pictureBox32.Image = imageList2.Images[1];
                        pictureBox32.Show();
                        x = bob32.Location.X;
                        y = bob32.Location.Y;
                        pictureBox32.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;

                    }
                    if ((j == 2) && (helpcount == 0)) // displaying explosive for button-33
                    {
                        bob33.Hide();
                        //lbl33.Show();
                        pictureBox33.Image = imageList2.Images[1];
                        pictureBox33.Show();
                        x = bob33.Location.X;
                        y = bob33.Location.Y;
                        pictureBox33.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;

                    }
                    if ((j == 3) && (helpcount == 0)) // displaying explosive for button-34
                    {
                        bob34.Hide();
                        //lbl34.Show();
                        pictureBox34.Image = imageList2.Images[1];
                        pictureBox34.Show();
                        x = bob34.Location.X;
                        y = bob34.Location.Y;
                        pictureBox34.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;

                    }
                    if ((j == 4) && (helpcount == 0)) // displaying explosive for button-35
                    {
                        bob35.Hide();
                        //lbl35.Show();
                        pictureBox35.Image = imageList2.Images[1];
                        pictureBox35.Show();
                        x = bob35.Location.X;
                        y = bob35.Location.Y;
                        pictureBox35.Location = new System.Drawing.Point(x, y);
                        // if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;

                    }
                    if ((j == 5) && (helpcount == 0)) // displaying explosive for button-36
                    {
                        bob36.Hide();
                        //lbl36.Show();
                        pictureBox36.Image = imageList2.Images[1];
                        pictureBox36.Show();
                        x = bob36.Location.X;
                        y = bob36.Location.Y;
                        pictureBox36.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;

                    }
                    if ((j == 6) && (helpcount == 0)) // displaying explosive for button-37
                    {
                        bob37.Hide();
                        //lbl37.Show();
                        pictureBox37.Image = imageList2.Images[1];
                        pictureBox37.Show();
                        x = bob37.Location.X;
                        y = bob37.Location.Y;
                        pictureBox37.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;

                    }
                    if ((j == 7) && (helpcount == 0)) // displaying explosive for button-38
                    {
                        bob38.Hide();
                        //lbl38.Show();
                        pictureBox38.Image = imageList2.Images[1];
                        pictureBox38.Show();
                        x = bob38.Location.X;
                        y = bob38.Location.Y;
                        pictureBox38.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;

                    }
                    if ((j == 8) && (helpcount == 0)) // displaying explosive for button-39
                    {
                        bob39.Hide();
                        //lbl39.Show();
                        pictureBox39.Image = imageList2.Images[1];
                        pictureBox39.Show();
                        x = bob39.Location.X;
                        y = bob39.Location.Y;
                        pictureBox39.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;

                    }
                    if ((j == 9) && (helpcount == 0)) // displaying explosive for button-40
                    {
                        bob40.Hide();
                        //lbl40.Show();
                        pictureBox40.Image = imageList2.Images[1];
                        pictureBox40.Show();
                        x = bob40.Location.X;
                        y = bob40.Location.Y;
                        pictureBox40.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;

                    }
                }
                // displaying explosive for buttons in row-4
                if ((i == 4) && (helpcount == 0)) //&& ((helpcount == 0) || (helpcount1 == 0) || (helpcount2 == 0)))
                {
                    if ((j == 0) && (helpcount == 0)) // displaying explosive for button-41
                    {
                        bob41.Hide();
                        //lbl41.Show();
                        pictureBox41.Image = imageList2.Images[1];
                        pictureBox41.Show();
                        x = bob41.Location.X;
                        y = bob41.Location.Y;
                        pictureBox41.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;

                    }
                    if ((j == 1) && (helpcount == 0)) // displaying explosive for button-42
                    {
                        bob42.Hide();
                        //lbl42.Show();
                        pictureBox42.Image = imageList2.Images[1];
                        pictureBox42.Show();
                        x = bob42.Location.X;
                        y = bob42.Location.Y;
                        pictureBox42.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 2) && (helpcount == 0)) // displaying explosive for button-43
                    {
                        bob43.Hide();
                        //lbl43.Show();
                        pictureBox43.Image = imageList2.Images[1];
                        pictureBox43.Show();
                        x = bob43.Location.X;
                        y = bob43.Location.Y;
                        pictureBox43.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 3) && (helpcount == 0)) // displaying explosive for button-44
                    {
                        bob44.Hide();
                        //lbl44.Show();
                        pictureBox44.Image = imageList2.Images[1];
                        pictureBox44.Show();
                        x = bob44.Location.X;
                        y = bob44.Location.Y;
                        pictureBox44.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 4) && (helpcount == 0)) // displaying explosive for button-45
                    {
                        bob45.Hide();
                        //lbl45.Show();
                        pictureBox45.Image = imageList2.Images[1];
                        pictureBox45.Show();
                        x = bob45.Location.X;
                        y = bob45.Location.Y;
                        pictureBox45.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 5) && (helpcount == 0)) // displaying explosive for button-46
                    {
                        bob46.Hide();
                        //lbl46.Show();
                        pictureBox46.Image = imageList2.Images[1];
                        pictureBox46.Show();
                        x = bob46.Location.X;
                        y = bob46.Location.Y;
                        pictureBox46.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if (j == 6) // displaying explosive for button-47
                    {
                        bob47.Hide();
                        //lbl47.Show();
                        pictureBox47.Image = imageList2.Images[1];
                        pictureBox47.Show();
                        x = bob47.Location.X;
                        y = bob47.Location.Y;
                        pictureBox47.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 7) && (helpcount == 0)) // displaying explosive for button-48
                    {
                        bob48.Hide();
                        //lbl48.Show();
                        pictureBox48.Image = imageList2.Images[1];
                        pictureBox48.Show();
                        x = bob48.Location.X;
                        y = bob48.Location.Y;
                        pictureBox48.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 8) && (helpcount == 0)) // displaying explosive for button-49
                    {
                        bob49.Hide();
                        //lbl49.Show();
                        pictureBox49.Image = imageList2.Images[1];
                        pictureBox49.Show();
                        x = bob49.Location.X;
                        y = bob49.Location.Y;
                        pictureBox49.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 9) && (helpcount == 0)) // displaying explosive for button-50
                    {
                        bob50.Hide();
                        //lbl50.Show();
                        pictureBox50.Image = imageList2.Images[1];
                        pictureBox50.Show();
                        pictureBox50.Show();
                        x = bob50.Location.X;
                        y = bob50.Location.Y;
                        pictureBox50.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                }
                // displaying explosive for buttons in row-5
                if ((i == 5) && (helpcount == 0)) //&& ((helpcount == 0) || (helpcount1 == 0) || (helpcount2 == 0)))
                {
                    if ((j == 0) && (helpcount == 0)) // displaying explosive for button-51
                    {
                        bob51.Hide();
                        //lbl51.Show();
                        pictureBox51.Image = imageList2.Images[1];
                        pictureBox51.Show();
                        x = bob51.Location.X;
                        y = bob51.Location.Y;
                        pictureBox51.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 1) && (helpcount == 0)) // displaying explosive for button-52
                    {
                        bob52.Hide();
                        //lbl52.Show();
                        pictureBox52.Image = imageList2.Images[1];
                        pictureBox52.Show();
                        x = bob52.Location.X;
                        y = bob52.Location.Y;
                        pictureBox52.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if (j == 2) // displaying explosive for button-53
                    {
                        bob53.Hide();
                        //lbl53.Show();
                        pictureBox53.Image = imageList2.Images[1];
                        pictureBox53.Show();
                        x = bob53.Location.X;
                        y = bob53.Location.Y;
                        pictureBox53.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 3) && (helpcount == 0)) // displaying explosive for button-54
                    {
                        bob54.Hide();
                        //lbl54.Show();
                        pictureBox54.Image = imageList2.Images[1];
                        pictureBox54.Show();
                        x = bob54.Location.X;
                        y = bob54.Location.Y;
                        pictureBox54.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 4) && (helpcount == 0)) // displaying explosive for button-55
                    {
                        bob55.Hide();
                        //lbl55.Show();
                        pictureBox55.Image = imageList2.Images[1];
                        pictureBox55.Show();
                        x = bob55.Location.X;
                        y = bob55.Location.Y;
                        pictureBox55.Location = new System.Drawing.Point(x, y);
                        // if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 5) && (helpcount == 0)) // displaying explosive for button-56
                    {
                        bob56.Hide();
                        //lbl56.Show();
                        pictureBox56.Image = imageList2.Images[1];
                        pictureBox56.Show();
                        x = bob56.Location.X;
                        y = bob56.Location.Y;
                        pictureBox56.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 6) && (helpcount == 0)) // displaying explosive for button-57
                    {
                        bob57.Hide();
                        //lbl57.Show();
                        pictureBox57.Image = imageList2.Images[1];
                        pictureBox57.Show();
                        x = bob57.Location.X;
                        y = bob57.Location.Y;
                        pictureBox57.Location = new System.Drawing.Point(x, y);
                        // if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 7) && (helpcount == 0)) // displaying explosive for button-58
                    {
                        bob58.Hide();
                        //lbl58.Show();
                        pictureBox58.Image = imageList2.Images[1];
                        pictureBox58.Show();
                        x = bob58.Location.X;
                        y = bob58.Location.Y;
                        pictureBox58.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 8) && (helpcount == 0)) // displaying explosive for button-59
                    {
                        bob59.Hide();
                        //lbl59.Show();
                        pictureBox59.Image = imageList2.Images[1];
                        pictureBox59.Show();
                        x = bob59.Location.X;
                        y = bob59.Location.Y;
                        pictureBox59.Location = new System.Drawing.Point(x, y);
                        // if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 9) && (helpcount == 0)) // displaying explosive for button-60
                    {
                        bob60.Hide();
                        //lbl60.Show();
                        pictureBox60.Image = imageList2.Images[1];
                        pictureBox60.Show();
                        x = bob60.Location.X;
                        y = bob60.Location.Y;
                        pictureBox60.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                }
                // displaying explosive for buttons in row-6
                if ((i == 6) && (helpcount == 0)) //&& ((helpcount == 0) || (helpcount1 == 0) || (helpcount2 == 0)))
                {
                    if ((j == 0) && (helpcount == 0)) // displaying explosive for button-61
                    {
                        bob61.Hide();
                        //lbl61.Show();
                        pictureBox61.Image = imageList2.Images[1];
                        pictureBox61.Show();
                        x = bob61.Location.X;
                        y = bob61.Location.Y;
                        pictureBox61.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 1) && (helpcount == 0)) // displaying explosive for button-62
                    {
                        bob62.Hide();
                        //lbl62.Show();
                        pictureBox62.Image = imageList2.Images[1];
                        pictureBox62.Show();
                        x = bob62.Location.X;
                        y = bob62.Location.Y;
                        pictureBox62.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 2) && (helpcount == 0)) // displaying explosive for button-63
                    {
                        bob63.Hide();
                        //lbl63.Show();
                        pictureBox63.Image = imageList2.Images[1];
                        pictureBox63.Show();
                        x = bob63.Location.X;
                        y = bob63.Location.Y;
                        pictureBox63.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 3) && (helpcount == 0)) // displaying explosive for button-64
                    {
                        bob64.Hide();
                        //lbl64.Show();
                        pictureBox64.Image = imageList2.Images[1];
                        pictureBox64.Show();
                        x = bob64.Location.X;
                        y = bob64.Location.Y;
                        pictureBox64.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 4) && (helpcount == 0)) // displaying explosive for button-65
                    {
                        bob65.Hide();
                        //lbl65.Show();
                        pictureBox65.Image = imageList2.Images[1];
                        pictureBox65.Show();
                        x = bob65.Location.X;
                        y = bob65.Location.Y;
                        pictureBox65.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 5) && (helpcount == 0)) // displaying explosive for button-66
                    {
                        bob66.Hide();
                        //lbl66.Show();
                        pictureBox66.Image = imageList2.Images[1];
                        pictureBox66.Show();
                        x = bob66.Location.X;
                        y = bob66.Location.Y;
                        pictureBox66.Location = new System.Drawing.Point(x, y);
                        // if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 6) && (helpcount == 0)) // displaying explosive for button-67
                    {
                        bob67.Hide();
                        //lbl67.Show();
                        pictureBox67.Image = imageList2.Images[1];
                        pictureBox67.Show();
                        x = bob67.Location.X;
                        y = bob67.Location.Y;
                        pictureBox67.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 7) && (helpcount == 0)) // displaying explosive for button-68
                    {
                        bob68.Hide();
                        //lbl68.Show();
                        pictureBox68.Image = imageList2.Images[1];
                        pictureBox68.Show();
                        x = bob68.Location.X;
                        y = bob68.Location.Y;
                        pictureBox68.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 8) && (helpcount == 0)) // displaying explosive for button-69
                    {
                        bob69.Hide();
                        //lbl69.Show();
                        pictureBox69.Image = imageList2.Images[1];
                        pictureBox69.Show();
                        x = bob69.Location.X;
                        y = bob69.Location.Y;
                        pictureBox69.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 9) && (helpcount == 0)) // displaying explosive for button-70
                    {
                        bob70.Hide();
                        //lbl70.Show();
                        pictureBox70.Image = imageList2.Images[1];
                        pictureBox70.Show();
                        x = bob70.Location.X;
                        y = bob70.Location.Y;
                        pictureBox70.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                }
                // displaying explosive for buttons in row-7
                if ((i == 7) && (helpcount == 0)) //&& ((helpcount == 0) || (helpcount1 == 0) || (helpcount2 == 0)))
                {
                    if ((j == 0) && (helpcount == 0)) // displaying explosive for button-71
                    {
                        bob71.Hide();
                        //lbl71.Show();
                        pictureBox71.Image = imageList2.Images[1];
                        pictureBox71.Show();
                        x = bob71.Location.X;
                        y = bob71.Location.Y;
                        pictureBox71.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 1) && (helpcount == 0)) // displaying explosive for button-72
                    {
                        bob72.Hide();
                        //lbl72.Show();
                        pictureBox72.Image = imageList2.Images[1];
                        pictureBox72.Show();
                        x = bob72.Location.X;
                        y = bob72.Location.Y;
                        pictureBox72.Location = new System.Drawing.Point(x, y);
                        // if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 2) && (helpcount == 0)) // displaying explosive for button-73
                    {
                        bob73.Hide();
                        //lbl73.Show();
                        pictureBox73.Image = imageList2.Images[1];
                        pictureBox73.Show();
                        x = bob73.Location.X;
                        y = bob73.Location.Y;
                        pictureBox73.Location = new System.Drawing.Point(x, y);
                        // if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 3) && (helpcount == 0)) // displaying explosive for button-74
                    {
                        bob74.Hide();
                        //lbl74.Show();
                        pictureBox74.Image = imageList2.Images[1];
                        pictureBox74.Show();
                        x = bob74.Location.X;
                        y = bob74.Location.Y;
                        pictureBox74.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 4) && (helpcount == 0)) // displaying explosive for button-75
                    {
                        bob75.Hide();
                        //lbl75.Show();
                        pictureBox75.Image = imageList2.Images[1];
                        pictureBox75.Show();
                        x = bob75.Location.X;
                        y = bob75.Location.Y;
                        pictureBox75.Location = new System.Drawing.Point(x, y);
                        // if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 5) && (helpcount == 0)) // displaying explosive for button-76
                    {
                        bob76.Hide();
                        //lbl76.Show();
                        pictureBox76.Image = imageList2.Images[1];
                        pictureBox76.Show();
                        x = bob76.Location.X;
                        y = bob76.Location.Y;
                        pictureBox76.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 6) && (helpcount == 0)) // displaying explosive for button-77
                    {
                        bob77.Hide();
                        //lbl77.Show();
                        pictureBox77.Image = imageList2.Images[1];
                        pictureBox77.Show();
                        x = bob77.Location.X;
                        y = bob77.Location.Y;
                        pictureBox77.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 7) && (helpcount == 0)) // displaying explosive for button-78
                    {
                        bob78.Hide();
                        //lbl78.Show();
                        pictureBox78.Image = imageList2.Images[1];
                        pictureBox78.Show();
                        x = bob78.Location.X;
                        y = bob78.Location.Y;
                        pictureBox78.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 8) && (helpcount == 0)) // displaying explosive for button-79
                    {
                        bob79.Hide();
                        //lbl79.Show();
                        pictureBox79.Image = imageList2.Images[1];
                        pictureBox79.Show();
                        x = bob79.Location.X;
                        y = bob79.Location.Y;
                        pictureBox79.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 9) && (helpcount == 0)) // displaying explosive for button-80
                    {
                        bob80.Hide();
                        //lbl80.Show();
                        pictureBox80.Image = imageList2.Images[1];
                        pictureBox80.Show();
                        x = bob80.Location.X;
                        y = bob80.Location.Y;
                        pictureBox80.Location = new System.Drawing.Point(x, y);
                        // if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                }
                // displaying explosive for buttons in row-8
                if ((i == 8) && (helpcount == 0))//&&((helpcount==0)||(helpcount1==0)||(helpcount2==0))) 
                {
                    if ((j == 0) && (helpcount == 0)) // displaying explosive for button-81
                    {
                        bob81.Hide();
                        //lbl81.Show();
                        pictureBox81.Image = imageList2.Images[1];
                        pictureBox81.Show();
                        x = bob81.Location.X;
                        y = bob81.Location.Y;
                        pictureBox81.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 1) && (helpcount == 0)) // displaying explosive for button-82
                    {
                        bob82.Hide();
                        //lbl82.Show();
                        pictureBox82.Image = imageList2.Images[1];
                        pictureBox82.Show();
                        x = bob82.Location.X;
                        y = bob82.Location.Y;
                        pictureBox82.Location = new System.Drawing.Point(x, y);
                        // if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 2) && (helpcount == 0)) // displaying explosive for button-83
                    {
                        bob83.Hide();
                        //lbl83.Show();
                        pictureBox83.Image = imageList2.Images[1];
                        pictureBox83.Show();
                        x = bob83.Location.X;
                        y = bob83.Location.Y;
                        pictureBox83.Location = new System.Drawing.Point(x, y);
                        // if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 3) && (helpcount == 0)) // displaying explosive for button-84
                    {
                        bob84.Hide();
                        //lbl84.Show();
                        pictureBox84.Image = imageList2.Images[1];
                        pictureBox84.Show();
                        x = bob84.Location.X;
                        y = bob84.Location.Y;
                        pictureBox84.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 4) && (helpcount == 0)) // displaying explosive for button-85
                    {
                        bob85.Hide();
                        //lbl85.Show();
                        pictureBox85.Image = imageList2.Images[1];
                        pictureBox85.Show();
                        x = bob85.Location.X;
                        y = bob85.Location.Y;
                        pictureBox85.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 5) && (helpcount == 0)) // displaying explosive for button-86
                    {
                        bob86.Hide();
                        //lbl86.Show();
                        pictureBox86.Image = imageList2.Images[1];
                        pictureBox86.Show();
                        x = bob86.Location.X;
                        y = bob86.Location.Y;
                        pictureBox86.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 6) && (helpcount == 0)) // displaying explosive for button-87
                    {
                        bob87.Hide();
                        //lbl87.Show();
                        pictureBox87.Image = imageList2.Images[1];
                        pictureBox87.Show();
                        x = bob87.Location.X;
                        y = bob87.Location.Y;
                        pictureBox87.Location = new System.Drawing.Point(x, y);
                        // if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 7) && (helpcount == 0)) // displaying explosive for button-88
                    {
                        bob88.Hide();
                        //lbl88.Show();
                        pictureBox88.Image = imageList2.Images[1];
                        pictureBox88.Show();
                        x = bob88.Location.X;
                        y = bob88.Location.Y;
                        //lbl88.Text = "9";
                        pictureBox88.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 8) && (helpcount == 0)) // displaying explosive for button-89
                    {
                        bob89.Hide();
                        //lbl89.Show();
                        pictureBox89.Image = imageList2.Images[1];
                        pictureBox89.Show();
                        x = bob89.Location.X;
                        y = bob89.Location.Y;
                        pictureBox89.Location = new System.Drawing.Point(x, y);
                        // if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 9) && (helpcount == 0)) // displaying explosive for button-90
                    {
                        bob90.Hide();
                        //lbl90.Show();
                        pictureBox90.Image = imageList2.Images[1];
                        pictureBox90.Show();
                        x = bob90.Location.X;
                        y = bob90.Location.Y;
                        pictureBox90.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                }
                // displaying explosive for buttons in row-9
                if ((i == 9) && (helpcount == 0)) //&& ((helpcount == 0) || (helpcount1 == 0) || (helpcount2 == 0)))
                {
                    if ((j == 0) && (helpcount == 0)) // displaying explosive for button-91
                    {
                        bob91.Hide();
                        //lbl91.Show();
                        pictureBox91.Image = imageList2.Images[1];
                        pictureBox91.Show();
                        x = bob91.Location.X;
                        y = bob91.Location.Y;
                        pictureBox91.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 1) && (helpcount == 0)) // displaying explosive for button-92
                    {
                        bob92.Hide();
                        //lbl92.Show();
                        pictureBox92.Image = imageList2.Images[1];
                        pictureBox92.Show();
                        x = bob92.Location.X;
                        y = bob92.Location.Y;
                        pictureBox92.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 2) && (helpcount == 0)) // displaying explosive for button-93
                    {
                        bob93.Hide();
                        //lbl93.Show();
                        pictureBox93.Image = imageList2.Images[1];
                        pictureBox93.Show();
                        x = bob93.Location.X;
                        y = bob93.Location.Y;
                        pictureBox93.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 3) && (helpcount == 0)) // displaying explosive for button-94
                    {
                        bob94.Hide();
                        //lbl94.Show();
                        pictureBox94.Image = imageList2.Images[1];
                        pictureBox94.Show();
                        x = bob94.Location.X;
                        y = bob94.Location.Y;
                        pictureBox94.Location = new System.Drawing.Point(x, y);
                        // if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 4) && (helpcount == 0)) // displaying explosive for button-95
                    {
                        bob95.Hide();
                        //lbl95.Show();
                        pictureBox95.Image = imageList2.Images[1];
                        pictureBox95.Show();
                        x = bob95.Location.X;
                        y = bob95.Location.Y;
                        pictureBox95.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 5) && (helpcount == 0)) // displaying explosive for button-96
                    {
                        bob96.Hide();
                        //lbl96.Show();
                        pictureBox96.Image = imageList2.Images[1];
                        pictureBox96.Show();
                        x = bob96.Location.X;
                        y = bob96.Location.Y;
                        pictureBox96.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 6) && (helpcount == 0)) // displaying explosive for button-97
                    {
                        bob97.Hide();
                        //lbl97.Show();
                        pictureBox97.Image = imageList2.Images[1];
                        pictureBox97.Show();
                        x = bob97.Location.X;
                        y = bob97.Location.Y;
                        pictureBox97.Location = new System.Drawing.Point(x, y);
                        // if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 7) && (helpcount == 0)) // displaying explosive for button-98
                    {
                        bob98.Hide();
                        //lbl98.Show();
                        pictureBox98.Image = imageList2.Images[1];
                        pictureBox98.Show();
                        x = bob98.Location.X;
                        y = bob98.Location.Y;
                        pictureBox98.Location = new System.Drawing.Point(x, y);
                        // if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 8) && (helpcount == 0)) // displaying explosive for button-99
                    {
                        bob99.Hide();
                        //lbl99.Show();
                        pictureBox99.Image = imageList2.Images[1];
                        pictureBox99.Show();
                        x = bob99.Location.X;
                        y = bob99.Location.Y;
                        pictureBox99.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                    if ((j == 9) && (helpcount == 0)) // displaying explosive for button-100
                    {
                        bob100.Hide();
                        //lbl100.Show();
                        pictureBox100.Image = imageList2.Images[1];
                        pictureBox100.Show();
                        x = bob100.Location.X;
                        y = bob100.Location.Y;
                        pictureBox100.Location = new System.Drawing.Point(x, y);
                        //if (helpcount == 0)
                        helpcount++;
                        helprow = i;
                        helpcol = j;
                    }
                }
            }
        }
}

Points of Interest

This project has only two things that's really interesting the DLL of the game and SAPI implementation.

What problem does this solution solve?

Friends, its not the solution to any problem, but if you ask about objective then its an approach to increase logical prospective of the puzzel games than any other ambiguous step.

How does this help someone else?

Friends, what in games like mineSweeper does is quite clear, here we have to select any box to click randomly and we have all 33% probablity to get explosive their. Here if, we will develop some help sections for the user then, the user will feel somewhat relaxed with that type of great ambiguous situation. Here, my help section will help the user by detecting one mine to take initial step, similarly we have all three help sections to decrease user's ambiguity and increase the logical concern. Same as minesweeper, my .dll file generates minimum 10 explosive in the board (as user can set the number of explosive through file->custom->GameControl), but here it is somewhat different from the win game. Here, in my game every explosive is surrounded by the appropriate number generated in "label" or you can say it every label has the exact number that shows the number of explosive on all 8 box that surrounds it. So, i think we should think in that way so that user will not get ambiguous and frustrate when he/she have all more than 5 to 10 attempts with an explosive with the very first click.

How does the code actually work and what is going inside the code snippets?

Here, we are discussing the relation between core DLL file and main form:

Step:-1:- The DLL file generates the (explosives)9's and manipulates a 2-d matrix of 10*10 order with all (exlplosives) 9's related the number (number=concern box surrounded by explosive) and 0's (blank space).

Step:-2:- The DLL file sends the whole matrix info to mainform and there, the (explosives) 9's get replaced by the explosive image, number is replaced by the labels and texts where as the 0's (blank space) is replaced by the blank image.

How to start game?

The user needs to click the Clock to initate the game.

What is the purpose of flags?

To make the time clear, i replaced the digital clock to the figure clock. Here all 4 quards gets complete in 8 movements of the needle as per second rate. After completion of every 8 second one flag gets red to indicate user as for time.

How I can change my background color and foreground color?

Through file->Custom->Window Controls->background Color you can change the background color of the  window form.

Through file->Custom->Window Controls->foreground Color you can change the foreground view of the window form.

How to resize height and width of the window form?

Through, file->Custom->Window Controls->Height/Width you can change the height and width of the windows form (Sorry the change will not make the expected change in the view right now.) 

How to change the numbers of explosive?

Through, file->Custom->Game Control->mines, you can change the number of mines of play board.

How to set the timer?

Through, file->Custom->Game Control->Timer, you can set the pulse to take one movement of the needle.

Where I can found the use of SAPI5.1?

On Clicking 2nd row and 2nd collumn box (before initiating the game by clicking the clock) you will get a Gammer window, who will instruct you (as through audio) to set the specification key (i.e. intnam) and it will guide you to click secret pick in the playboard to explore it and check the game.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here