{"id":50366749,"url":"https://github.com/robjtede/circuits","last_synced_at":"2026-05-30T04:30:28.810Z","repository":{"id":359800337,"uuid":"1247564824","full_name":"robjtede/circuits","owner":"robjtede","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-26T09:26:17.000Z","size":500,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-30T04:30:28.646Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/robjtede.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-23T13:39:24.000Z","updated_at":"2026-05-26T09:26:21.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/robjtede/circuits","commit_stats":null,"previous_names":["robjtede/circuits"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/robjtede/circuits","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robjtede%2Fcircuits","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robjtede%2Fcircuits/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robjtede%2Fcircuits/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robjtede%2Fcircuits/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robjtede","download_url":"https://codeload.github.com/robjtede/circuits/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robjtede%2Fcircuits/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33680522,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-30T02:00:06.278Z","response_time":92,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2026-05-30T04:30:27.136Z","updated_at":"2026-05-30T04:30:28.792Z","avatar_url":"https://github.com/robjtede.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Circuits\n\nA small canvas-based Circuits game.\n\n### Development\n\nInstall dependencies:\n\n```sh\nnpm install\n```\n\nStart the local dev server:\n\n```sh\nnpm run dev\n```\n\nCreate a production build:\n\n```sh\nnpm run build\n```\n\n### Puzzle Tools\n\nCheck whether a potential grid is solvable:\n\n```sh\njust solve -- --grid 'A...A/B...B/C...C/D...D/E...E'\n```\n\nGenerate a solvable grid:\n\n```sh\njust generate -- 8 --pairs 8 --seed 42\n```\n\nThe solver/generator is a Rust Cargo project in `puzzle-tools/`.\nThe `just solve` and `just generate` recipes run it with `cargo run --release`,\nso Cargo handles\nrebuilds and caches the optimized binary under `puzzle-tools/target/`.\n\nGrid rules:\n\n- Each endpoint label must appear exactly twice.\n- Empty cells are `.`, `_`, or `-`.\n- Rows can be separated by newlines, `/`, commas, or semicolons.\n- Whitespace is ignored.\n\nYou can also pass a file or pipe a grid through stdin:\n\n```sh\njust solve -- puzzles/candidate.txt\njust solve -- --quiet \u003c puzzles/candidate.txt\n```\n\nExit code `0` means solvable, `1` means unsolvable, and `2` means invalid input or\nthe search timed out. Use `--timeout-ms 0` to disable the default 30 second timeout.\n\nGenerated puzzles default to roughly one endpoint pair per board row/column.\nSquare boards at that density are built from balanced path tilings; other counts\nfall back to slicing complete solution paths. Generated candidates enforce\nnon-adjacent endpoints, reject 2x2 same-color solution blocks, reject band-heavy\nsolutions, reward shorter straight-line runs and more bends per path, and are\nverified to have exactly one solution by default. Use `--solution` to print the\ngenerated full solution, or `--no-verify` to skip the solver check. Use `--stats`\nto print the selected candidate's reward score, longest straight run, total\nbends, and average bends per path.\n\nBuild the container image:\n\n```sh\ndocker build -t circuits .\n```\n\nRun the container locally:\n\n```sh\ndocker run --rm -p 8080:80 circuits\n```\n\n### Known Issues\n\n- Mouse/touch events need re-factoring\n\n### To start\n\n- Modularization\n- Handle window resize\n- Level design/creator tool\n- Database system\n- Check amount of circuits completed\n- Assume straight line behavior\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobjtede%2Fcircuits","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobjtede%2Fcircuits","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobjtede%2Fcircuits/lists"}