C# lets you change the console size based on characters, I think it returns an exception if you set it to high.
[QUOTE=garry;30563257]This is wrong as I should have been entering a node then adding the children to a `todo list`, and then processing the todo list in the order of closest first.. repeat until a match is found.[/QUOTE]
sounds like you have a greedy best-first search, are you sure that's what you want?
if you want optimal paths you're going to have to incorporate the distance from the starting point too
[b]edit[/b]
otherwise you'll end up with solutions like this detailed diagram displays
[img]http://i.imgur.com/aU3kE.png[/img]
[QUOTE=chaoselite;30563908][img]http://img.photobucket.com/albums/v661/chaoselite/gettingbetter.png[/img]
Anyone have any program ideas to give to a starter to get some experience?[/QUOTE]
Perhaps do it in reverse, you pick a number between 0 and N (you decide what N is) and the program makes a series of guesses. You tell the program if the number it guessed is too low or too high (by typing "low" or "high" or maybe just "l" or "h") and the program narrows it down.
See if you can find a good algorithm to use to get the lowest amount of guesses possible.
[QUOTE=icantread49;30564051]sounds like you have a greedy best-first search, are you sure that's what you want?
if you want optimal paths you're going to have to incorporate the distance from the starting point too
[b]edit[/b]
otherwise you'll end up with solutions like this detailed diagram displays
[img]http://i.imgur.com/aU3kE.png[/img][/QUOTE]
No it doesn't work like that.. that's how the first one worked. The fixed one works properly.
[url]http://dl.dropbox.com/u/3590255/Tests/HTML5/013-NodeGraph/index.html[/url]
[img]http://dl.dropbox.com/u/313489/solitaire.jpg[/img]
All the game logic is done, now I just have to do the interaction, which is the part I never enjoy for some reason.
[QUOTE=garry;30564255]No it doesn't work like that.. that's how the first one worked. The fixed one works properly.
[url]http://dl.dropbox.com/u/3590255/Tests/HTML5/013-NodeGraph/index.html[/url][/QUOTE]
Oh so by "closest first" you meant closest to the starting point not the target point?
Yup that's totally right, Dijkstra's algorithm
Did you look into A*? it'll eliminate a lot of unneeded exploring like you can see here
[img]http://i.imgur.com/H6KT1.png[/img]
It is A* - not sure why that's exploring all the way up there - will have to look into that!
[QUOTE=garry;30565457]It is A* - not sure why that's exploring all the way up there - will have to look into that![/QUOTE]
oh okay im sorry for my misunderstanding :eng99: good luck :)
Just learned how to save and load user settings and how to use the registry with C#.
:woop:
[QUOTE=vexx21322;30566243]Just learned how to save and load user settings and how to use the registry with C#.
:woop:[/QUOTE]
You're not keeping settings in the registry, are you?
[QUOTE=Ortzinator;30566702]You're not keeping settings in the registry, are you?[/QUOTE]
What's wrong with that? Source does it.
[QUOTE=DeadKiller987;30566812]What's wrong with that? Source does it.[/QUOTE]
Still, it's probably nicer to do it in files to keep the registry clean.
[QUOTE=DeadKiller987;30566812]What's wrong with that? Source does it.[/QUOTE]
It does? Got an example?
The registry should be used for OS layer specific things, like installation paths and serial keys. Use config files for the rest. .NET provides a very nice automated settings class for that.
[QUOTE=Ortzinator;30566702]You're not keeping settings in the registry, are you?[/QUOTE]
No no, they are used for completely different things.
[QUOTE=DeadKiller987;30566812]What's wrong with that? Source does it.[/QUOTE]
What are the .cfg files for, then :downs:
[QUOTE=esalaka;30567464]What are the .cfg files for, then :downs:[/QUOTE]
Half-Life 2, Portal, Portal 2, and Alien Swarm all save your settings in the registry.
[QUOTE=Xeon06;30566939]It does? Got an example?
The registry should be used for OS layer specific things, like installation paths and serial keys. Use config files for the rest. .NET provides a very nice automated settings class for that.[/QUOTE]
[IMG]http://puu.sh/2Idq[/IMG]
So basically i am trying to create a simple game where the user shoots little zombies (I know its overused but i just want to see if i can actually make it)
But I really don't understand how to make the zombies move towards the player, I have a vector library ([url]http://vrld.github.com/hump/#vector[/url]) and i know all the zombies positions and the players but i have no idea how to use vectors in this way, we have no been taught vectors in school and all the resources i can find do not help at all.
[img]http://bambofy.co.uk/junk/jfsen.png[/img]
The registry can be used for whatever. It DOESN'T make the system slower, unless you modify values that the system accesses during boot up/multiple times during runtime such as startup.
awesome highlights
one day i will be in the highlights.. one day..
[QUOTE=vexx21322;30567510][IMG]http://puu.sh/2Idq[/IMG][/QUOTE]
I've always thought that Source saves all settings in .cfg's. Seems that I've been wrong.
[QUOTE=Kopimi;30567691]awesome highlights
one day i will be in the highlights.. one day..[/QUOTE]
Not if you don't learn to capitalize your words, you wont.
[QUOTE=DeadKiller987;30566812]Source does it.[/QUOTE]
So it's okay.
Edit: Sarcasm.
[QUOTE=sim642;30567730]I've always thought that Source saves all settings in .cfg's. Seems that I've been wrong.[/QUOTE]
It appears that it only saves the video settings in the registry for in case the config file gets corrupt or deleted.
[QUOTE=Rohans;30567738]So it's okay.[/QUOTE]
company X does Y so Y is totally okay
[QUOTE=DeadKiller987;30567735]Not if you don't learn to capitalize your words, you wont.[/QUOTE]
Are you implying that how you type affects your chances of getting highlighted?
Because that is silly and wrong.
Using the registry is silly because it's Windows only.
What about if the registry gets corrupted?
I cannot bear programs that shit files, folders and settings all over your computer.
[QUOTE=Rohans;30567738]So it's okay.[/QUOTE]
Source sucks at it tho.
[img]http://f.cl.ly/items/140c3K462z2b3i2x1h2I/Untitled.png[/img]
Sorry, you need to Log In to post a reply to this thread.