https://github.com/robiningelbrecht/puzzle-generator
Generate Full 3D pictures of a Rubiks cube
https://github.com/robiningelbrecht/puzzle-generator
php rubiks-cube
Last synced: 8 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 3 years ago)
- Default Branch: master
- Last Pushed: 2023-03-14T18:18:00.000Z (about 3 years ago)
- Last Synced: 2025-04-15T07:11:30.786Z (about 1 year ago)
- Topics: php, rubiks-cube
- Language: HTML
- Homepage: https://puzzle-generator.robiningelbrecht.be
- Size: 797 KB
- Stars: 7
- 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
```

### Scrambled
```
https://puzzle-generator.robiningelbrecht.be/cube?cube[algorithm]=M2 E2 S2
```

## Development
Feel free to fork and make changes to your needs. Consider giving it a ⭐ when you do.
Clone repository
```bash
> git clone git@github.com: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`