GithubHelp home page GithubHelp logo

trincaog / magiccube Goto Github PK

View Code? Open in Web Editor NEW
10.0 1.0 5.0 126 KB

A fast implementation of the Rubik Cube based in Python 3.x.

License: BSD 3-Clause "New" or "Revised" License

Python 99.95% Shell 0.05%
cube nxnxn rubik solver 3x3x3 4x4x4 rubik-cube-solver 5x5x5 6x6x6

magiccube's People

Contributors

juliankarlbauer avatar santongding avatar trincaog avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

magiccube's Issues

Can't import BasicSolver

When I try to import BasicSolver with from magiccube.solver.basic.basic_solver import BasicSolver I get an error:

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Cell In[13], line 1
----> 1 from magiccube.solver.basic.basic_solver import BasicSolver
      3 solver = BasicSolver(cube)
      4 solver.solve()

ModuleNotFoundError: No module named 'magiccube.solver'

'BasicSolver' problem

(python 3.11 environment):
import magiccube

3x3x3 Cube

cube0 = magiccube.Cube(3,"YYYYYYYYYRRRRRRRRRGGGGGGGGGOOOOOOOOOBBBBBBBBBWWWWWWWWW")
print(cube0)

Rotate the cube

cube0.rotate("R' L U D' F B' R' L")

Solve the 3x3x3 cube

solver = BasicSolver(cube0)
solver.solve()

BUG is :

NameError Traceback (most recent call last)
Cell In[42], line 12
9 cube0.rotate("R' L U D' F B' R' L")
11 # Solve the 3x3x3 cube
---> 12 solver = BasicSolver(cube0)
13 solver.solve()
15 # 6x6x6 Cube

NameError: name 'BasicSolver' is not defined

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.