Commit Graph

6 Commits

Author SHA1 Message Date
d8c0a21985 extract velocity function
note we have to pass a reference to "facing" not the
tuple itself, otherwise it owns it and we get
"value used here after move"
2023-10-31 23:32:20 +00:00
2b65145621 add S W E 2023-10-31 23:27:07 +00:00
5a148a2688 destructure rover in function param list 2023-10-31 23:17:36 +00:00
9348808ea9 don't hardcode return value in forward() 2023-10-31 23:14:54 +00:00
71d9c799b6 rover moves forward northward when pointing north 2023-10-31 22:51:32 +00:00
a4a80f450a "cargo new" and write a failing test 2023-10-31 22:10:48 +00:00