muodov / kociemba

A pure Python and pure C ports of Kociemba's algorithm for solving Rubik's cube
GNU General Public License v2.0
561 stars 126 forks source link

Code cleanup #17

Open muodov opened 8 years ago

muodov commented 8 years ago

Since kociemba initially was a direct translation from java, the code inherited some awkward places in design. For example, in some places python list elements are iterated by index. Also, decomposition might be improved.

These need to be fixed to keep the project healthy.

ansiwen commented 8 years ago

Also the C api doesn't look very consistent... I personally would prefer a C++ library anyways, with an python wrapper around it. I guess in the midterm keeping two libraries in sync will not be feasible.

muodov commented 8 years ago

Yep, I agree, C implementation definitely needs some care, at the moment it is more like a working PoC than a proper library. And C implementation is surely more important since solving the cube is performance-bound. Pure Python version might be deprecated in future, but it is working now and there are some cases when it is handy.