-
Notifications
You must be signed in to change notification settings - Fork 1
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
Aco agent multi map movement #184
Conversation
…er for binary search to work. "
…oint binary search"
# Conflicts: # src/main/java/app/controller/GameEngine.java # src/main/java/app/model/Map.java # src/main/java/app/model/boundary/InvisibleBoundary.java # src/main/java/app/view/Frame.java
…ing less than 360 rays"
…ng in non-legal move"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm getting a consistent error:
Cardinal Point not found
Cardinal Point not found
Exception in thread "JavaFX Application Thread" java.lang.NullPointerException: Cannot invoke "app.controller.graphicsEngine.Ray.rayLength()" because "cardinalRays[i]" is null
at app@1.0-SNAPSHOT/app.model.agents.ACO.AcoAgent.determineAvailableMovements(AcoAgent.java:172)
at app@1.0-SNAPSHOT/app.model.agents.ACO.AcoAgent.determineMovesAllScenarios(AcoAgent.java:88)
at app@1.0-SNAPSHOT/app.model.agents.ACO.AcoAgent.move(AcoAgent.java:55)
at app@1.0-SNAPSHOT/app.controller.GameEngine.tick(GameEngine.java:42)
It seems that the addition of throwing an exception has exposed a problem that was handled with print statements.
Consider a runtime error instead?
throw new RuntimeException("Cardinal Point not found");
Up to you to advise if this is a serious error or trivial and should be returned to a System.out.println
for Info logging
…gentMultiMapMovement # Conflicts: # src/main/java/app/model/Map.java
Added boundaries
Dude ... two people reviewed this request and you just left it, now it's out of date with conflicts. Not cool |
# Conflicts: # src/main/java/app/controller/graphicsEngine/RayTracing.java # src/main/java/app/model/Map.java
Working and checked. Two bug fixes completed