Towers of Hanoi

image <P> Try to move the discs on tower A to tower B by using tower C. You may only place a small disc on a larger disc. <hr> <FORM name="hanoi"> <TABLE cellspacing=0 cellpadding=0 align=left> <TR> <TD ALIGN=center> <FONT size="+3" color="#ff0000"> Tower A </FONT> </TD> </TR> <TR> <TD> <INPUT type="button" value="to B" onClick="moveDisc(0, 1)"> <INPUT type="button" value="to C" onClick="moveDisc(0, 2)"> </TD> </TR> <TR> <TD align=center> <INPUT type="text" size=13> </TD> </TR> <TR> <TD align=center> <INPUT type="text" size=13> </TD> </TR> <TR> <TD align=center> <INPUT type="text" size=13> </TD> </TR> <TR> <TD align=center> <INPUT type="text" size=13> </TD> </TR> <TR> <TD align=center> <INPUT type="text" size=13> </TD> </TR> <TR> <TD align=center> <INPUT type="text" size=13> </TD> </TR> <TR> <TD align=center> <INPUT type="text" size=13> </TD> </TR> </TABLE> <TABLE cellspacing=0 cellpadding=0 align=right> <TR> <TD align=center> <FONT size="+3" color="#ff0000"> Tower B </FONT> </TD> </TR> <TR> <TD> <INPUT type="button" value="to A" onClick="moveDisc(1, 0)"> <INPUT type="button" value="to C" onClick="moveDisc(1, 2)"> </TD> </TR> <TR> <TD align=center> <INPUT type="text" size=13> </TD> </TR> <TR> <TD align=center> <INPUT type="text" size=13> </TD> </TR> <TR> <TD align=center> <INPUT type="text" size=13> </TD> </TR> <TR> <TD align=center> <INPUT type="text" size=13> </TD> </TR> <TR> <TD align=center> <INPUT type="text" size=13> </TD> </TR> <TR> <TD align=center> <INPUT type="text" size=13> </TD> </TR> <TR> <TD align=center> <INPUT type="text" size=13> </TD> </TR> </TABLE> <br><br><br> <CENTER> <TABLE cellspacing=0 cellpadding=0> <TR> <TD Align=center> <FONT size="+3" color="#ff0000"> Tower C </FONT> </TD> </TR> <TR> <TD> <INPUT type="button" value="to A" onClick="moveDisc(2, 0)"> <INPUT type="button" value="to B" onClick="moveDisc(2, 1)"> </TD> </TR> <TR> <TD align=center> <INPUT type="text" size=13> </TD> </TR> <TR> <TD align=center> <INPUT type="text" size=13> </TD> </TR> <TR> <TD align=center> <INPUT type="text" size=13> </TD> </TR> <TR> <TD align=center> <INPUT type="text" size=13> </TD> </TR> <TR> <TD align=center> <INPUT type="text" size=13> </TD> </TR> <TR> <TD align=center> <INPUT type="text" size=13> </TD> </TR> <TR> <TD align=center> <INPUT type="text" size=13> </TD> </TR> </TABLE> </CENTER> </FORM> <BR> <BR> </TABLE> </CENTER> </BODY>