learn-rust-by-comparison icon indicating copy to clipboard operation
learn-rust-by-comparison copied to clipboard

Perfect Tic-Tac-Toe Player

Open BartMassey opened this issue 6 years ago • 2 comments

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.

BartMassey avatar Aug 07 '18 10:08 BartMassey

Many thanks! I'll check them soon and add to the project.

mone27 avatar Aug 07 '18 12:08 mone27

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.

BartMassey avatar Aug 11 '18 15:08 BartMassey