{"id":17717703,"url":"https://github.com/infinitypaul/tower_of_hanoi","last_synced_at":"2025-03-31T12:24:48.446Z","repository":{"id":258719210,"uuid":"874477063","full_name":"infinitypaul/tower_of_hanoi","owner":"infinitypaul","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-17T23:00:53.000Z","size":75,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-20T09:52:04.583Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/infinitypaul.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-17T22:39:19.000Z","updated_at":"2024-10-17T23:00:56.000Z","dependencies_parsed_at":"2024-10-20T10:06:38.295Z","dependency_job_id":null,"html_url":"https://github.com/infinitypaul/tower_of_hanoi","commit_stats":null,"previous_names":["infinitypaul/tower_of_hanoi"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infinitypaul%2Ftower_of_hanoi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infinitypaul%2Ftower_of_hanoi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infinitypaul%2Ftower_of_hanoi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infinitypaul%2Ftower_of_hanoi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/infinitypaul","download_url":"https://codeload.github.com/infinitypaul/tower_of_hanoi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246466707,"owners_count":20782175,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-25T14:29:20.101Z","updated_at":"2025-03-31T12:24:48.420Z","avatar_url":"https://github.com/infinitypaul.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eTower of Hanoi\u003c/h1\u003e\n\u003cp align=\"center\"\u003e A simple pyramid puzzle\u003c/p\u003e\n\n\u003cp\u003e\u0026nbsp;\u003c/p\u003e\n\n## Download Instruction\n\n\u003e Application Requirements\n* PHP \u003e= 8.2\n* A web server like Apache or Nginx\n* Composer for dependency management.\n\n1. Clone the project.\n\n```\ngit clone https://github.com/infinitypaul/tower_of_hanoi.git projectname\n```\n\n2. Install dependencies via composer.\n\n```\ncomposer install \n```\n\n4. Run php server.\n\n```\nphp artisan serve\n```\n\n\u003cp\u003e\u0026nbsp;\u003c/p\u003e\n\nEnjoy!\n\n\n## Api Usage\n\nNotes:\n- http://localhost:8000/ is your base URL. Replace it with your server's base URL if necessary.\n- No persistence is needed across requests. The game resets if the server restarts.\n\n```\nGET http://localhost:8000/api/state\n```\nDescription: 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.\n\n\n\n```\nPOST http://localhost:8000/api/move/{from}/{to}\n```\nDescription: Moves a disk from one rod (from) to another rod (to).\n\nWhere:\n* {from}: The rod from which you want to move a disk (1-based index).\n* {to}: The rod to which you want to move the disk (1-based index).\n\n### Testing\n```\nphp artisan test\n```\nYou should see the results of the tests, ensuring that the application works as expected.\n\n### Static Analysis\nThis project uses PHPStan for static code analysis to ensure code quality and prevent errors\n```\nvendor/bin/phpstan analyse\n\n```\n### License\n\nThe  Tower of Hanoi is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfinitypaul%2Ftower_of_hanoi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finfinitypaul%2Ftower_of_hanoi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfinitypaul%2Ftower_of_hanoi/lists"}