Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Rust Lang Course 2021 - Guessing Game

Jeremy Chone via YouTube

Overview

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

Reviews

Start your review of Rust Lang Course 2021 - Guessing Game

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.