I learned to program in the 90's (as a hobby) and later in university I studied computer science, down to processor architecture and how compilers behave in different architectures. Much of that knowledge is useless today, except if you're _writing_ a compiler. Most of the tricks and best practices I studied back then don't even apply anymore because the compilers optimize so much.
I wouldn't know. In my engine, I just type "go", and it finds a move for me. SomewhereIf you want to find something in a list in Rust, wouldn't Iterator::find be the way?![]()
Without kidding: at some point, I'll have to go through the code and "un-C" it a bit. I wish I could use enums more, to differentiate between pieces and squares, but enums vs. ints and converting between them is a hairy and somewhat cumbersome topic in Rust. (Obviously, because in Rust, an enum isn't an int, so they don't mix like they do in C.)