How to do this G@me

http://members.sigecom.net/kseifert/WordLadders/solver.htm

First of all, is the above game difficult to do? will it take a lot time?

I intend to do similiar stuff but without the GUI

Thanks









babypinkAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

hoomanvCommented:
Download the applet jar file from
http://members.sigecom.net/kseifert/WordLadders/WordLadders.jar
Use a java decompiler like JAD to see the source code of the applet
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
babypinkAuthor Commented:
Downloaded JAD, but it only can decomplie .class file?
0
VenabiliCommented:
Get the class files out of the jar file... Jar is an archive...
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

babypinkAuthor Commented:
How to do it?
0
hoomanvCommented:
Use an arcive manager like winzip winrar 7zip
0
hoomanvCommented:
Or type in cmd: jar -xf WordLadders.jar
0
hoomanvCommented:
Copy the below line in a batch file (i.e. jad.bat) near jad.exe
   jad.exe -sjava -ff -pv4 -noctor -nonlb -space -t -o *.class
Then place all classes which you've extracted from WordLadders.jar, near jad.bat
Now double click on jad.bat
0
babypinkAuthor Commented:
Hi hoomanv

manage to do it, thanks
0
babypinkAuthor Commented:
can i ask how to convert a word like "dog" to an integer?
0
babypinkAuthor Commented:
Example given a string of
re
ti
to
uh
um
un
up
us
ut
we
wo
xi
xu
ya
yo
How to find the shortest path to get from "re" to "yo" changing 1 letter a time ?
so it it "re" -> "we" -> "wo" -> "yo"
0
hoomanvCommented:
Perform a BFS (Breadth First Search)
0
hoomanvCommented:
> "dog" to an integer
"dog".hashCode()
0
babypinkAuthor Commented:
Hi hoomanv ,

how to code for Perform a BFS (Breadth First Search)?
0
hoomanvCommented:
You should first learn it. Read the soloutions to problems that are solved by BFS.
Then in this game you start from a root node and expand it to every other leaf node that is reachable from root.
For example "to"
Will lead to "ti" and "wo" and "yo"
And for each new node you have to perform the same strategy until you reach the answer
BFS can be implemented by a Tree or Stack data structure
0
babypinkAuthor Commented:
Any similiar code to reference from?
0
hoomanvCommented:
0
babypinkAuthor Commented:
hard to cant find something similiar to my problem.....
0
hoomanvCommented:
You might not found anything similar similar, you should first get the idea behind BFS, and then start coding the game yourself
0
babypinkAuthor Commented:
Given
private static List<String> data = new LinkedList<String>();
private static List<String>container = new LinkedList<String>();

How to check if a String in "data" is contain in the "container"

how to code it?

0
hoomanvCommented:
Iterate thru all elements of data and check
container.contains(element)
0
babypinkAuthor Commented:
I can understand BFS in regard the nodes.....

But how to use it in my problem above?

Can explain in regard my example?
0
hoomanvCommented:
And the reason for C grade ?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.