Skip to content

If size of cube >2 ?? #1

@Hanish-B

Description

@Hanish-B

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??

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions