Skip to content

Commit d00dbf8

Browse files
authored
Merge pull request #173 from dwalton76/develop-MINDCUB3R
MINDCUB3R
2 parents ec6f27d + 15c2aa0 commit d00dbf8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+3257175
-23
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
__pycache__
22
*.pyc
33
*.swp
4+
*.log
45
dist
56
*.egg-info
67
RELEASE-VERSION

demo/MINDCUB3R/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
cache

demo/MINDCUB3R/README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
Installation
2+
===============
3+
cd ~/ev3dev-lang-python/demo/MINDCUB3R/kociemba/ckociemba/
4+
5+
# This can take a minute on an EV3
6+
sudo apt-get update
7+
sudo apt-get install build-essential
8+
make
9+
sudo make install
10+
11+
# The first time you run this it has to create a cache
12+
# directory, this takes about 30s on an EV3
13+
14+
cd ~/ev3dev-lang-python/demo/MINDCUB3R/
15+
kociemba DRLUUBFBRBLURRLRUBLRDDFDLFUFUFFDBRDUBRUFLLFDDBFLUBLRBD
16+
17+
18+
Running
19+
=======
20+
./rubiks.py
21+
22+
23+
Credit
24+
======
25+
Much of rubiks.py and rubiks_rgb_solver.py were ported from
26+
https://github.com/cavenel/ev3dev_examples
27+
28+
The kociemba code is from
29+
https://github.com/muodov/kociemba

demo/MINDCUB3R/__init__.py

Whitespace-only changes.

demo/MINDCUB3R/kociemba/__init__.py

Whitespace-only changes.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
bin
2+
cache
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
CKOCIEMBA_SRC = coordcube.c cubiecube.c facecube.c search.c
2+
CKOCIEMBA_INCLUDE = include
3+
CFLAGS = -std=c99 -O3 -D_XOPEN_SOURCE=700
4+
BINDIR = bin
5+
BIN = kociemba
6+
7+
all: solve.c $(CKOCIEMBA_SRC)
8+
mkdir -p $(BINDIR)
9+
gcc $(CFLAGS) $(CKOCIEMBA_SRC) -I$(CKOCIEMBA_INCLUDE) solve.c -o $(BINDIR)/$(BIN)
10+
11+
clean:
12+
rm -rf $(BINDIR)
13+
14+
install:
15+
cp bin/kociemba /usr/local/bin/

0 commit comments

Comments
 (0)