Share Link
Copied to clipboard
Embed on Your Page
Copied to clipboard
We Stand with Ukraine
.NET Fiddle Newsletter #2: Tower of Hanoi Reimagined by @dotnetfiddle
===================

3 Discs

        /1\                                                 
       //2\\                                                
      ///3\\\                                               
         A                   B                   C          

Move disk 1 from tower A to tower C

                                                            
       //2\\                                                
      ///3\\\                                   /1\         
         A                   B                   C          

Move disk 2 from tower A to tower B

                                                            
                                                            
      ///3\\\              //2\\                /1\         
         A                   B                   C          

Move disk 1 from tower C to tower B

                                                            
                            /1\                             
      ///3\\\              //2\\                            
         A                   B                   C          

Move disk 3 from tower A to tower C

                                                            
                            /1\                             
                           //2\\              ///3\\\       
         A                   B                   C          

Move disk 1 from tower B to tower A

                                                            
                                                            
        /1\                //2\\              ///3\\\       
         A                   B                   C          

Move disk 2 from tower B to tower C

                                                            
                                               //2\\        
        /1\                                   ///3\\\       
         A                   B                   C          

Move disk 1 from tower A to tower C

                                                /1\         
                                               //2\\        
                                              ///3\\\       
         A                   B                   C          

Total Moves: 7
Cached Result
Last Run: 4:53:05 am
Compile: 0.017s
Execute: 0.06s
Memory: 4.89Mb
CPU: 0.077s