I'm writing a command line tic-tac-toe game as I try to learn Rust! It seems to work OK as of this writing, but wow, this was hard
To check for a winner, I'm using a second array called sums
that adds up each of the possible wins in the game of tic-tac-toe. (Fun fact: I used this idea (and drew the sketch below) back in 2013 as part of my admission test to The Flatiron School.)
Woof, just writing Rust that compiles is hard.
Here is a long blog post I wrote about making this little game
- Rust homepage and Official Rust blog
- The Book (2nd edition) -- 2nd edition of Rust's official documentation. In hindsight, I really should have gone through it more slowly before attempting to make this tic-tac-toe game.
- Rust 101 Linux talk video by E. Dunham -- This was a great video for learning about the language and community.
- rustlings -- Helpful little games!
- Rust playgorund -- Allows you to run Rust in a browser-- ironically, it worked better in Chrome than Firefox 57 for me
- Rust by Example -- Seems like some unofficial documentation, so I was a little reluctant. But to be frank there isn't much documentation out there, so I took what I could find.
- Intro to Rust video -- Another video, focusing more on Rust's concept of ownership.
- #rust-beginners IRC channel -- At one point I was so stuck I made a share-able playground link and hopped into the #rust-beginners IRC channel. Even though there were only a few people active on a Friday morning, I got insanely concise help I needed.
-
Derek Banas video was also helpful