Solved

Maze Game in VB.net

Posted on 2009-07-14
3
913 Views
Last Modified: 2013-11-26
Hello all of you :D

I wanted to know if anyone could help me on creating the Maze Game, I heard of it, and since I'm a beginner in VB.NET environment I would like someone to help me.

The game will be 24 by 12, buttons, it will have the four walls which will be blocked and inside them you can change the walls by drawing them on clicking the buttons.

It asks for 2d array for push button, which I did them.

The game will check if the button is press (disabled, open path) and go for it, if it find a dead end, it will return to the point where it has to chose between many paths.

I would be very glad if someone would give it a try to help me on this project..

0
Comment
Question by:arberb
3 Comments
 
LVL 48

Expert Comment

by:jpaulino
ID: 24858526
It's not easy to know what you really want, but you can see this example in VB6 and get some ideas http://www.freevbcode.com/ShowCode.asp?ID=1895
Also some useful links:
http://www.astrolog.org/labyrnth/algrithm.htm
http://en.wikipedia.org/wiki/Maze_generation_algorithm
 
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 24859335
If you needed C#, that Wiki article had a link to a C# application WPF application:

http://chiesaclan.spaces.live.com/blog/cns!842434EBE9688900!632.entry

You might be able to use code converters from C# to VB.NET, if you were so inclined.
0
 

Accepted Solution

by:
arberb earned 0 total points
ID: 24860469
Thank you guys, for trying... I checked your links...  and here is a brief description of my maze project...

1. I have a button array, which creates like 230 buttons...
2. I have to check if the button is Disabled or Enabled. (Because where  buttons are disabled that is the free path, if it's enable that you can't pass it, it stands like a wall. For example in the beginning it's creates a path by it self, if you want to change or make more complicated you just click the buttons.
3. I know that there is a way to do it with while loop, but could someone help me how to create that while loop that checks for cross like button(i+1,j), button(i-1,j), button(i, j+1), button(i,j-1) where button(i,j) is the current standing of the maze.

I hope I was understandable...

I really appreciate it guys if you could help me.. probably I would give like 5000 points if it was possible to give...
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now