Exemplo n.º 1
0
        private void pictureBox_MouseClick(object sender, MouseEventArgs e)
        {
            Place  place   = (Place)((PictureBox)sender).Tag;
            string my_path = "";

            if (apple.x == -1)
            {
                my_path = game.SolveMouse(place);
            }
            else
            {
                my_path = game.SolveApple(apple, place);
                apple.x = -1;
                apple.y = -1;
            }

            path = my_path;
        }