Solved

Maze Game in VB.net

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

757 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

22 Experts available now in Live!

Get 1:1 Help Now