gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Beginners > hanoi towers -problem

#50067 - ghost Leinad - Thu Aug 04, 2005 11:35 pm

well...i really hope that you understand my question

well..im doing a hanoi tower for the gba...but not a simulation but a game...so you can move the discs and try to acomplish the game

if anybody has done this already...not matter the platform please tell me...i'm going nuts with this...

my principal problem is that i do not know how to keep track of the discs in the diferents towers... coz i need to know which sprite is in which tower on all times...

maybe you can tell me a way of how to approach the problem from differents angles...

thanks in advance

BTW is due to monday (the program)
_________________
All human wisdom is summed up in these two words, - 'Wait and hope"
****************************************
My site www.myth-world.net and www.bmrpg.com :)

#50070 - sajiimori - Thu Aug 04, 2005 11:51 pm

Well, you've numbered all your discs, right? Then you can keep arrays of numbers for each tower, representing the discs that are on that tower from bottom to top.