blob: 28ca3e332a9297159d009031550a357e0f24b3f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
h1. Rubiks
A Rubiks cube library (rubiks/cube) and TUI (rubiks) written in Go.
h2. Why?
Because. Bored.
h2. Coordinates
Okay, this bit is weird because I was hacking it as I went. (0,0,0) is the right front top cubelet.
- X-axis := Right to left
- Y-axis := Front to back
- Z-axis := Top to bottom
h2. Display
@func (cube) String() string@ displays the cube in the form:
pre.. UUU
UUU
UUU
LLL FFF RRR BBB
LLL FFF RRR BBB
LLL FFF RRR BBB
DDD
DDD
DDD
p. Note that this is the net of the cube, and so the rear face is mirrored right-to-left, as it has been unfolded around from the back.
|