Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/robiningelbrecht/puzzle-generator
Generate Full 3D pictures of a Rubiks cube
https://github.com/robiningelbrecht/puzzle-generator
php rubiks-cube website
Last synced: 2 months ago
JSON representation
Generate Full 3D pictures of a Rubiks cube
- Host: GitHub
- URL: https://github.com/robiningelbrecht/puzzle-generator
- Owner: robiningelbrecht
- License: mit
- Created: 2022-10-21T17:04:27.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-03-14T18:18:00.000Z (almost 2 years ago)
- Last Synced: 2024-04-19T07:41:58.643Z (9 months ago)
- Topics: php, rubiks-cube, website
- Language: HTML
- Homepage: https://puzzle-generator.robiningelbrecht.be
- Size: 797 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Puzzle generator
---
This is a PHP library intended to render Rubik's cube puzzles as SVG images.
The idea is to do this by navigating to `https://puzzle-generator.robiningelbrecht.be/cube`
and provide query parameters to configure the desired cube.It's heavily inspired by visualcube
and PuzzleGen. Thanks to `tdecker91`
for providing these!## Documentation
The full documentation is available on
[https://puzzle-generator.robiningelbrecht.be](https://puzzle-generator.robiningelbrecht.be)## Some examples
### Default
```
https://puzzle-generator.robiningelbrecht.be/cube
```![default](https://puzzle-generator.robiningelbrecht.be/cube)
### Scrambled
```
https://puzzle-generator.robiningelbrecht.be/cube?cube[algorithm]=M2 E2 S2
```![scrambled](https://puzzle-generator.robiningelbrecht.be/cube?cube[algorithm]=M2%20E2%20S2)
## Development
Feel free to fork and make changes to your needs. Consider giving it a ⭐ when you do.
Clone repository
```bash
> git clone [email protected]:robiningelbrecht/puzzle-generator.git
```Build Docker containers
```bash
> docker-compose up --build -d
```Install dependencies
```bash
> docker-compose run --rm php-cli composer install
```Navigate to `http://localhost:9090`