Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If size of cube >2 ?? #1

Open
Hanish-B opened this issue Apr 23, 2023 · 0 comments
Open

If size of cube >2 ?? #1

Hanish-B opened this issue Apr 23, 2023 · 0 comments

Comments

@Hanish-B
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant