I Wrote Binary Counter in 26 Lines

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 เม.ย. 2024
  • Probably the funniest challenge I have attempted to this day! It is not funny by itself but watching me struggling with it sure is. The seemingly simple task of making a binary counter can become near impossible when given to the hands of someone as incompetent as me. But it wouldn't be real coding without coding troubles.
    This video has it all! Finding invisible bugs to fix, misunderstanding the assignment, coming out with solutions that cannot be implemented, hoping 'AI would somehow do it', and more!
    So if you are a fan of coding, find someone else's pain and struggles amusing, or are just interested to know how a binary counter works, this video is for you!
    🔔 Subscribe to the channel for more gaming adventures, coding challenges, and tech insights!
    🎬 Watch the full 7 Billion Humans series here: • 7 Billion Humans
    🎮 Other Puzzle Videos: • Shapez Puzzles
    🔥 Shorts: • Shorts
    #puzzlegame #codingchallenge
  • เกม

ความคิดเห็น • 10

  • @realdragon
    @realdragon หลายเดือนก่อน +2

    Well it is a counter, I would make the button guy say "HI!" to the woman so she switches, but when picks up datacube she says "HI!" to the person left to her. So you don't need those if statements for button guy

    • @KedrigernGaming
      @KedrigernGaming  หลายเดือนก่อน +2

      Was really hard to communicate my thoughts on this one. I thought of this and then didn't know how to make her decide when to tell "Hi" to the next person. and when the next person should say "Hi" to the next. Because the people do not know which bit they represent. So if they were to count themselves, they have no idea whether to nudge their neighbour after 2, 4, or 8 steps.
      But I expect (and hope) you will now tell me I misunderstood you.

    • @realdragon
      @realdragon หลายเดือนก่อน +1

      @@KedrigernGaming Ok let's start with 0
      Nobody has datacubes placed, guy with button says HI and woman places her daatcube
      0001
      Now when button guy says HI to woman she pick up cube
      0000
      and tells person to the left HI to place down cube
      0010
      Beginning would look like you had in 9:25 but before (or after) pickUp in else statement just add command to say HI to person to the left
      And button guy can add numbers or something to wait for everybody to say HI and then press button

    • @KedrigernGaming
      @KedrigernGaming  หลายเดือนก่อน +2

      So I did understand you before but misread the binary numbers...damn. And the second person would upon pickup also nudge his neighbour. That's genius! (explaining on a example helped)
      But this is hurting my head a bit much. You give me an advice, you are right, but I still have to 'argue' and ask to understand it properly.
      As for the button guy just calculating for fun to kill time is exactly my thinking! Or maybe even better to tell something to match the speed of the others. Gonna have to revisit this level for sure!

    • @tuxino
      @tuxino หลายเดือนก่อน +1

      @@KedrigernGaming
      Instead of doing calculations, the button guy could listen for "Ok". All the others are waiting for "Hi", so each person on the sensors will say something when it's their turn: if they picked up their cube, they say Hi to the next, if they didn't, the say Ok to all (which only button guy is listening for).

    • @KedrigernGaming
      @KedrigernGaming  หลายเดือนก่อน +2

      Love it!
      I Also had this idea before but scrapped it as I went in a different direction. And to be fair you completed the idea so I should be able to implement it now ❤️

  • @FoxSlyme
    @FoxSlyme หลายเดือนก่อน

    I finally caught up with watching your 7 Billion Humans videos. Watching you trying to come up with the solutions during the recording was very entertaining! I will of course keep watching the upcoming videos, but when there will be nothing else to do in 7 Billion Humans, could I ask you to play Turing Complete to replace it? If you enjoyed 7 Billion Humans, I'm sure you will love it as well. Just like with this game, you open a level, try to come up with the solution, it might or might not work, you call yourself an idiot and make it better and more efficient, you might make something stupid and it somehow works, etc. This is gonna make an amazing content! Similar to the elevator here, you will also go up the level map, starting with simple logic, then combining it into adders, counters, memory, etc., then further into your own CPU, and you will even write code for it! And it has optional challenges as well (but they are unlocked near the end of the game). I highly enjoyed this game as well and I'm sure you will too. No prior learning required, everything is explained pretty well in the game - but of course your coding background will help, and we do in the comments too!

    • @KedrigernGaming
      @KedrigernGaming  หลายเดือนก่อน

      I am really glad you enjoyed it! It feels awesome to see someone really like the videos (and basically the only way I get to know is by seeing the person comment on multiple videos).
      After I am done with 7 Billion Humans, I wanted to spend some time and revisit the puzzles I haven't fully completed (optional challenges).
      I thought about Turing Complete but it seemed way too difficult and daunting. But that might just be because of the late-game screenshots. I also thought about giving Human Resource Machine a go. What do you think about that? But yeah, those are probably the top 2 games I have in mind to continue my coding journey.
      And as you might have seen (most people actually don't enjoy/watch it), I put up one other video every week where I play a completely different game I enjoy. Ideally with some possibilities of automation, strategizing, or just satisfying gameplay. Shapez might have been the most successful game that checked all those boxes. I would like to stick to that as well as I feel coding might not be as accessible and enjoyable to watch as a 'normal' game with 3D graphics...where you do some 'coding' but without actually realizing it.

    • @FoxSlyme
      @FoxSlyme หลายเดือนก่อน

      @@KedrigernGaming yes I've seen that you alternate videos, but I've also seen that 7 Billion Humans gets way more views than the alternate games (at least lately). So people do enjoy it more as well!
      I differentiate between "finishing" the game and "being done" with it - the former means just getting to the end, while the latter means doing everything you wanted and stopping playing it.
      I haven't played Human Resource Machine myself, but I've seen screenshots and other people talking about it, so I know it's very similar to 7 Billion Humans, and because 7 B.H. came out after H.R.M., it's almost like a sequel. You can try it if you want, I will watch it as well.
      As for Turing Complete being difficult - I'd say it's the same difficulty as 7 Billion Humans. Remember how you had to take a line of datacubes and move them 2 tiles down? That's as hard as the first TC level. Remember how you had to print a datacube, label it 1-5 and place it anywhere on the floor? That's about as difficult as making a counter in TC. Remember how you had to count how many 0-5 numbers are there on a grid? That's about as difficult as making logic and memory of your first computer in TC. Remember how you had to sort the long line of numbers with just 6 workers a couple of levels ago? That's about as hard as making comparison circuits for your second computer in TC. And look at the code you had to write for your binary counter to work? Looks complicated, until you start reading it and see clear logic. The same with TC - you start with simple things, and then levels start building on what you did previously - resulting in multiple levels worth on the same screen, and that's why these screenshots look so complicated. But I assure you that if you managed to come to this point in 7 Billion Humans, you can handle all levels of Turing Complete as well!

    • @KedrigernGaming
      @KedrigernGaming  หลายเดือนก่อน +1

      TH-cam works in mysterious ways. 7 Billion Humans is also probably the longest-running series as well, which might have something to with it being 'popular'. But at the same time, even though these coding videos are all 'the same', there are some which get tens of views and some get thousands - makes no sense.
      I also believe 7 B.H. is a sequel to HRM.
      you know what? You convinced me! Now I am even looking forward to it (without being scared). Reminds me of Shapez again. It was the first time I actually got to create a circuit. I fully automated the game. Was a lot of fun. And the sense of accomplishment when it all worked as I connected the individual parts together? Priceless...