Closed krry closed 5 years ago
Hey! Thanks for finding this. For some reason I never got notified of your issues/prs and I'm only just seeing this. I'll try to make some time this weekend to address all your points / merge updates.
Oh hai :) I've been using this library daily for about a month now. Really great, thanks again.
You should know that I'm super green when it comes to Rust. Did my best not to break things. And I'm not certain about how the lines are being ordered, but I've been testing the results against my paper method for a few weeks now, and with these pull requests it yields the same results consistently.
After submitting the PR today about the line order for self-cast readings, I realized that there might be other unsolved mysteries related to line numbers.
Looking closely at the readouts for changing line numbers, I notice that the line number indexes must be off. They seem to be counted from the top, and are also shifted one less than they ought to be, as though the
<Vec>
assembled atsrc/hexagram.rs:89
is zero indexed.I've tried to fix it by adding a call to
.rev()
after the iterator,and then incrementing the line number by one at
src/bin/main.rs:170
but it's not quite there. I'm missing something.
Edit: typo