Live Online Classes in Design, Coding & AI — Small Classes, Free Retakes
Master Windows Internals - Kernel Programming, Debugging & Architecture
Overview
Google, IBM & Meta Certificates — All 10,000+ Courses at 40% Off
One annual plan covers every course and certificate on Coursera. 40% off for a limited time.
Get Full Access
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