- 290
- 315 989
Kedrigern
เข้าร่วมเมื่อ 23 ธ.ค. 2014
Software engineer and completionist who likes to play a variety of games to their fullest potential. I like to provide smart solutions to in-game problems.
Hopefully often hurting my brain and breaking the game in the process.
Hopefully often hurting my brain and breaking the game in the process.
The Advanced Maze Coding Challenge Made Me Cry
The Maze puzzle is one of, if not the, toughest challenge this game has to offer. It was so much pain making this puzzle work but I managed in the end. But I did not stop there as today I will be attempting to solve the advanced version of this puzzle.
This additional challenge makes the puzzle seemingly impossible as the maze can now contain loops. Will I be able to figure out this advanced coding task? It would be a shame if a real software engineer failed such an "easy" puzzle.
So prepare for a thrilling experience where I brainstorm ideas and try to implement them. You can look forward to a tonne of bugs and a lot of hair-pulling as I try to find them and squash them one by one. I am still not sure how many are left in the code. That is a programmer's curse!
🔔 Subscribe to the channel for more gaming adventures, coding challenges, and tech insights!
🎮 Farmer Was Replaced Playlist: th-cam.com/play/PLnI5px0eVEbV3NHeHi7524uOXMOZyusW5.html
🎬 Watch the full 7 Billion Humans (coding puzzles) series here: th-cam.com/play/PLnI5px0eVEbVtyGjZ4aJWUdogkahQGRiM.html
🔥 Shorts: th-cam.com/play/PLnI5px0eVEbW5kf_NhQPJ_va2cJqPtjss.html
0:00 Intro
0:43 What is the Maze puzzle
2:48 How does my code work
7:36 Advanced version
12:28 Solving the loops
17:06 Annoying bug
24:16 Final optimization
#puzzlegame #codingchallenge #clickergame
This additional challenge makes the puzzle seemingly impossible as the maze can now contain loops. Will I be able to figure out this advanced coding task? It would be a shame if a real software engineer failed such an "easy" puzzle.
So prepare for a thrilling experience where I brainstorm ideas and try to implement them. You can look forward to a tonne of bugs and a lot of hair-pulling as I try to find them and squash them one by one. I am still not sure how many are left in the code. That is a programmer's curse!
🔔 Subscribe to the channel for more gaming adventures, coding challenges, and tech insights!
🎮 Farmer Was Replaced Playlist: th-cam.com/play/PLnI5px0eVEbV3NHeHi7524uOXMOZyusW5.html
🎬 Watch the full 7 Billion Humans (coding puzzles) series here: th-cam.com/play/PLnI5px0eVEbVtyGjZ4aJWUdogkahQGRiM.html
🔥 Shorts: th-cam.com/play/PLnI5px0eVEbW5kf_NhQPJ_va2cJqPtjss.html
0:00 Intro
0:43 What is the Maze puzzle
2:48 How does my code work
7:36 Advanced version
12:28 Solving the loops
17:06 Annoying bug
24:16 Final optimization
#puzzlegame #codingchallenge #clickergame
มุมมอง: 1 619
วีดีโอ
Blueprint Unlocks Are Underrated
มุมมอง 272วันที่ผ่านมา
This is not just a useful mechanic, this is the CORE mechanic the game revolves around. Blueprints are what makes Shapez enjoyable and addictive. The satisfying gameplay doesn't stem from the stunning visuals but from the efficiency at which you can produce shapes using blueprints. I always aim to unlock the full potential of blueprints as I truly feel they might be a little underrated and unde...
Ultimate Coding Rage Test
มุมมอง 214วันที่ผ่านมา
This video contains the purest of raging over coding challenges. If you are interested to see what goes through a programmer's mind when solving a tough assignment, this video is for you! Feel what it's like to be in a software engineer's skin for just 15 minutes and experience the ups and downs of this fun profession! Even though this challenge seems really simple, it is deceptively hard. With...
Blueprints in the Hands of a Software Engineer
มุมมอง 2642 วันที่ผ่านมา
Blueprints are super powerful when used by someone used to this kind of optimization. Reusing bits of code or anything with a function is the core of being a software engineer. The trick is to make the blueprints generic enough to be viable in many situations. But not make them too generic so that they would become too annoying to even use. Finding that sweet spot is the hard part. Shapez 2 off...
Can I Beat The Ultimate Coding Challenge?
มุมมอง 82714 วันที่ผ่านมา
We have reached the final stage of the game. Our generic universal code can just be run and go head-to-head with other programmers. Simple speed test - our program versus their programs. Only one can claim the top spot. This truly sounds like the simplest challenge ever, since our code was completed weeks ago...right? ..right? I sure hope there won't be any unforeseen difficulties and additiona...
Is This the Fastest Decimal Counter?
มุมมอง 17114 วันที่ผ่านมา
As a programmer, I am used to counting in binary. Does that mean I can no longer function in the normal world of decimal numbers? Am I even able to count in decimals anymore? This video aims to answer that question, as I dive into a surprisingly challenging coding puzzle that relies on a decimal counter instead of the standard binary counter. Our goal is, however, not only to complete the chall...
I Engineered Dinosaurs Using Source Code
มุมมอง 91421 วันที่ผ่านมา
Possibly one of the last proper hard coding challenges this game has to offer and it gets solved today! ...hopefully! Enjoy this programming assignment as I hatch dinosaur eggs, write a sorting algorithm, and go through many iterations of solutions all in the hopes of progressing further towards the ultimate goal. Tough hurdles and impossible bug-fixing on the way are expected. But even more im...
Real Software Engineer Builds a Shapez Factory
มุมมอง 21321 วันที่ผ่านมา
Shapez 2, an insanely addictive factory builder is finally here! This game offers infinite optimization possibilities, satisfying gameplay, and mechanics, and is just a pleasure to look at. This is a long-awaited sequel to the successful game Shapez. It improves on the visual aspects heavily and leans towards better usability, UI, and quality of life. You will not find a more satisfying game an...
My Coding Addiction got Out of Hand
มุมมอง 3.2K28 วันที่ผ่านมา
This is what happens when optimization and code cleanup get a little out of hand. The programming addiction is strong with this one. There is always stuff to improve and although I try to take the code clarity to the next level and you all my refactoring skills, this is far from being done. A skilled reviewer would still have more than a few things to say about this code. That does not stop me ...
I Programmed a Magical Forrest
มุมมอง 168หลายเดือนก่อน
Programming does not only mean writing lines of code. Instructions you are trying to program can be given in many other ways. Here specifically, I program an optimal factory which is done mainly by setting the layouts of paths (conveyor belts) and strategical placement of item filters, one-way signs, splitters, and more. Today we make major progress in the game as we utilize newly unlocked mini...
I Beat This Coding Challenge in Record Time
มุมมอง 2.8Kหลายเดือนก่อน
I tackle yet another insane coding challenge. This one is mostly a mathematical puzzle so it is a nice change of pace. There will still be a lot of coding, however! Interestingly, this puzzle turned out to be much simpler than all the previous ones. Surprisingly this is what made the reward taste so much better. This is a well-deserved trip back to the basics of coding. It is also an essential ...
I Created the Best Sorting Mechanism
มุมมอง 202หลายเดือนก่อน
As a software engineer, I know the importance of creating something optimal. And even though this is just a cute factory builder, that does not mean we can build anything without real thought. In this video, I focus on creating a new layout that tackles all the issues found with the previous one (fixes all the bugs), increase the production of sparks in a major way, after unlocking a few new me...
This Coding Challenge Made Me RAGE
มุมมอง 2.7Kหลายเดือนก่อน
The toughest challenge this game has to offer is here! In this video, I attempt to solve the maze puzzle. This challenge might be the most deceptively difficult yet. It looks simple but in reality, it is quite complex. I put my coding skills on the line and test my knowledge of graph-searching algorithms, tree structures, and obviously recursion. Conquering this puzzle is a must if we want to c...
Real Software Engineer Automates a Forrest
มุมมอง 804หลายเดือนก่อน
Real Software Engineer Automates a Forrest
Most Annoying Deck in Magic: The Gathering
มุมมอง 2552 หลายเดือนก่อน
Most Annoying Deck in Magic: The Gathering
Real Software Engineer Automates a Clicker Game
มุมมอง 4.1K3 หลายเดือนก่อน
Real Software Engineer Automates a Clicker Game
Dumbest Programmer Solves Impossible Puzzles
มุมมอง 2503 หลายเดือนก่อน
Dumbest Programmer Solves Impossible Puzzles
16:48 "První thumbnail, a druhej thumbnail by moh bejt." Jsem si říkal že na Angličana moc nadáváš.
Instead of while get_entity_type() != Entities.Hedge, try while get_entity_type() == Entities.Bush, for make_maze.
Yet another example when the original solution worked, the task got more complicated, original solution no longer worked so I slapped a band-aid on it instead of "rewriting" it altogether. You are right, this is much better :)
Well, even though the game defeated me, I can still watch you destroying it😅. My dad is now trying to do the leaderboard thing and optimizing his maze code to become faster.
Good luck to your dad!! That leaderboard puzzle is so mean. In my code there is so much room for optimization still. But I feel the leaderboard puzzle might just break everything anyway. Let's see!
@@KedrigernGaming 😅True, it always breaks when something is touched, like a Jenga tower.
You nailed it! I'd say I'm good at removing Jenga tiles (editing my code) but when I run it, it's as if I threw a bowling ball at it... It's actually a good coding analogy overall. Coding is like trying to remove Jenga bricks from a tower only using a bowling ball.
@KedrigernGaming 😂Using the bowling ball is true, with me, I basically used an excavator.
I love it 😂
I LOVE YOU! !! 🫶
Love you too <3
Oh cool, this time TH-cam didn't forget to notify me
At the start of the game, I think I quickly broke that promise of not making any spaghetti, but they didn't fire me so I think I got away safely😅.
Don't worry, I broke it too. But now it's kinda a 'delete all' time. So I feel like a bit of spaghetti is fine!
@@KedrigernGaming 😅I think that's how it always goes with games like this.
"blueprints are underrated" Said noone ever
But does this game make you get into polymorphism? Where are the classes and methods? Do you have to import modules and use them? So you say you not going to hit a solid wall with a simple planting game after like a few weeks? I am not sure. If you want to argue with me don't use the "after you master the game do something else" argument. I really just curious how far this game will take you by it's own.
I don't think it does (no polymorphism, classes or any of that fancy stuff). It is a very 'simple' version of coding. Beginner friendly in that sense I feel. I suppose this is less 'learn to code' and more 'solve puzzles' kind of game. But it the closest any game has ever gotten to coding as far as I know. So you can actually learn the basics quite nicely as it is all visual and nicely done. The game also forces you to review your own code, debug it, refactor it on build on it. So if you write bad code, you are the one being punished for it later when you need to revisit it and make some changes. I have never seen a game like this before.
@@KedrigernGaming Well, it works for somebody but not for everybody. For example if you install KSP and start playing, you not going to have a great and easy time trying to land on the moon, more like a strouggle full of frustration. It's a game, and you can try out everything, but you still going to have a "Why i can't get this to work" experience probably, because most people does. Back to this game: for the same thing I recommend Mimo instead. Not frustrating. You not going to slam your phone into the ground, and teach you everything what this game does, even if you have tiktok attention, and even if you only have 5 minutes a day. And it WILL get you there. Probably many people going to have that certain KSP experience with this one also.
It is true this game just drops you into the action for sure. But I really love that it is not learning course or anything like that. It really is just a game.
I have been defeated so many times upon thinking "This does not look that hard and should be simple", then just watch a TH-cam video😅. Haven't seen this game, but its simple looking design is a trap to let you guard down as what happened here😂 and I am here for it.
Those deceptively simple puzzles are the hardest to solve. Keep in mind this is my third attempt at this puzzle. Each time I got better by utilizing some helpful advice, but even if it sounds clear on the paper, the implementation is entirely different.
@@KedrigernGaming For a 3rd attempt I would say it is amazing and I have played games with some puzzles in them (not puzzle games), but what is supposed to be simple, I ended up overcomplicating it and google the answer (then comes the 🤦♂️). The Entropy Centre is now where my braincells start working overtime, but getting through makes me feel like a genius😅.
Thanks! The game is interesting! Looks like Portal with more mechanics. Love that these puzzles are working for you. That "feel like a genius" is the main reason people solve puzzles :D
@@KedrigernGaming It is nice to play a game that requires more than just basic controls. It is more enjoyable to see these puzzle games when you play them because some of them are not for me, but if you want another coding scratch like game Autonauts is a good challenge to get things automated with bots and have limited inputs on them.
Now that looks really good! Thanks :) (actually it looks a bit crap but we don't play these game for the graphics :D )
same reason why I got into coding, making bots for almost all games I played with a high level clicker language.
That indentation mistake was so painfull to watch😂
You experienced high discomfort watching that for a long period of time. I did not because I didn't see it. But the pain I felt once I realized... still no idea what is worse 😂
I really enjoy watching your videos. Something about the way you talk makes it 100 times better
Now I have something in my eye... Thank you, so nice of you to say!!
I second that, it doesn't sound boring and can also can keep up with what is happening.
Love your videos
Thank you! This really means a lot to me!!
@@KedrigernGaming i just lobe the way u doing them, high quality and with a crazy amo7nt of humour
This warms my heart <3
The pure joy of recreational coding and swearing.
Great video, great game, great Red John pfp, greatest channel ever. 😂❤
Thank you so much!!! You made my day :)
hell yeah, another awsome video
Just wait till you make a cmam. Tbh you might even try to make a tmam (but trust me done try to make a computer with wires as they act differently off camera)
Looking forward to it! Expect it to be maybe a bit easier than in the first game thanks to some new mechanics but we shall see :)
(A cool shortcut that helps a lot is highlighting what you want to clear and press 'I', saved me time to get the correct shapes fast). Wow, I just got on TH-cam and what a surprise to see the upload😅. I have a big challenge now because I am looking at videos to try my first ever MAM, but I am building up to attempt it first🫠🤠. The auto save after some time with a lot of buildings is taking some time, so want to try not going too crazy with building (looking to compact now too).
You gotta love the client changing the scope of your project when you think you're almost done :D Good luck refactoring everything, thankfully you kept older versions so you might still have at least some of what you deleted along the way :x
Exactly why I always double or tripple the time estimates. And know that 'almost done' means, it is not yet tested, the 15 TODOs I could not solve are still there, the 'minor' bugs throughout the code are very present and basically the work is not even half way done. What's the rule? Spend 80% of the time finishing the remaining 20% of the work? At this point I feel it might be better to start from scratch. Probably much less work than major refactoring and less mind bending..?
@@KedrigernGaming Each of your farm programs should work fine with a few unlock checks on functions unlocked later. Most of the work is gonna be on stuff you haven't done yet or deleted, like polyculture, watering, creating the dictionary of unlocks that your main loop has to check for whether they're unlocked, how much they cost, what to unlock next. It's up to you whether you think all that is best done from scratch or massaged into the existing loop. Ultimately, getting down to sub 20 minutes will probably require multiple rewrites but it might be worth it to bodge a working leaderboard automation before that to get a feel for what it's gonna take in the first place.
I thought they would work fine with a few checks but was afraid it would create too much clutter...which would be impossible to debug lol. The thing is the current version of the code is not pretty either. So this might be a nice opportunity to make it clean? But adding a few unlock checks was my first idea indeed. I guess I'm stressing over it too much. Gotta just dive head first into it and see. Thank you for the confidence you have in me not messing this up!
@@KedrigernGaming Oh I'm sure you will mess up in a few cases along the way but it's part of the fun. Mostly the viewer's fun. 😉
I am well aware viewer retention is directly proportional to my pain. I will do my best not to disappoint!
Great job for 1k subs, you really deserve it
This means so much! Thank you!
This captures the pure energy of a developers feeling and reaction when a PM changes the requirements.
So true!!
Yea imo that leaderboard that ununlocks everything is big f you
Some next level trolling
And another amazing video... Also; nice to see this channel grow, over 1k subscribers now...
Thank you! I hope it won't stop there.
cool game but could you provide an actual link to the game or at least say the name in the video so we know how to find it
I named the playlist after this game, the name is just under the video and also as a response to a few other comments asking the same question. Maybe the issue is the game having a weird name? Not sure...
Try insertion sort instead of bubble sort.
Wouldn't the implementation be exactly the same?
@@KedrigernGaming not quite, they have similar complexity, similar implementations, but insertion sort on average moves items shorter distances, so it is a a small constant faster.
There is a nice visualiser video by udiprod.
Your if-sequence calculator would be faster if implemented as a binary tree.
True! Nice 😀
Finally 7 Billion Humans! 😊
9:34 YandereDev intensifies
You gained a slight bit of time from the overflow, but you lost more time by making the button presser move two extra squares - especially because that happens every cycle, whereas overflows are only every so often I think the main optimizations that saved me are all related to minimizing the time when one person is waiting on another. Hints below: * Most digits are sitting idle most of the time - is there any work they could do in advance before it's their turn to increment? * The time taken for a full increment is based on when the last person finishes - writing takes a certain amount of time, so how can we ensure they start as soon as possible? My solution 1) Use mem1 to hold the *next* number in memory, so time is not wasted calculating during the increment 2.1) If it's your turn to increment, FIRST pass the message along to your neighbor (if you're about to overflow) so they can start immediately without waiting for you 2.2) Then write the number on the cube and put it back 2.3) Then call ready if you're the last one 2.4) In your free time, calculate the next number so when it's your turn again you have it ready Although.., i just had another idea that might save having to pass the message along in the first place, gonna test that
Extra optimizations i thought of after writing the comment that brought the time down further ------- 1) You can yell out 'ready' before you place the cube down and still just barely make it in time 2) Instead of having to tell your neighbor to start, they can wait until they see you have a 9, and then they know the next time you pick up the cube they should too! 3) Neighbors can also help each other by calling out ready for each other, so the person doing work doesn't have to Specific solution I divided the code into four roles - the counter, the first digit, the middle digits, and the last digits THE COUNTER just presses the button whenever they hear ready THE FIRST DIGIT just increments their number whenever they see the counter return MIDDLE DIGITS have two modes - if the number on their right is not 9, they are an announcer, otherwise they are a worker Announcers wait for their right neighbor to pick up the box, then yell our 'ready' a second later Workers wait for their right neighbor to pick up the box, and then increment their own THE LEFTMOST DIGIT waits for a 9 on their right, then acts like a worker - except that they call our their own ready (they have no one on their left to rely on) I may have forgotten to implement the announcer role for the leftmost digit - luckily for this level that edge case never comes up
I love this so much! Great job there! Gotta be honest though, I might have played this game a bit too much and all the puzzles and times I tried to optimize some are just getting mixed up. I was so sure I tried to implement the solution you suggest already and that it did not work. But maybe it was a different puzzle? Or maybe...maybe it was just in my head? Who knows... That being said, I'm actually even more happy to read your comment! Thanks <3
It's been hot minute since you played it. Small optimization I thought of is not to wait for worker to go back up. As soon as worker to the right goes down the other worker checks what's the number on datacube in bottom right If that number is 9 then the worker knows it's gonna overflow and can just go down and change their number. Or you could really hardcode it and make it so that 5 people on the left change their number at the right time
When solving this I was mentally one step behind. I wanted to check for a 0 and knew I had to let the other worker write it first. Hence waiting for him to come back. But yeah, if the worker goes down to fetch a 9..i should probably know what he's about to write lol.
I'm not that proficient with coding yet, but my first inklings are as follows: 1) do the workers have to step off the tile for the computer to read the block? If not, then you could save a lot of time by just deleting the step commands. 2) since an empty tile counts as a 0, you could save some time by just not putting down a 0 block. This should probably be accompanied with a check whether the worker to your right is holding a block or not, to confirm whether you should put yours down?
1) You're right, it works fine if they all stand still 2) Oh, clever - This could save not only the pickup, write, and drop, but also a calculate
i know im late since you already made many more videos, but you could turn the buying and planting of carots into a function, and then just put that function in the code instead of the whole thing
Thank you for the tip! I have done that already...partially. It always seemed like "This is the last I am gonna have to do/write this. Probably no need to make it generalize the idea." But new mechanics just kept popping up and...eh..yeah, I should optimize a bunch!
Great! Now refactor your code so the next guy can understand it and not hate his life lol
This is exactly what is bad with schools. You write code and know damn well no one including you is ever gonna read it again. So the quality is crap, obviously.... And you don't learn until it eventually bites you in your behind. Need to solve a few puzzles in this game so I expect to be bitten quite soon.
This might be a functional use for a bogosort. Since the dataset is always randomising itself you scan the entire field and for each plot just check the 5 positions that you can from the drone and see if they all are the same type if they are then harvest (which will harvest all 5)
For sure. Although even this wouldn't be great since we could possibly block certain groups of dinos from mixing. This really is just the worst sort ever, isn't it. Maybe only the Miracle Sort can beat it....or my version of Stalin sort...
@@KedrigernGaming What about if you placed dinos from where you harvested them from.
Could do..would have to search the grid for all spots without dinos.
20:07 this problem can be solved by using lambdas that will reroute `doAt()` to the correct function: doEverywhere(lambda: plantItem(Entities.Carrots, Items.Carrot_Seed)) doEverywhere(harvest)
Looking back I'm not sure why I said that. I was talking about passing a function to be called...and for some reason wanted to pass its arguments separately? Guess that's again me not knowing much about python so I thought I could only pass a reference to a function. Then later call it and supply the arguments also later.
@@KedrigernGaming yeah, and in my case we're always passing a function with no arguments, be it a regular function or a lambda that uses closure to do whatever
hi, would you try factorio someday? love ur vids btw
Thank you! It is on the list for sure :)
That's happy news
Great series so far, do you plan to compete on the leaderboard and make videos on the process, I'd love to see your version of an automated farm and how far you can optimize it :D
That is the ultimate goal. I will not give up! But it will be a lot of work..surprisingly.
@@KedrigernGaming Yay, best of luck getting down to sub 20 minutes :D
Thanks, gonna need it!
10:33 "Use item, if you for some reason can't, you are an idiot." Those are some true words and it is funny that the 'Dinosaurs' look like chicken or ducks😅.
Didn't expect this game to include dinosaurs xD
The ultimate farming experience!
It pains me a bit with how you make the drone wait. First of all, if you can use _pass_ keyword, it means you can do nothing instead of making the drone flip. That way, when the condition becomes satisfied, you won't have to wait for the drone to finish its flip. Second, remember 7 Billion Humans and how you converted "if-else" with 2 jumps to just "if" with a single jump? You can do the same here - while the inverted condition is true, you wait: while not can_harvest(): pass By the way, why did you stop uploading 7 Billion Humans?
Thank you!! I needed a keyword like 'pass' but had no idea it existed! Normally I would leave the loop empty but it wouldn't let me. It pained me too. 7 Billion Humans coming up this Friday ;)
Oh look, another video, this is going to be fun...
Managers will encourage salaries to stagnate, layoffs rise, expecting existing staff "to do more with less (AI)." ML codes worse than junior SWEs, too many hallucinations. But useful for 1st drafts Seniors who know datastructures & algos, it can't beat I see more junior SWEs becoming entrepreneurs and making $$$
Nice youtube recommendation
Everytime i scroll past this, i crave pineapple
Add comments to your code so its easier to follow
I tried once. It turned out to be that typical // now we harvest harvest( ) kind of thing. But I can give it another go!
I love how the presentation was somewhere between Conan O'Brien, Flula Borg, and an actual software developer 😂
1000 sub
What an achievement! Thanks