Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Learn to build a guessing game in Rust with this 28-minute video tutorial from the Rust Lang Course 2021 series. Explore essential Rust concepts including number types, modules, variable shadowing, loops, if/else statements, and the match keyword. Follow along as the instructor guides you through setting up the game, handling user input, parsing strings to numbers, implementing game logic, and generating random numbers. Gain practical experience with Rust's syntax and features while creating an interactive console application.
Syllabus
- Intro & Setup
- The Plan
- Variable Secret
- Number Types
- Mutability recap
- Ask the user
- First intro to module std::io
- Rust naming conventions
- Read user input io:stdin.read_line&mut guess
- Break & Understand
- Parse string to number
- Variable Shadowing
- If / Else - You Win, You Loose
- Loop
- Match
- Random with rand
- Run it all
- Conclusion and next episode
Taught by
Jeremy Chone