Solved

Maze Game in VB.net

Posted on 2009-07-14
3
923 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

790 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