CubeAI icon indicating copy to clipboard operation
CubeAI copied to clipboard

If size of cube >2 ??

Open Hanish-B opened this issue 1 year ago • 0 comments

For the 3x3x3 cube, GUI is rendering, but there is no solution(steps) for it! Scramble moves and hash is working fine but after enter it is giving error as below: Traceback (most recent call last): File "C:\Users\hanis\CubeAI\main.py", line 101, in ai(args.a, args.n, args.s, heuristic) File "C:\Users\hanis\CubeAI\main.py", line 63, in ai path = ai.solve() File "C:\Users\hanis\CubeAI\AIs.py", line 264, in solve bound = self.heuristic(self.cube) File "C:\Users\hanis\CubeAI\Heuristic.py", line 52, in manhattanDistance return myHeuristic.scoreCube(cube) File "C:\Users\hanis\CubeAI\Heuristic.py", line 65, in scoreCube score = score + myHeuristic.scorePiece(cube, i) TypeError: unsupported operand type(s) for +: 'int' and 'NoneType'

Does your code limited to 222 cube??

Hanish-B avatar Apr 23 '23 21:04 Hanish-B