View Source TowerHanoi (Towers of Hanoi v1.0.0)
Command Line application version of the Tower of Hanoi.
Sets up a board and then runs the algorithm. Just uses the domain model and alorithm, avoiding OTP.
An alternative to the OTP Phoenix application
graph TD;
classDef server fill:#D0B441,stroke:#AD9121,stroke-width:1px;
classDef supervision fill:#D000FF,stroke:#D0B441,stroke-width:1px;
classDef topic fill:#B5ADDF,stroke:#312378,stroke-width:1px;
classDef db fill:#9E74BE,stroke:#4E1C74,stroke-width:1px;
subgraph CLI
G1(TowerHanoi):::supervision;
T1(CLI):::topic;
end
subgraph Algo
T2(Board):::topic;
T3(Algo):::topic;
T4(Render):::topic;
end
G1(TowerHanoi):::supervision ==> T1(CLI):::topic;
G1(TowerHanoi):::supervision ==> T2(Board):::topic;
G1(TowerHanoi):::supervision ==> T3(Algo):::topic;
G1(TowerHanoi):::supervision ==> T4(Render):::topic;
Summary
Functions
Main command-line entry point. Gets arguments parsed responds accordingly.
Functions
@spec main(argv :: [String.t()]) :: :ok
Main command-line entry point. Gets arguments parsed responds accordingly.