cs0x7f / cube555 Goto Github PK
View Code? Open in Web Editor NEW5x5x5 solver
License: GNU General Public License v3.0
5x5x5 solver
License: GNU General Public License v3.0
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
When using your solver from the command line, it prints...
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.