https://github.com/synox/snake-cube-solver
https://github.com/synox/snake-cube-solver
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/synox/snake-cube-solver
- Owner: synox
- Created: 2021-10-17T09:42:21.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-17T16:50:36.000Z (over 4 years ago)
- Last Synced: 2025-02-15T20:30:54.770Z (over 1 year ago)
- Language: Java
- Size: 522 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Solver for the Snake Cube Puzzle


For the snake of the shape (`-` is straight, `.` is corner)
```
--...-..-...-.-....-.-.-.--
```
it prints two solutions.
The syntax is borrowed from https://www.jaapsch.net/puzzles/snakecube.htm.
> The solutions will also be given using the letters F, L, U, B, R, D standing for the six directions in space where the next cube might be, viz. Front, Left, Up, Back, Right, Down respectively.
```
winners:
Start: 0,0,0
F F R B U U R D D F U L L B B R D R U U L L F F R R R
Y\X Z0 Z1 Z2
↓→Z →zZ ↓←←
↓Z↓ ↑Zz ↓→z
→↑Z ↑←← →→→
Start: 0,0,0
F F U B R R U L L F R D D B B U L U R R D D F F U U U
Y\X Z0 Z1 Z2
↓Z↓ Z←z →→z
↓↑↓ →→Z ↓←←
Z↑Z ↑zZ →zZ
```
It also works with any other snake shape and cube size.
## See also
- https://www.jaapsch.net/puzzles/snakecube.htm