{"id":18886918,"url":"https://github.com/lostjared/knights_tour.javascript","last_synced_at":"2026-02-23T20:30:20.432Z","repository":{"id":241062419,"uuid":"804208465","full_name":"lostjared/Knights_Tour.JavaScript","owner":"lostjared","description":"Solving Knights Tour in HTML5/JavaScript","archived":false,"fork":false,"pushed_at":"2024-05-22T13:51:11.000Z","size":116,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-31T05:17:30.987Z","etag":null,"topics":["javascript","knights-tour","math","puzzle"],"latest_commit_sha":null,"homepage":"http://lostsidedead.biz/knights-tour","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lostjared.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-05-22T06:51:15.000Z","updated_at":"2024-05-22T14:38:31.000Z","dependencies_parsed_at":"2024-11-08T07:32:18.568Z","dependency_job_id":"e2ca1b37-66ae-42be-a749-1864e7c25b00","html_url":"https://github.com/lostjared/Knights_Tour.JavaScript","commit_stats":null,"previous_names":["lostjared/knights_tour.javascript"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostjared%2FKnights_Tour.JavaScript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostjared%2FKnights_Tour.JavaScript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostjared%2FKnights_Tour.JavaScript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostjared%2FKnights_Tour.JavaScript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lostjared","download_url":"https://codeload.github.com/lostjared/Knights_Tour.JavaScript/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239859566,"owners_count":19708861,"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":["javascript","knights-tour","math","puzzle"],"created_at":"2024-11-08T07:32:03.133Z","updated_at":"2026-02-23T20:30:20.357Z","avatar_url":"https://github.com/lostjared.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Knight's Tour Demo\n\n![screenshot](https://github.com/lostjared/Knights_Tour.JavaScript/blob/main/screens/knights.tour.jpg)\n\nThis is a simple implementation of the Knight's Tour problem using HTML5 Canvas and JavaScript. The demo visualizes the knight's movement on an 8x8 chessboard, where the knight visits each square exactly once.\n\n## Features\n\n- Visual representation of the Knight's Tour on a chessboard.\n- User can press the spacebar to move the knight to the next position.\n- User can press the Enter key to reset the tour.\n\n## Getting Started\n\nTo run this demo, simply open the the directory containing the project\nrun\n```bash\npython3 -m http.server 3000\n```\nopen your web browser to localhost:3000\n\n\n### Prerequisites\n\n- A modern web browser (e.g., Chrome, Firefox, Edge).\n\n## Files\n\n- `index.html`: The main HTML file that sets up the canvas and includes the JavaScript file.\n- `script.js`: The JavaScript file containing the logic for the Knight's Tour and drawing functions.\n- `knight.png`: The image of the knight used in the demo.\n\n## Usage\n\n1. Download or clone the repository to your local machine.\n2. Open in your web browser over http\n3. Use the following keys to interact with the demo:\n   - `Space`: Move the knight to the next position.\n   - `Enter`: Reset the Knight's Tour.\n\n## Implementation Details\n\nThe demo uses HTML5 Canvas to draw the chessboard and the knight. The knight image is processed to remove its white background and is drawn on the board at each step.\n\n\nThis project is open-source and available under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flostjared%2Fknights_tour.javascript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flostjared%2Fknights_tour.javascript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flostjared%2Fknights_tour.javascript/lists"}