🚀
Posts tagged with :rocket:
Vec<[char; 4]>, toyed with the idea of a Vec<String>, before deciding to go back to a simple String and only split it into lines when rendering the output. A challenge came from trying to work out how the LMC simulator decides when to insert a line break: numbers on their own are always on their own line, but numbers with some letters after them all end up on the same line... but if I just print a 1 and a Space a bunch of times, there's a new line in between each iteration...
I'm still trying to wrap my head around the logic for those line breaks, so I haven't finished "fixing" my output-printing code, but the work-in progress commit is on GitHub.





























































