Hi there.... I have worked though the map problem given to me by "M2tM". Thanks... it is pretty hard for my level.. remember I have only been programming for 4 days and learning from a book at the moment : )
Anyway, I have the map gen working almost 100%. Basically it will create the map, and open the pathways but has no way of telling if it has made a legitimet path from entry to exit.. so 1/2 the maps made will be invalid.. the other 1/2 will look fine...
I am sure I have gone about this wrong.. mabey there is a lot I am missing... but I think I will need to read more of my book as I still have about 1/3 of it to go. Still it was a lot of fun working on a problem that had no answer in the book... thanks again. M2tM.
I will now have a go at doing that "build a character / have it fight" idea of "King of Men", then get back into sloggn though the book.
Please download and have a look at my source and the exe. Any comments appreciated.. form errors in code to presentation, to "HINTS" about how to get it working 100%. Please do not just tell me what to do.
Thanks again :)
Random_Map_01.cppRandom_Map_01.exe(if those links break at some time in the future.. please look up
The Animation Club, you will find the files there)
@Vexorian
I honestly didn't read your post before I posted these results. As you can probably tell due to the fact that the source dosn't reflect your idea. That seams like a good way of doing it though, to have the program select some "key" points and then build spaces around it... but wouldn't that result in having the same map built each time? And if not how would you stop it from making a dud map (like mine dose 1/2 the time)
There is nothing able to be imagined by one man that can not be achieved by many - Jules Verne