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

Implements minor readability changes. #260

Merged
merged 11 commits into from
Dec 1, 2023
Merged

Conversation

tonypr
Copy link
Collaborator

@tonypr tonypr commented Nov 4, 2023

Small PR to do two things:

  • Simplify some of the connected components logic in build_road.
  • nitpick change: Rename bfs to dfs. Since it visits nodes in LIFO order. They have the same performance in this case I think so no need to change any actual code.

Tested with:
coverage run --source=catanatron -m pytest tests/

Copy link

netlify bot commented Nov 4, 2023

👷 Deploy request for catanatron-staging pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 9aa9025

@tonypr tonypr requested a review from bcollazo November 4, 2023 02:39
@bcollazo
Copy link
Owner

bcollazo commented Dec 1, 2023

Looks good, can you update with master?

@coveralls
Copy link

coveralls commented Dec 1, 2023

Pull Request Test Coverage Report for Build 7066438141

  • 38 of 39 (97.44%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 95.871%

Changes Missing Coverage Covered Lines Changed/Added Lines %
catanatron_core/catanatron/models/board.py 26 27 96.3%
Totals Coverage Status
Change from base Build 7065168001: 0.0%
Covered Lines: 1370
Relevant Lines: 1429

💛 - Coveralls

@tonypr tonypr force-pushed the minor_changes_2 branch 2 times, most recently from e80b305 to 3121091 Compare December 1, 2023 23:46
@tonypr
Copy link
Collaborator Author

tonypr commented Dec 1, 2023

Great! Looks like that worked!

@tonypr tonypr merged commit 07c1ee2 into bcollazo:master Dec 1, 2023
11 checks passed
@tonypr tonypr deleted the minor_changes_2 branch December 2, 2023 00:43
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

Successfully merging this pull request may close these issues.

None yet

3 participants