{"id":18320236,"url":"https://github.com/gedex/towerofhanoijs","last_synced_at":"2026-03-15T13:54:20.761Z","repository":{"id":2572417,"uuid":"3552580","full_name":"gedex/TowerOfHanoiJS","owner":"gedex","description":"JavaScript code to create Tower of Hanoi game","archived":false,"fork":false,"pushed_at":"2012-02-26T19:50:50.000Z","size":192,"stargazers_count":6,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-09T08:51:37.980Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/gedex.png","metadata":{"files":{"readme":"README.markdown","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}},"created_at":"2012-02-26T14:52:40.000Z","updated_at":"2024-08-26T15:54:50.000Z","dependencies_parsed_at":"2022-09-16T01:35:12.491Z","dependency_job_id":null,"html_url":"https://github.com/gedex/TowerOfHanoiJS","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gedex/TowerOfHanoiJS","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gedex%2FTowerOfHanoiJS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gedex%2FTowerOfHanoiJS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gedex%2FTowerOfHanoiJS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gedex%2FTowerOfHanoiJS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gedex","download_url":"https://codeload.github.com/gedex/TowerOfHanoiJS/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gedex%2FTowerOfHanoiJS/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30543489,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-15T12:15:27.454Z","status":"ssl_error","status_checked_at":"2026-03-15T12:15:26.919Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-11-05T18:15:37.275Z","updated_at":"2026-03-15T13:54:20.738Z","avatar_url":"https://github.com/gedex.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TowerOfHanoiJS #\nJavaScript code to create Tower of Hanoi game.\n\nVersion: 0.1\n\nThis code itself is not a jQuery plugin, but this code needs jQuery and jQuery UI\nto run. Make sure jQuery and jQuery UI are loaded first before create \nthe Game instance.\n\n## Documentation ##\nFirst, you need block container for your game instance in your html document.\njQuery and jQuery UI must be loaded before this script. The following example\nis the simple way to put it altogether:\n\n    \u003chtml\u003e\n    \u003cbody\u003e\n      \u003cdiv id=\"game-container\"\u003e\u003c/div\u003e\n      \u003cscript src=\"js/jquery-1.7.1.min.js\"\u003e\u003c/script\u003e\n      \u003cscript src=\"js/jquery-ui.min.js\"\u003e\u003c/script\u003e\n      \u003cscript src=\"js/TowerOfHanoi.min.js?v=0.1\"\u003e\u003c/script\u003e\n    \u003c/body\u003e\n    \u003c/html\u003e\n\nCreate Tower of Hanoi game instance by calling Game constructor:\n\n    jQuery(function() {\n      game = new Game();\n    });\n\nCreating Game object without any options passed to constructor will create pegs\nwith droppable behavior and discs with draggable behavior. You need to declare\nyour own rule for the game, example_02.html gives you the basic overview for\nthe rule of the game.\n\n## Examples ##\nThere are three working examples, with commented code as guide, to give you\na brief view on how this code can be used in several ways. All examples are\nprovided in root directory of this repository.\n\n### example_01.html ###\nLive demo of this example: http://tower-of-hanoi.appspot.com/example_01.html\n\n### example_02.html ###\nLive demo of this example: http://tower-of-hanoi.appspot.com/example_02.html\n\n### example_03.html ###\nLive demo of this example: http://tower-of-hanoi.appspot.com/example_03.html\n\n## jQuery and jQuery UI versions ##\nThis code has been tested with jQuery 1.7.1 and jQuery UI 1.8.16 (both versions\nincluded in js directory). You may help me by testing the code with other\njQuery and jQuery UI versions.\n\n## Supported Browsers ##\nChrome 16, Firefox 4. You may help me by testing the code with other browsers.\n\n## License ##\nCopyright (c) 2012 Akeda Bagus \u003cadmin@gedex.web.id\u003e\nLicensed under MIT (http://www.opensource.org/licenses/mit-license.php) license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgedex%2Ftowerofhanoijs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgedex%2Ftowerofhanoijs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgedex%2Ftowerofhanoijs/lists"}