{"id":13733270,"url":"https://github.com/stanleydesu/cubedesu","last_synced_at":"2025-05-08T09:31:55.150Z","repository":{"id":45739189,"uuid":"410842744","full_name":"stanleydesu/cubedesu","owner":"stanleydesu","description":"Rubik's Cube simulator in Rust.","archived":false,"fork":false,"pushed_at":"2023-04-29T03:37:39.000Z","size":5890,"stargazers_count":17,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-01T09:16:53.776Z","etag":null,"topics":["3d-graphics","proptest","rubiks-cube","rubiks-cube-simulator","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/stanleydesu.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}},"created_at":"2021-09-27T10:40:31.000Z","updated_at":"2024-01-29T09:40:16.000Z","dependencies_parsed_at":"2024-01-06T09:58:21.858Z","dependency_job_id":"5b6ed42f-522a-4021-845c-fcc5afe28ffe","html_url":"https://github.com/stanleydesu/cubedesu","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stanleydesu%2Fcubedesu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stanleydesu%2Fcubedesu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stanleydesu%2Fcubedesu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stanleydesu%2Fcubedesu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stanleydesu","download_url":"https://codeload.github.com/stanleydesu/cubedesu/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253036547,"owners_count":21844230,"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":["3d-graphics","proptest","rubiks-cube","rubiks-cube-simulator","rust"],"created_at":"2024-08-03T03:00:40.342Z","updated_at":"2025-05-08T09:31:54.072Z","avatar_url":"https://github.com/stanleydesu.png","language":"Rust","funding_links":[],"categories":["Games"],"sub_categories":["Games: On top of macroquad"],"readme":"# cubedesu\n\nRubik's Cube simulator written in Rust\n\n## Features\n- Simulation of an arbitrarily sized NxNxN Rubik's Cube, allowing moves with [keyboard input](./keymap.png)\n\n![Cube](./cubedesu.gif)\n\n\n## Usage\n\nBuild the project (optionally in release mode):\n```sh\n$ cargo build [--release]\n```\n\nRun the project:\n```sh\n$ cargo run\n```\n\nOr use the web version: https://stanleydesu.github.io/cubedesu/\n\nRefer to [keymap](./keymap.png) for controls\n\n## Project Structure\n- ``src/lib``: Cube related types, such as a Face, Move, Turn, Movement (a Move associated with a Turn)\n- ``src/geometry_model``: Geometric implementation of a cube, represented with an array of all the cube's stickers (3-dimensional points) and moves as rotations amongst some axis\n- ``src/facelet_model``: Facelet implementation of a cube, represented as an array of stickers, ordered by U, R, F, D, L, then B face\n- ``src/vec3``: Custom memory-efficient 3D vector implementation designed specifically for the geometry model\n\n## Dependencies\n- Thanks to [macroquad](https://crates.io/crates/macroquad), brilliant and simple API that helped with easily rendering a cube\n- Thanks to [strum](https://crates.io/crates/strum), facilitated parsing of strings into Moves and Turns as well as enum iteration and serialization\n- Thanks to [proptest](https://crates.io/crates/proptest), great for property-based testing\n\n## Resources Used\n- [Onionhoney's extremely well written article on modelling Rubik's Cubes](https://observablehq.com/@onionhoney/how-to-model-a-rubiks-cube)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstanleydesu%2Fcubedesu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstanleydesu%2Fcubedesu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstanleydesu%2Fcubedesu/lists"}