Results 1 to 3 of 3
- 03-23-2009, 10:14 PM #1
Member
- Join Date
- Feb 2009
- Posts
- 5
- Rep Power
- 0
Need help with Trees...(8-puzzle)
I have an assignment that needs to be done in a little more than 2 weeks, and it is based on understanding of the Trees implementation in Java. I am to create an 8-puzzle game, where it is possible to push a button and solve the puzzle. I have been reading much about the trees structure and function, but I do not get the standard idea of how to create a tree at all. Is there a blueprint a beginner can follow to make a simple tree with for example 3 nodes? It would be of great help if anyone could pinpoint me of on how to create a small tree, just to start with.
Just for the record, I have been notified by my teacher that the correct method of doing this would be adding nodes as I am searching through the tree for the solution. Is this correct? What I don't get is how my code can search through something that not yet is created... so I get confused :(
Any help is greatly appreciated. Thanks in advance.
- 03-23-2009, 10:50 PM #2
Senior Member
- Join Date
- Jul 2008
- Posts
- 125
- Rep Power
- 0
You are right.
This does sound strange.
You might be getting the rules for the "8-puzzle"Java Code:Just for the record, I have been notified by my teacher that the correct method of doing this would be adding nodes as I am searching through the tree for the solution. Is this correct? What I don't get is how my code can search through something that not yet is created... so I get confused
mixed up with how nodes in a tree actually work.
Seperate the two, then you might be able
to submit a clearer request.
- 03-23-2009, 11:04 PM #3
Member
- Join Date
- Feb 2009
- Posts
- 5
- Rep Power
- 0
Similar Threads
-
Game Trees
By javaBoy1 in forum Advanced JavaReplies: 0Last Post: 12-27-2008, 12:20 AM -
8-Square puzzle loop
By SapphireSpark in forum New To JavaReplies: 7Last Post: 12-04-2008, 07:21 PM -
Help With Tournament Trees
By wiggsfly in forum New To JavaReplies: 2Last Post: 10-26-2008, 09:38 PM -
Java Drawing PUZZLE
By Cyorxamp in forum AWT / SwingReplies: 3Last Post: 06-09-2008, 10:35 AM -
ElegantJ Trees Bean 1.1
By JavaBean in forum Java SoftwareReplies: 0Last Post: 07-06-2007, 02:59 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks