{"id":16015546,"url":"https://github.com/blevic/cubeofrubik","last_synced_at":"2025-07-19T03:36:54.553Z","repository":{"id":39164379,"uuid":"506856925","full_name":"blevic/cubeofrubik","owner":"blevic","description":"A Rubik's cube model and solver","archived":false,"fork":false,"pushed_at":"2022-07-09T23:55:26.000Z","size":51,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-01T10:48:04.981Z","etag":null,"topics":["kociemba","puzzle","puzzle-solver","rubiks-cube","rubiks-cube-solver"],"latest_commit_sha":null,"homepage":"","language":"Python","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/blevic.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}},"created_at":"2022-06-24T02:47:17.000Z","updated_at":"2022-07-09T20:31:29.000Z","dependencies_parsed_at":"2022-08-25T19:50:27.907Z","dependency_job_id":null,"html_url":"https://github.com/blevic/cubeofrubik","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/blevic/cubeofrubik","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blevic%2Fcubeofrubik","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blevic%2Fcubeofrubik/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blevic%2Fcubeofrubik/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blevic%2Fcubeofrubik/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blevic","download_url":"https://codeload.github.com/blevic/cubeofrubik/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blevic%2Fcubeofrubik/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265883680,"owners_count":23843800,"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":["kociemba","puzzle","puzzle-solver","rubiks-cube","rubiks-cube-solver"],"created_at":"2024-10-08T15:40:33.884Z","updated_at":"2025-07-19T03:36:54.527Z","avatar_url":"https://github.com/blevic.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cubeofrubik\n\u003cp align=\"left\"\u003e\n  \u003ca href='https://pypi.org/project/cubeofrubik/'\u003e\n    \u003cimg src='https://img.shields.io/pypi/v/cubeofrubik' alt='PyPi Version' /\u003e\n  \u003c/a\u003e\n  \u003ca href='https://pypi.org/project/cubeofrubik/'\u003e\n    \u003cimg src='https://img.shields.io/pypi/dm/cubeofrubik' alt='Downloads/Month' /\u003e\n  \u003c/a\u003e\n    \u003ca href='https://github.com/blevic/cubeofrubik/actions/workflows/package-tests.yml'\u003e\n    \u003cimg src='https://github.com/blevic/cubeofrubik/actions/workflows/package-tests.yml/badge.svg?branch=main' alt='Package Tests' /\u003e\n  \u003c/a\u003e\n  \u003ca href='https://cubeofrubik.readthedocs.io/en/latest/?badge=latest'\u003e\n    \u003cimg src='https://readthedocs.org/projects/cubeofrubik/badge/?version=latest' alt='Documentation Status' /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\nA Rubik's cube model and solver.\n\n### Installation\n    \n```bash\npip install cubeofrubik\n```\n\n### Documentation\nFind complete documentation on: [cubeofrubik.rtfd.io](https://cubeofrubik.rtfd.io/).\n\n### Usage:\n\n```python\n\u003e\u003e\u003e from cubeofrubik import RubiksCube\n\n\u003e\u003e\u003e cube = RubiksCube()\n\n\u003e\u003e\u003e cube.draw()\n⬛ ⬛ ⬛ ⬜ ⬜ ⬜ ⬛ ⬛ ⬛ ⬛ ⬛ ⬛ \n⬛ ⬛ ⬛ ⬜ ⬜ ⬜ ⬛ ⬛ ⬛ ⬛ ⬛ ⬛ \n⬛ ⬛ ⬛ ⬜ ⬜ ⬜ ⬛ ⬛ ⬛ ⬛ ⬛ ⬛ \n🟧 🟧 🟧 🟩 🟩 🟩 🟥 🟥 🟥 🟦 🟦 🟦\n🟧 🟧 🟧 🟩 🟩 🟩 🟥 🟥 🟥 🟦 🟦 🟦\n🟧 🟧 🟧 🟩 🟩 🟩 🟥 🟥 🟥 🟦 🟦 🟦\n⬛ ⬛ ⬛ 🟨 🟨 🟨 ⬛ ⬛ ⬛ ⬛ ⬛ ⬛ \n⬛ ⬛ ⬛ 🟨 🟨 🟨 ⬛ ⬛ ⬛ ⬛ ⬛ ⬛ \n⬛ ⬛ ⬛ 🟨 🟨 🟨 ⬛ ⬛ ⬛ ⬛ ⬛ ⬛ \n\u003e\u003e\u003e cube.scramble()\n'B′DU′F′DB2FRDBF2URBDB2U′D′L2D'\n\n\u003e\u003e\u003e cube.draw()\n⬛ ⬛ ⬛ 🟧 🟦 🟦 ⬛ ⬛ ⬛ ⬛ ⬛ ⬛ \n⬛ ⬛ ⬛ ⬜ ⬜ 🟩 ⬛ ⬛ ⬛ ⬛ ⬛ ⬛ \n⬛ ⬛ ⬛ 🟦 🟨 ⬜ ⬛ ⬛ ⬛ ⬛ ⬛ ⬛ \n🟩 🟥 🟨 🟧 🟥 🟩 🟥 🟥 ⬜ 🟥 🟥 🟨\n🟩 🟧 ⬜ 🟦 🟩 🟨 🟧 🟥 🟧 🟦 🟦 🟧\n🟧 🟩 🟨 🟩 🟦 🟨 🟥 🟧 ⬜ 🟧 🟩 🟩\n⬛ ⬛ ⬛ 🟥 🟨 🟦 ⬛ ⬛ ⬛ ⬛ ⬛ ⬛ \n⬛ ⬛ ⬛ 🟨 🟨 ⬜ ⬛ ⬛ ⬛ ⬛ ⬛ ⬛ \n⬛ ⬛ ⬛ ⬜ ⬜ 🟦 ⬛ ⬛ ⬛ ⬛ ⬛ ⬛ \n\n\u003e\u003e\u003e cube.solve()\n'RB′UR′UB′R2U2R2L2B′U′L2D′L2F2DL2UD′L2'\n\n\u003e\u003e\u003e cube.draw()\n⬛ ⬛ ⬛ ⬜ ⬜ ⬜ ⬛ ⬛ ⬛ ⬛ ⬛ ⬛ \n⬛ ⬛ ⬛ ⬜ ⬜ ⬜ ⬛ ⬛ ⬛ ⬛ ⬛ ⬛ \n⬛ ⬛ ⬛ ⬜ ⬜ ⬜ ⬛ ⬛ ⬛ ⬛ ⬛ ⬛ \n🟧 🟧 🟧 🟩 🟩 🟩 🟥 🟥 🟥 🟦 🟦 🟦\n🟧 🟧 🟧 🟩 🟩 🟩 🟥 🟥 🟥 🟦 🟦 🟦\n🟧 🟧 🟧 🟩 🟩 🟩 🟥 🟥 🟥 🟦 🟦 🟦\n⬛ ⬛ ⬛ 🟨 🟨 🟨 ⬛ ⬛ ⬛ ⬛ ⬛ ⬛ \n⬛ ⬛ ⬛ 🟨 🟨 🟨 ⬛ ⬛ ⬛ ⬛ ⬛ ⬛ \n⬛ ⬛ ⬛ 🟨 🟨 🟨 ⬛ ⬛ ⬛ ⬛ ⬛ ⬛ \n\n\u003e\u003e\u003e cube.move(\"RUR′U′\")\n\u003e\u003e\u003e cube.draw()\n⬛ ⬛ ⬛ ⬜ ⬜ 🟧 ⬛ ⬛ ⬛ ⬛ ⬛ ⬛ \n⬛ ⬛ ⬛ ⬜ ⬜ 🟩 ⬛ ⬛ ⬛ ⬛ ⬛ ⬛ \n⬛ ⬛ ⬛ ⬜ ⬜ 🟩 ⬛ ⬛ ⬛ ⬛ ⬛ ⬛ \n🟦 🟧 🟧 🟩 🟩 🟨 🟥 🟥 ⬜ 🟦 🟥 🟥\n🟧 🟧 🟧 🟩 🟩 ⬜ 🟦 🟥 🟥 🟦 🟦 🟦\n🟧 🟧 🟧 🟩 🟩 🟩 ⬜ 🟥 🟥 🟦 🟦 🟦\n⬛ ⬛ ⬛ 🟨 🟨 🟥 ⬛ ⬛ ⬛ ⬛ ⬛ ⬛ \n⬛ ⬛ ⬛ 🟨 🟨 🟨 ⬛ ⬛ ⬛ ⬛ ⬛ ⬛ \n⬛ ⬛ ⬛ 🟨 🟨 🟨 ⬛ ⬛ ⬛ ⬛ ⬛ ⬛ \n\n\u003e\u003e\u003e cube.is_solvable()\nTrue\n\n\u003e\u003e\u003e cube.is_solved()\nFalse\n\n\u003e\u003e\u003e cube.get_color('F')\n'G'\n\n\u003e\u003e\u003e cube.find_position('G', 'Y', 'R')\n'UFR'\n\n\u003e\u003e\u003e cube.get_size()\n3\n\n\u003e\u003e\u003e cube.set_color('01', 'R')\n\u003e\u003e\u003e cube.draw()\n⬛ ⬛ ⬛ ⬜ ⬜ 🟧 ⬛ ⬛ ⬛ ⬛ ⬛ ⬛ \n⬛ ⬛ ⬛ ⬜ ⬜ 🟩 ⬛ ⬛ ⬛ ⬛ ⬛ ⬛ \n⬛ ⬛ ⬛ ⬜ ⬜ 🟩 ⬛ ⬛ ⬛ ⬛ ⬛ ⬛ \n🟦 🟧 🟧 🟥 🟩 🟨 🟥 🟥 ⬜ 🟦 🟥 🟥\n🟧 🟧 🟧 🟩 🟩 ⬜ 🟦 🟥 🟥 🟦 🟦 🟦\n🟧 🟧 🟧 🟩 🟩 🟩 ⬜ 🟥 🟥 🟦 🟦 🟦\n⬛ ⬛ ⬛ 🟨 🟨 🟥 ⬛ ⬛ ⬛ ⬛ ⬛ ⬛ \n⬛ ⬛ ⬛ 🟨 🟨 🟨 ⬛ ⬛ ⬛ ⬛ ⬛ ⬛ \n⬛ ⬛ ⬛ 🟨 🟨 🟨 ⬛ ⬛ ⬛ ⬛ ⬛ ⬛ \n\n\u003e\u003e\u003e cube.is_solvable()\nFalse\n```\n\n### License\n\nThis cubeofrubik is available under the MIT license. Read the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblevic%2Fcubeofrubik","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblevic%2Fcubeofrubik","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblevic%2Fcubeofrubik/lists"}