-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
cd force flag now calls visit to reset character when cd'ing to home #128
Conversation
Change the code a bit to make it more obvious (haven't tested it). Do you mind adding a test case that checks the character is healed when cd -f to home? |
I'll add the test but I think your change doesn't compile because
|
True, coding from the browser 😬 |
Looks like some whitespace made it fail the tests. I'll fix it later when I get a chance to write the test. |
thanks! |
Should be fixed now, I made sure to check the white space of the new test too. |
thanks! |
Glad I could help! It helped me learn rust so thanks for letting me contribute! |
This pull request resolves #123, by instead of hard coding the changing of the location in
change_dir()
, offloading this to thevisit()
method ingame.rs
.