Hello , i'm trying to solve a problem Tower of Hanoi recursively. I'm having problems with coming up with logic how to treat disks in terms of value. Lets say i have 3 disks how should i assign values to them ? My function is supposed to be defined such as.
int move_disk(int disk,int peg1,int peg2,int peg3)
I don't need the code i'm trying to understand how to do it. Just ideas please.