Initial commit

This commit is contained in:
github-classroom[bot] 2025-01-14 11:07:40 +00:00 committed by GitHub
commit 87dcb960bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
67 changed files with 6733 additions and 0 deletions

47
toh_solver.c Normal file
View file

@ -0,0 +1,47 @@
/*----------------------------------------------------------
* HTBLA-Leonding / Class: <your class>
* ---------------------------------------------------------
* Exercise Number: 09
* Title: Tower of Hanoi Disk ADT implementation
* Author: */<your name>/*
* ----------------------------------------------------------
* Description:
* Implementation of toh_board.h.
* ----------------------------------------------------------
*/
/* Includes, definitions and instanciations */
/* ========================================================= */
/* Private functions */
/**
* Moves a single disk from the top of the 'source' rod to the 'target' rod.
* The move shall only be performed if it is allowed.
*
* @param source The rod from which the disk shall be moved.
* @param target The rod to which the disk shall be moved.
* @return True if the move was successful and according to the rules, false otherwise.
*/
static <type> ts_move_disk(<params>) {
}
/**
* Moves a stack of disks of the given size form the 'source' rod to the 'target' rod
* using the 'intermediate' rod as intermediate disk buffer.
* The move shall only be performed if it is valid. The move is valid, if each
* move of affected disks is allowed.
*
* @param size The size of the disk stack to move.
* @param source The rod from which the disks shall be moved.
* @param intermediate The rod that serves as intermediate buffer for the disks.
* @param target The rod to which the disks shall be moved.
* @return True if the move was successful and according to the rules, false otherwise.
*/
static <type> ts_move_stack(<params>) {
}
/* ========================================================= */
/* Public functions */