Git Product home page Git Product logo

cube555's People

Contributors

cs0x7f avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

siyaofa orsooo

cube555's Issues

Console printout of reduced 3x3 stage seems wrong

When using your solver from the command line, it prints...

  1. the scrambled 5x5 state
  2. the reduction moves
  3. the reduced three by three state.

At least I think it's supposed to be the reduced 3x3 state based on the fact that all centers and wings are always paired. However, there seems to be a bug with printing because after executing the reduction moves, my real 5x5 does not match the reduced 3x3 state printed out by your program. Most notably, the reduced 5x5 that gets printed "always" (sample of N=20 random states) has all corners solved.

It seems to affect the printing only. The internal String representation itself is fine, because passing that internal state to min2phase produces a correct solution that will indeed solve the physical 5x5 I'm using to verify the solution.

Is this an actual issue or is the second 5x5 printout supposed to be something other than the reduced 3x3 state?

Null pointer exception while testing

I ran into a null pointer exception while making a unit test , every time this happening attached statckstrace and facecube

java.lang.NullPointerException
at cs.fourphase.CubieCube.doConj(CubieCube.java:451)
at cs.fourphase.SolvingCube.doConj(SolvingCube.java:45)
at cs.fourphase.Search.solveReduction(Search.java:96)
at com.aseemsalim.rubikscube.PuzzleImageSolveTest.fiveByFiveCubeTest(PuzzleImageSolveTest.kt:216)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at org.junit.runners.ParentRunner.run(ParentRunner.java:413)

        U B F U D
        R L D R B
        B D U U F
        U F R R D
        F R R U R

R D U F L D U B B B U R D R L B L R D F
U U R D R B U D L B L D L R F R F B B F
U R L F R D L F L L B B R D U L F B F R
B D L F F R B B U U R L U L D L B R F U
B B B D D R L F F L U D L D D F L L L L
B U U L F
F R B D F
D F D U D
L B U U B
U F F D R

Facelet = RLUBDLRLBFFUUFDRBBFBRLRDLUDBURBDUBDBDRLRBUFDFLLFFLFBDRFBLRDUURFBULBLFUURRBUBFUDBRUULFFFDDDLFRLDLFLRBBURUURLDFLLBLLFDRFDDDULURFRLFDFUUUBBDBBBRRRRLDDDUF

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.