Skip to content

Implement Rat in Maze Path Finder #730

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

Merged
merged 11 commits into from
Jun 16, 2024

Conversation

sozelfist
Copy link
Contributor

Description

See details in the implementation

Type of change

  • New feature (non-breaking change which adds functionality)

Checklist:

  • I ran bellow commands using the latest version of rust nightly.
  • I ran cargo clippy --all -- -D warnings just before my last commit and fixed any issue that was found.
  • I ran cargo fmt just before my last commit.
  • I ran cargo test just before my last commit and all tests passed.
  • I added my algorithm to the corresponding mod.rs file within its own folder, and in any parent folder(s).
  • I added my algorithm to DIRECTORY.md with the correct link.
  • I checked COUNTRIBUTING.md and my code follows its guidelines.

@sozelfist sozelfist requested review from imp2002 and vil02 as code owners June 1, 2024 02:41
@codecov-commenter
Copy link

codecov-commenter commented Jun 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.02%. Comparing base (1444e63) to head (1fb1a9e).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #730      +/-   ##
==========================================
+ Coverage   95.01%   95.02%   +0.01%     
==========================================
  Files         303      304       +1     
  Lines       22529    22599      +70     
==========================================
+ Hits        21405    21475      +70     
  Misses       1124     1124              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

- Remove bad comments
- Add some tests
@sozelfist sozelfist requested a review from vil02 June 15, 2024 07:50
@sozelfist sozelfist requested a review from vil02 June 15, 2024 11:47
@sozelfist sozelfist requested a review from vil02 June 15, 2024 14:35
- Add custom errors to handle various exception cases: empty maze,
  non-rectangle maze, start out of maze bound
- Add edge tests to handle various types of maze
- Add `maze_with_going_back` test
- Add explaination of why return this solution and not the other one when multiple path exist in maze
@sozelfist sozelfist requested a review from vil02 June 16, 2024 12:21
@vil02 vil02 merged commit 08ce80c into TheAlgorithms:master Jun 16, 2024
4 checks passed
@sozelfist sozelfist deleted the feat/backtracking/rat_in_maze branch June 16, 2024 12:44
@vil02 vil02 mentioned this pull request Jun 18, 2024
8 tasks
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.

3 participants