Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 355 results for
hanoi
- Page 1
HANOI
Programming
Software Development
14 Years Ago
by stephbebalinda
… debo la vida gracias //************************************************** ****** la funcion se llama
hanoi
y donde dibujo es a travez del paint component //************************************************** …void actionPerformed(ActionEvent algo) { parar=false; if(primera=true) {
hanoi
(stack1.n+1,stack1,stack2,stack3); primera=false; } } } …
Re: HANOI
Programming
Software Development
14 Years Ago
by stephbebalinda
soryy is the first time I just this kind of stuff, well Im making the game of
Hanoi
and one thing I need is that the game solv itself, so I did it but I dont know if my paintComponent or were is my problem cuz I cant see like the process and neither if I use sleep or wait so I want to know how to solv it
hanoi puzzle help
Programming
Software Development
19 Years Ago
by mina1984
… could help me with this problem. It deals with the
hanoi
puzzle and i did the code but the output isnt…
hanoi tower game
Programming
Software Development
18 Years Ago
by amatallah
function to solve
hanoi
tower game
Hanoi Towers with user input
Programming
Software Development
14 Years Ago
by kabilah
I'm having an issue with a
Hanoi
Tower problem. I'm passing an index variable and a …
Re: Hanoi Towers with user input
Programming
Software Development
14 Years Ago
by VernonDozier
… lines to see there's a problem. Efficient Tower of
Hanoi
algorithms need to allow for moves between non-adjacent pegs…
Re: Hanoi Towers with user input
Programming
Software Development
13 Years Ago
by kabilah
… reason I put that is because I'm running another
Hanoi
Towers program with static 3 rings and 3 pegs. I…
Re: Hanoi Towers with user input
Programming
Software Development
13 Years Ago
by VernonDozier
… as outlined above, the optimal solution for the Tower of
Hanoi
problem with four pegs (called Reve's puzzle), let alone…
Re: HANOI
Programming
Software Development
14 Years Ago
by s_sridhar
I thought English was the medium here!! Post your code within code tags
Re: HANOI
Programming
Software Development
14 Years Ago
by s_sridhar
You mean, you want to see the rectangles move? and all other stuff's are working properly?
Re: HANOI
Programming
Software Development
14 Years Ago
by s_sridhar
May i know what exactly you are attempting here?
Re: HANOI
Programming
Software Development
14 Years Ago
by stephbebalinda
well all the stuff works good the only thing is that I want to see how it moves and I cant see the problem, in the part that the user can move his stuff the programa works good and the rectangles move well but I dont know why if in a part works good why in this one dont
Re: HANOI
Programming
Software Development
14 Years Ago
by s_sridhar
Shouldn't repaint() method be called after each step of the recursion?
Re: HANOI
Programming
Software Development
14 Years Ago
by stephbebalinda
did that and dosnt work
Question on my code in tower of hanoi
Programming
Software Development
19 Years Ago
by kennethwcn
…: addi $a2,$a2,-1 move $a1,$t1 jal
hanoi
# call
hanoi
li $v0,4 #--------------------(**) la $a0,msg2 syscall li…addi $a2,$a2,-1 move $t7,$t1 jal
hanoi
# call
hanoi
j endcase # goto exit code (return)---------------------(***) ---------------------------------End…
Re: Towes of Hanoi help (Dont understand)
Programming
Software Development
14 Years Ago
by TrustyTony
… as middle """ indent = ' '*(10-n) print indent+'
hanoi
(%i, %s, %s, %s)' % (n,a,b,c) if… move calls from tracing and gives less prints: [CODE]def
hanoi
(n, a='A', b='B', c='C'): ""…""" indent = ' '*(10-n) if n == 0: return
hanoi
(n-1, a, c, b) print indent,a, '->', c…
Re: Towers of Hanoi non recursive: Is my code correct?
Programming
Software Development
12 Years Ago
by Gribouillis
… too. For this, use the following code together with the
Hanoi
module #!/usr/bin/env python # -*-coding: utf8-*- # hanoiclient.py…warning: this is draft quality code from
Hanoi
import
Hanoi
class InvalidMove(Exception): pass class MyHanoi(
Hanoi
): def __init__(self, nrOfDiscs, speed, algorithm…
Tower of Hanoi using stacks
Programming
Software Development
14 Years Ago
by boiishuvo
…main (void) { // Local Definitions void push(); pop(); void
hanoi
(int N, char source, char dest, char aux); int*…if (smallest <= source) { printf("\nThe tower of
hanoi
\n"); while(!emptyStack(stack)) { destroyStack (stack); system("…
Re: Towers of Hanoi
Programming
Computer Science
16 Years Ago
by sarehu
…function to "work"? If you run [icode]
Hanoi
(n, startTower, endTower)[/icode] "working" … " + start + " to tower " + target);
hanoi
(n-1, start ^ target, target); } }[/code] Just to make …quot; + start + " to tower " + target); D:
hanoi
(n-1, start ^ target, target); } E: }[/code] If I …
Towers of Hanoi non recursive: Is my code correct?
Programming
Software Development
12 Years Ago
by peterparker
…written the following code for Towers of
Hanoi
problem using non recursive approach. I guess…varialbel print "Program to simulate Towers of
Hanoi
" print "Users will input numbers …over" print "This completes TOWERS OF
HANOI
!" print "Final disk positions are:"…
Re: Towes of Hanoi help (Dont understand)
Programming
Software Development
14 Years Ago
by TrustyTony
… case like Winston-Horn [CODE]>>> def
hanoi
(n, a='A', b='B', c='C'): "…' % (n-1, a,c,b)
hanoi
(n-1, a, c, b)
hanoi
(1, a, b, c) if n>…peg to %s' % (n-1, b,a,c)
hanoi
(n-1, b, a, c) print indent,'%i from %… % (n,a,b,c) print >>>
hanoi
(3) GOAL: 3 from A through B to C 2…
Towers of Hanoi(Recursion)
Programming
Software Development
19 Years Ago
by Chinjoo
…conio.h> #include<math.h> void
hanoi
(int x, char from,char to,char aux) { if…%c to %c\n",from,to); } else {
hanoi
(x-1,from,aux,to); printf("Move Disk From… %c to %c\n",from,to);
hanoi
(x-1,aux,to,from); } } void main() { int …of moves required is=%d \n",moves);
hanoi
(disk,'A','C','B'); getch(); }[/CODE]
Towers of hanoi
Programming
Software Development
17 Years Ago
by nse2008
…should be moved. Thank you' 'This is my code' Function
Hanoi
(ByVal howmany As Long) As Long If (howmany = 1) …Then Return 1 Else Dim imovs As Long imovs +=
Hanoi
(howmany - 1) imovs +=
Hanoi
(1) imovs +=
Hanoi
(howmany - 1) Return imovs End If
Re: Tower of Hanoi using stacks
Programming
Software Development
14 Years Ago
by boiishuvo
… work, but you can make a very colorful Tower of
Hanoi
game, using just the text console. Making each disk with… add colors. All I need is a simple Tower of
Hanoi
, for example: Moving disc 1 from Tower 1 to Tower…
Towes of Hanoi help (Dont understand)
Programming
Software Development
14 Years Ago
by wilko1995
Hey, does anyone think they could explain how this code works? [CODE]def
hanoi
(n, a='A', b='B', c='C'): """ move n discs from a to c using b as middle """ if n == 0: return
hanoi
(n-1, a, c, b) print a, '->', c
hanoi
(n-1, b, a, c)
hanoi
(3) [/CODE]
How many percentage do you know about Tower of Hanoi problem
Programming
Software Development
14 Years Ago
by htq2511
…. Here is the code of Tower of
Hanoi
problem: [code]#include<iostream> …This C++ program is to solve the towers of
hanoi
problem"; cout << "\n************************************************…This C++ program is to solve the towers of
hanoi
problem"; cout << "\n…
Re: Tower of Hanoi using stacks
Programming
Software Development
14 Years Ago
by Adak
… work, but you can make a very colorful Tower of
Hanoi
game, using just the text console. Making each disk with…
Re: Tower of hanoi Help...
Programming
Software Development
14 Years Ago
by Adak
…every call to the (I'll call it
Hanoi
function), has a double recursive call to itself…, i, j, and moveNum) { //all int's moveNum++
Hanoi
(n - 1, i, 6 - i - j, moveNum) … i to j if(moveNum mod 4 == 0) print newline
Hanoi
(n - 1, 6 - i - j, j, moveNum)… the game was called Tower of Brahmam, before
Hanoi
was made popular for it's name. Yeah…
Towers of Hanoi Recursive
Programming
Software Development
16 Years Ago
by jghost
Ok this is the classic Towers of
Hanoi
question. Legend has it that in a temple in …along it's path until it solves the Towers of
Hanoi
problem. I can't follow this recursive function and …; "This C++ program is to solve the towers of
hanoi
problem"; cout << "\n************************************************ **********\n";…
Re: Towers of Hanoi non recursive: Is my code correct?
Programming
Software Development
12 Years Ago
by peterparker
Thanks, I will use it. This TOWERS OF
HANOI
is indeed an UNIQUE problem.
1
2
3
6
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC