|
-
February 3rd, 2000, 03:13 PM
#1
hanoi
towers of hanoi source code in VB??
-
February 4th, 2000, 04:00 AM
#2
Re: hanoi
Well, since your towers are stacks, just make three stacks (First in, last out) containing the variables that describe the disks. Then as the user wants to move a disk, just grab the next one in the stack, compare it's size to the disk on top of the stack the user wants to move it to, then move variable if the disk will fit.
Brewguru99
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|