learn-rust-by-comparison
learn-rust-by-comparison copied to clipboard
Perfect Tic-Tac-Toe Player
http://github.com/BartMassey/ttt-bench has implementations of a perfect Tic-Tac-Toe player in a bunch of languages, including Rust. You're welcome to it. Because the code is being used as a benchmark the implementations were written to be comparable rather than idiomatic.
There's also http://github.com/BartMassey/popcount which contains popcount implementations in C and Rust, and http://github.com/BartMassey/ciphersaber which contains ciphersaber implementations in Rust, C and Haskell. This last is much more tutorial than the other two.
Many thanks! I'll check them soon and add to the project.
There's also http://github.com/BartMassey/borda-count, which contains C and Rust versions of Borda Count along with 12 different Haskell versions and 2 Prolog versions. The Rust version is twice as fast as the C version for some reason.