Java applet for Tower of Hanoi
I am planning to write a Java applet for Tower 开发者_开发百科of Hanoi similar to link( http://www.mazeworks.com/hanoi/index.htm ) Can you suggest how should I start and proceed.
And, btw, does it require multi threading?
And also, major part of my doubt is
to make a disc being clickable and being able to drag and drop the disc on a tower.
detect a tower (if a disc is being dragged using mouse)
I would start with this http://www.rstack.com/hanoi/hanoi_src.html or http://stud1.tuwien.ac.at/~e9125168/javaa/jtower.html. As far as threading see my comment on Jonathan M Davis's answer.
You can do it with javafx it is easier than core java. Here is an example
精彩评论