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

Aco agent multi map movement #184

Merged
merged 48 commits into from
Mar 11, 2022
Merged

Aco agent multi map movement #184

merged 48 commits into from
Mar 11, 2022

Conversation

trav-d13
Copy link
Collaborator

@trav-d13 trav-d13 commented Mar 9, 2022

Working and checked. Two bug fixes completed

# 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
Copy link
Owner

@S010MON S010MON left a 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

S010MON
S010MON previously approved these changes Mar 10, 2022
@S010MON S010MON requested a review from MatthewFoster02 March 10, 2022 11:54
@S010MON
Copy link
Owner

S010MON commented Mar 11, 2022

Dude ... two people reviewed this request and you just left it, now it's out of date with conflicts. Not cool

@S010MON S010MON dismissed stale reviews from MatthewFoster02 and themself via 19fe112 March 11, 2022 20:35
@S010MON S010MON merged commit 5078e65 into master Mar 11, 2022
@S010MON S010MON deleted the AcoAgentMultiMapMovement branch March 11, 2022 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants