{"id":25694086,"url":"https://github.com/srvariable/rubikcube","last_synced_at":"2026-04-17T02:31:27.322Z","repository":{"id":213422898,"uuid":"733870652","full_name":"SrVariable/RubikCube","owner":"SrVariable","description":"Play with a Rubik Cube in your own terminal!","archived":false,"fork":false,"pushed_at":"2025-05-04T12:19:35.000Z","size":69,"stargazers_count":3,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-26T00:34:59.752Z","etag":null,"topics":["c","game","open-source","terminal"],"latest_commit_sha":null,"homepage":"","language":"C","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/SrVariable.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":"2023-12-20T10:15:38.000Z","updated_at":"2024-02-17T12:24:11.000Z","dependencies_parsed_at":"2023-12-23T11:57:20.541Z","dependency_job_id":"fdd7caa3-a929-45dd-9590-c04f8cf22e09","html_url":"https://github.com/SrVariable/RubikCube","commit_stats":null,"previous_names":["srvariable/rubikcube"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SrVariable/RubikCube","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SrVariable%2FRubikCube","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SrVariable%2FRubikCube/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SrVariable%2FRubikCube/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SrVariable%2FRubikCube/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SrVariable","download_url":"https://codeload.github.com/SrVariable/RubikCube/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SrVariable%2FRubikCube/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31912330,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"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":["c","game","open-source","terminal"],"created_at":"2025-02-24T23:50:08.955Z","updated_at":"2026-04-17T02:31:27.291Z","avatar_url":"https://github.com/SrVariable.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RubikCube\n\n## Table of Contents\n\u003e 1. [Description](#description)\n\u003e 2. [Requirements](#requirements)\n\u003e 3. [Usage](#usage)\n\u003e 4. [Movements](#movements)\n\u003e 5. [How to Play](#how-to-play)\n\n## Description\n\nTerminal Based Game of a [Rubik's Cube](https://en.wikipedia.org/wiki/Rubik%27s_Cube). Each face is represented with a colored square emoji.\n\nThe colors available are:\n\n- 🟧 Orange (Up face)\n- 🟨 Yellow (Front face)\n- 🟩 Green (Right face)\n- 🟥 Red (Down face)\n- 🟦 Blue (Left face)\n- 🟪 Purple (Back face)\n\n## Requirements\n\n- git\n- gcc\n- make\n\n## Usage\n\nClone the repository\n\n```Shell\ngit clone https://github.com/SrVariable/RubikCube.git\n```\n\nGo to the cloned repository\n\n```Shell\ncd RubikCube\n```\n\nExecute make\n\n```Shell\nmake\n```\n\nRun the program\n\n```Shell\n./rubik\n```\n\n## Movements\n\n![Uppercase movements](https://github.com/SrVariable/RubikCube/assets/96599624/a7102fc5-2354-4d95-9520-68ba14de396d)\n![Lowercase movements](https://github.com/SrVariable/RubikCube/assets/96599624/e6f0029b-6b55-4b9f-aad6-2477b301b7ff)\n\n### Uppercase\n\n- **B**: Rotate the B face 90º counterclockwise.\n- **F**: Rotate the F face 90º clockwise.\n- **L**: Rotate the L face 90º counterclockwise.\n- **R**: Rotate the R face 90º clockwise.\n- **U**: Rotate the U face 90º clockwise.\n- **D**: Rotate the D face 90º counterclockwise\n- **M**: Rotate the middle layer parallel to the R and L faces 90º counterclockwise.\n- **E**: Rotate the middle layer parallel to the U and D faces 90º counterclockwise.\n- **S**: Rotate the middle layer parallel to the F and B faces 90º clockwise.\n\n### Lowercase\n\n- **b**: Rotate the B face and the middle layer parallel to the F and B faces 90º counterclockwise.\n- **f**: Rotate the F face and the middle layer parallel to the F and B faces 90º clockwise.\n- **l**: Rotate the L face and middle layer parallel to the R and L faces 90º counterclockwise.\n- **r**: Rotate the R face and middle layer parallel to the R and L faces 90º clockwise.\n- **u**: Rotate the U face and middle layer parallel to the U and D faces face 90º clockwise.\n- **d**: Rotate the D face and middle layer parallel to the U and D faces face 90º counterclockwise\n- **x**: Rotate the cube in the X axis 90º clockwise.\n- **y**: Rotate the cube in the Y axis 90º clockwise.\n- **z**: Rotate the cube in the Z axis 90º clockwise.\n\n\u003e [!NOTE]\n\u003e Adding 2 after the letter will make the same movement twice. So B2 is the same as doing B B.\n\u003e \n\u003e Adding \\' after the letter will make the reverse movement. So B' is the same as doing B B B.\n\n\u003e _Reference: [Rubik's Cube Move Notations](https://www.rubiksplace.com/move-notations/)_\n\n## How to Play\n\nWhen you run the program it will display the original position of the cube and will ask you to introduce a movement (listed before). You can introduce more than one movement in a single turn. For example:\n\n\u003e **Introduce a movement: B2FL'R**\n\nThis will do B2, F, L', R.\n\n\u003e [!NOTE]\n\u003e\n\u003e If you introduce more than one movement in a single turn, it will directly display the cube with the respective movements applied.\n\n\u003e [!TIP]\n\u003e \n\u003e To undo a movement you have to type the opposite movement in reverse.\n\u003e\n\u003e So in order to undo B2FL'R you will have to type R'LF'B'B'.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrvariable%2Frubikcube","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsrvariable%2Frubikcube","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrvariable%2Frubikcube/lists"}