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

AA006: Convert Coordinates in RoutePlanner to use std::pair #24

Open
Heckart opened this issue Mar 12, 2025 · 0 comments
Open

AA006: Convert Coordinates in RoutePlanner to use std::pair #24

Heckart opened this issue Mar 12, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@Heckart
Copy link
Collaborator

Heckart commented Mar 12, 2025

Assigned Dev: N/A

Description: Halfway through making the RoutePlanner class, I switched from using int row and int column to using a std::pair<int, int> to represent coordinates. Converting all coordinate pairs to std::pair instead of separate ints will allow us to consolidate some functions into one and massively clean up the code in many other functions.
Priority: Low
User Story: As a user, I don't know how this is relevant. Maybe I want the programmers to be able to more easily read their code.
Acceptance Criteria: In the RoutePlanner, whenever a coordinate pair is used as two separate integers, it is changed to a std::pair<int, int> similar to how it is done in isTurnValid(). Rerun unit tests to ensure you didn't break anything.

@Heckart Heckart added the enhancement New feature or request label Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant