11# MINDCUB3R
22
3- ### Installation
4- This can take several minutes on an EV3
3+ ## Installation
4+ ### Installing kociemba
5+ The kociemba program produces a sequence of moves used to solve
6+ a 3x3x3 rubiks cube.
57```
6- sudo apt-get install build-essential python3-pip libffi-dev
7- sudo pip3 install git+https://github.com/dwalton76/kociemba.git
8- sudo pip3 install git+https://github.com/dwalton76/rubiks-color-resolver.git
9- kociemba DRLUUBFBRBLURRLRUBLRDDFDLFUFUFFDBRDUBRUFLLFDDBFLUBLRBD
8+ $ sudo apt-get install build-essential libffi-dev
9+ $ cd ~/
10+ $ git clone https://github.com/dwalton76/kociemba.git
11+ $ cd ~/kociemba/kociemba/ckociemba/
12+ $ make
13+ $ sudo make install
1014```
1115
12- ### Running
13- ./rubiks.py
16+ ### Installing rubiks-color-resolver
17+ When the cube is scanned we get the RGB (red, green, blue) value for
18+ all 54 squares of a 3x3x3 cube. rubiks-color-resolver analyzes those RGB
19+ values to determine which of the six possible cube colors is the color for
20+ each square.
21+ ```
22+ $ sudo apt-get install python3-pip
23+ $ sudo pip3 install git+https://github.com/dwalton76/rubiks-color-resolver.git
24+ ```
25+
26+ ### Installing the MINDCUB3R demo
27+ We must git clone the ev3dev-lang-python repository. MINDCUB3R is included
28+ in the demo directory.
29+ ```
30+ $ cd ~/
31+ $ git clone https://github.com/rhempel/ev3dev-lang-python.git
32+ $ cd ~/ev3dev-lang-python/demo/MINDCUB3R/
33+ $ kociemba DRLUUBFBRBLURRLRUBLRDDFDLFUFUFFDBRDUBRUFLLFDDBFLUBLRBD
34+ ```
35+
36+ ## Running MINDCUB3R
37+ ```
38+ $ cd ~/ev3dev-lang-python/demo/MINDCUB3R/
39+ $ ./rubiks.py
40+ ```
1441
15- ### About kociemba
42+ ## About kociemba
1643You may have noticed that the
1744` kociemba DRLUUBFBRBLURRLRUBLRDDFDLFUFUFFDBRDUBRUFLLFDDBFLUBLRBD `
1845step of the install looks a little odd. The "DRLUU..." string is a
@@ -24,9 +51,9 @@ that color data and returns a sequence of moves that can be used to solve the
2451cube.
2552
2653```
27- robot@beaglebone[lego-crane-cuber]# kociemba DRLUUBFBRBLURRLRUBLRDDFDLFUFUFFDBRDUBRUFLLFDDBFLUBLRBD
54+ $ kociemba DRLUUBFBRBLURRLRUBLRDDFDLFUFUFFDBRDUBRUFLLFDDBFLUBLRBD
2855D2 R' D' F2 B D R2 D2 R' F2 D' F2 U' B2 L2 U2 D R2 U
29- robot@beaglebone[lego-crane-cuber]#
56+ $
3057```
3158
3259Running the kociemba program is part of the install process because the first
0 commit comments