File tree 1 file changed +10
-10
lines changed
1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 1
1
PyCuber
2
2
====================
3
3
4
- PyCuber is a Rubik's Cube simulator in Python 2/3.
4
+ PyCuber is a Rubik's Cube package in Python 2/3
5
5
--------------------
6
6
7
7
The cube can be revealed as expanded view in the terminal,
@@ -20,24 +20,24 @@ mycube("R U R' U'")
20
20
print (mycube)
21
21
22
22
```
23
- ![ alt tag] ( https ://raw.github .com/adrianliaw/PyCuber/v0.1b/static/img/terminal .png)
23
+ ![ alt tag] ( http ://i.imgur .com/OI4kbn7 .png)
24
24
25
25
We also provided some useful tools to deal with Rubik's Cube algorithms.
26
26
27
27
``` python
28
28
29
29
import pycuber as pc
30
30
31
- # Create an Algo object
32
- myalg = pc.Algo (" R U R' U' R' F R2 U' R' U' R U R' F'" )
31
+ # Create a Formula object
32
+ my_formula = pc.Formula (" R U R' U' R' F R2 U' R' U' R U R' F'" )
33
33
34
- # Reversing an Algo
35
- myalg .reverse()
36
- print (myalg )
34
+ # Reversing a Formula
35
+ my_formula .reverse()
36
+ print (my_formula )
37
37
38
- # Mirroring an Algo object
39
- myalg .mirror(" LR" )
40
- print (myalg )
38
+ # Mirroring a Formula object
39
+ my_formula .mirror(" LR" )
40
+ print (my_formula )
41
41
42
42
```
43
43
```
You can’t perform that action at this time.
0 commit comments