Homework: the guessing game

  Рет қаралды 306

Code for yourself

Code for yourself

Күн бұрын

This is another homework to make sure you're actually learning what you're watching 😉
Here, we implement a "guessing game" (the idea is shamelessly stolen from Rust tutorial some years ago). The game is simple - the program generates a number and we try to guess it with as few tries as possible. It sounds simple, but it does check a bunch of things!
📚 Homework task: github.com/cpp-for-yourself/s...
*Related videos*
- Control structures: • Control structures in C++
- Random numbers: • Generating random numb...
Please support my free work 😉🙏
- Through Patreon: / code_for_yourself
- Through GitHub Sponsors: github.com/sponsors/niosus
Get a FREE Audible trial here
- US: www.audibletrial.com/CodeForY...
- DE: www.amazon.de/hz/audible/mlp?...
Stuff I'm using to prepare this course
- Keyboard I'm using: Logitech MX Keys: amzn.to/3SbOhg8
- Mouse I'm using: Logitech MX Vertical: amzn.to/3qVYYI4
- My monitor: Dell P2720DC: amzn.to/3Bthv3A
- My camera: Sony a6400: amzn.to/3duP39x
- Microphone: Rode Wireless GO II: amzn.to/3QUH2sc
Contents:
00:00 - Intro
00:09 - The guessing game
00:28 - What hides within
01:11 - Outro

Пікірлер: 5
@chrislee1299
@chrislee1299 Жыл бұрын
Great homework which really consolidates what we've learned so far. Thank you! Just a little note: Your output may look the same as what the homework bot expects to see, but if you don't still get the green checks, check with white spaces!
@CodeForYourself
@CodeForYourself Жыл бұрын
That's a good point! I'll try to push a change to the homework bot over the weekend, so that a colored diff is generated to showcase what is different between the expected and the provided output.
@chrislee1299
@chrislee1299 Жыл бұрын
Awesome! Thank you.
@chas756
@chas756 Жыл бұрын
Nice :) I wonder who of my friends would like to start learning c++ 🤔 I like your course and wish it to grow faster :)
@CodeForYourself
@CodeForYourself Жыл бұрын
Thanks! I'm not too worried about the growth for now. I just want to get the whole course out there and we'll see how it goes from there 😉
Common compilation flags and debugging a C++ program
19:57
Code for yourself
Рет қаралды 1,4 М.
1000 subscribers AMA answers
20:37
Code for yourself
Рет қаралды 348
Пробую самое сладкое вещество во Вселенной
00:41
Каха ограбил банк
01:00
К-Media
Рет қаралды 11 МЛН
Happy 4th of July 😂
00:12
Pink Shirt Girl
Рет қаралды 23 МЛН
OMG🤪 #tiktok #shorts #potapova_blog
00:50
Potapova_blog
Рет қаралды 18 МЛН
Re-inventing move semantics in modern C++ in 13 minutes
13:20
Code for yourself
Рет қаралды 6 М.
Don't use static (outside of classes) in modern C++
15:56
Code for yourself
Рет қаралды 4,9 М.
Fixing RAG with GraphRAG
15:04
Vivek Haldar
Рет қаралды 4,5 М.
Const correctness in C++
10:02
Code for yourself
Рет қаралды 2,7 М.
Templates under the hood
6:57
Code for yourself
Рет қаралды 1,1 М.
Use static in classes (when needed) in modern C++
16:34
Code for yourself
Рет қаралды 1,2 М.
Generative AI in a Nutshell - how to survive and thrive in the age of AI
17:57
Пробую самое сладкое вещество во Вселенной
00:41