No video

Project: Coding a Wordle game in C

  Рет қаралды 1,675

dr Jonas Birch

dr Jonas Birch

Күн бұрын

This is a beginner-to-intermediate friendly project (almost no pointers!) and I think it will be interesting even for my most advanced viewers. We are building a game! First time, right? Second maybe. Anyhow, it's the Wordle game where you guess 5 letter words and get clues in the form of colors.
In this episode you will learn how to structure a gameloop, divide everything in small, effective functions, each with one stated purpose. You will also learn how a project might grow, become cumbersome and mess up your structure.
This is the first episode out of two. The 2nd will probably be released Saturday, or next week.
JB

Пікірлер: 25
@charleswilliams8368
@charleswilliams8368 Ай бұрын
This was a fun video to watch. Duplicate letters are the hardest part of coding Wordle. For example, if the correct word is candy and the guess is salad, the first 'a' will be green, of course, but the second has to be red, gray, or whatever is used to represent no match.
@dr-Jonas-Birch
@dr-Jonas-Birch Ай бұрын
You're right of course, Charles, I didnt think of that. Perhaps there will be an ep03 where I try to fix it. JB
@TrayvonJones952
@TrayvonJones952 Ай бұрын
Coming from a CS student pursuing a PHD, your a GODSEND brotha man. Your so fuckin good, and useful to watch it’s CRAZY you don’t have millions of followers
@dr-Jonas-Birch
@dr-Jonas-Birch Ай бұрын
Hehe in due time, my friend, in due time... :) Thank you so much for those kind words, I am glad you like my videos. Take care, JB
@yashkumarkasaudhan1354
@yashkumarkasaudhan1354 Ай бұрын
This project was good. I enjoyed making this game. since i was able to understand every single thing. here. Amazing video
@dr-Jonas-Birch
@dr-Jonas-Birch Ай бұрын
Thats great Yash, Im glad that you appreciate this new format. I will be doing more videos of this kind. Take care, JB
@khaledhessen-um8le
@khaledhessen-um8le Ай бұрын
Excellent work, keep it up prof.
@dr-Jonas-Birch
@dr-Jonas-Birch Ай бұрын
Thank you Khaled, Im glad you like it. Take care, JB
@gbucks5117
@gbucks5117 Ай бұрын
New learner here , its really helpful
@dr-Jonas-Birch
@dr-Jonas-Birch Ай бұрын
Welcome Buck to this channel, Im glad you like it. Take care, JB
@morhaham6609
@morhaham6609 Ай бұрын
No less than 5 characters in the words of the initial list file. Some of them just contain space ascii characters... You could regex just a-zA-Z.
@dr-Jonas-Birch
@dr-Jonas-Birch Ай бұрын
Yes Morhan, you are correct and I figured it out eventually. Maybe it was in ep02. Great minds think alike, right? :) Take care, JB
@its_code
@its_code Ай бұрын
❤❤😊
@dr-Jonas-Birch
@dr-Jonas-Birch Ай бұрын
hehe thank you itscode, take care
@Maximus98245
@Maximus98245 Ай бұрын
This is how C should be written and taught ! Another great video Dr Birch ! Just out of curiosity, what motivates you write and teach C code ? There is C++/Rust/Java out there but I do not think you care for those very much...
@dr-Jonas-Birch
@dr-Jonas-Birch Ай бұрын
Thank you Max, Im glad you like my work. And you're right, those languages (even though they are well-designed languages) do not speak to me the way C does. I like the unhindered access and power of low level languages. That being said, I do also appreciate functional code, such as Haskell, and even JS/Typescript when I need to do web. Take care, JB
@Maximus98245
@Maximus98245 Ай бұрын
@@dr-Jonas-Birch Fair enough ! Thank you for all your efforts !!!
@dr-Jonas-Birch
@dr-Jonas-Birch Ай бұрын
Cheers, JB
@hojaifaislamrafi6460
@hojaifaislamrafi6460 Ай бұрын
Thanks ❤
@dr-Jonas-Birch
@dr-Jonas-Birch Ай бұрын
You are very welcome Rafi, Im glad you like my stuff. Take care, JB
@Brad_Script
@Brad_Script Ай бұрын
in C you can do MyStruct myVar = {...} but you can't do MyStruct myVar; myVar = {...} You have to use what is called a "compound literal", which looks like you are casting the {...} MyStruct myVar; myVar = (MyStruct){...} I think this added in C99
@dr-Jonas-Birch
@dr-Jonas-Birch 27 күн бұрын
Im aware. In C99 you can also declare variables anywhere in your code, not only in the beginning of the function. BUT that does not mean you Should. :) JB
@mohsinkamalkhan9723
@mohsinkamalkhan9723 Ай бұрын
just an advice to upload videos in 1.5x speed, it becomes more catchy
@dr-Jonas-Birch
@dr-Jonas-Birch Ай бұрын
There are enough of "catchy" videos out there. To this channel one comes to relax and permit yourself to let things take its time. Instead of rushing through it. Really underrated behavior imo. JB
@charleswilliams8368
@charleswilliams8368 Ай бұрын
The settings has a playback speed option.
Finishing coding our game, in C
2:06:08
dr Jonas Birch
Рет қаралды 2,7 М.
How the C++ Compiler Works
17:55
The Cherno
Рет қаралды 799 М.
👨‍🔧📐
00:43
Kan Andrey
Рет қаралды 10 МЛН
Нашли чужие сети в озере..💁🏼‍♀️🕸️🎣
00:34
Connoisseur BLIND420
Рет қаралды 3,5 МЛН
My Cheetos🍕PIZZA #cooking #shorts
00:43
BANKII
Рет қаралды 26 МЛН
Lehanga 🤣 #comedy #funny
00:31
Micky Makeover
Рет қаралды 29 МЛН
#11. Switch Statement in Dart: Simplify Your Code with Ease
4:44
Daily Programmer
Рет қаралды 10
I did a C++ University Assignment
50:23
The Cherno
Рет қаралды 290 М.
Harder Drive: Hard drives we didn't want or need
36:47
suckerpinch
Рет қаралды 1,6 МЛН
Every programming language explained in 15 minutes | Prime Reacts
43:42
I coded one project EVERY WEEK for a YEAR
13:13
Carter Semrad
Рет қаралды 588 М.
What is the Smallest Possible .EXE?
17:57
Inkbox
Рет қаралды 360 М.
10 weird algorithms
9:06
Fireship
Рет қаралды 1,2 МЛН
7 DEVS Make a GAME without COMMUNICATING! (centipede edition)
17:16
Blackthornprod
Рет қаралды 1,1 МЛН
This YouTuber Faked 100 Records, So I Actually Beat Them
22:25
Yeah Jaron
Рет қаралды 7 МЛН
The Worst Programming Language Ever - Mark Rendle - NDC Oslo 2021
1:00:41
NDC Conferences
Рет қаралды 1,3 МЛН
👨‍🔧📐
00:43
Kan Andrey
Рет қаралды 10 МЛН