Skip to content

Commit f8cfb22

Browse files
committed
MINDCUB3R
1 parent 4b755b5 commit f8cfb22

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

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