Recommend this page to a friend! |
Classes of Edward Paul | Tower of Hanoi | README.md | Download |
|
Download <h1 align="center">Tower of Hanoi</h1> <p align="center"> A simple pyramid puzzle</p> <p> </p> Download Instruction> Application Requirements * PHP >= 8.2 * A web server like Apache or Nginx * Composer for dependency management.
<p> </p> Enjoy! Api UsageNotes: - http://localhost:8000/ is your base URL. Replace it with your server's base URL if necessary. - No persistence is needed across requests. The game resets if the server restarts.
Description: Retrieves the current state of the Tower of Hanoi game, including the positions of the disks on the rods and whether the game is over.
Description: Moves a disk from one rod (from) to another rod (to). Where: * {from}: The rod from which you want to move a disk (1-based index). * {to}: The rod to which you want to move the disk (1-based index). Testing
You should see the results of the tests, ensuring that the application works as expected. Static AnalysisThis project uses PHPStan for static code analysis to ensure code quality and prevent errors
LicenseThe Tower of Hanoi is open-sourced software licensed under the MIT license |