zapakh
zapakh
  • 11
  • 42 009
Steamboat Willie but without animal cruelty
Please enjoy this edit in honor of Public Domain Day 2024
Переглядів: 1 971

Відео

The Farmer Was Replaced, timed run in 29:58 [no code]
Переглядів 40 тис.Рік тому
Turn on subtitles for commentary! The Farmer Was Replaced is a game about programming a farming drone to manage a farm. Once you've played casually, you can reach the leaderboard by writing a single program to climb the tech tree again from the beginning. This is one such run. The solution code is not shown, but the drone's behavior may answer some questions about the game mechanics. The versio...
Solving Kilordle in Python
Переглядів 1542 роки тому
Kilordle, written by jonesnxt, is a Wordle variant in which you play 1000 Wordle games at once. To make things faster, you are not required to guess each word exactly. Instead, a word is considered solved when each of its letters has been guessed in the correct position, but not necessarily in the same guess. To help you out, the individual games are sorted so that the ones you are closest to s...
Advent of Code 2021 - Day 7
Переглядів 583 роки тому
I'm sorry Advent of Code: adventofcode.com My Twitch: twitch.tv/zapakh
Advent of Code 2021 - Day 6
Переглядів 143 роки тому
Lanternfish. Lanternfish everywhere. Advent of Code: adventofcode.com My Twitch: twitch.tv
Advent of Code 2021 - Day 5
Переглядів 173 роки тому
Count the lines. Advent of Code: adventofcode.com My Twitch: twitch.tv/zapakh
Advent of Code 2021 - Day 4
Переглядів 253 роки тому
The one with the giant squid who plays bingo. Advent of Code: adventofcode.com My Twitch: twitch.tv/zapakh
Advent of Code 2021 - Day 3
Переглядів 123 роки тому
The first 2 minutes are missing because my mic was muted. Also, there are jump cuts because I was splitting my attention between Advent and another stream format. Advent of Code: adventofcode.com My Twitch: twitch.tv/zapakh
Advent of Code 2021 - Day 2
Переглядів 243 роки тому
Using Python, and then using LibreOffice Calc. Advent of Code: adventofcode.com My Twitch channel: twitch.tv/zapakh
Advent of Code 2021 - Day 1
Переглядів 633 роки тому
Advent of Code is an annual programming challenge created by Eric Wastl. This is the livestream of my solution to Day 1 of 2021, using Python. The puzzles get more complex as the season goes on. Advent of Code website: adventofcode.com/2021/about My Twitch channel: twitch.tv/zapakh
Reckoning Dice part 1
Переглядів 403 роки тому
Six-sided dice may be used to represent numbers in decimal in an intuitive way, with slight modification.

КОМЕНТАРІ

  • @rickez3152
    @rickez3152 2 місяці тому

    how is this game still in beta lol. 1 year ago

  • @rickez3152
    @rickez3152 2 місяці тому

    ah right you are taking into account growing times. you are visiting the grass more often and they are planted in the middle for a reason. what i dont like is taht growing time is not specified?

  • @Zzcheesezz1
    @Zzcheesezz1 2 місяці тому

    So is this technically a TAS?

  • @patrickalexanderlucasvande4214
    @patrickalexanderlucasvande4214 2 місяці тому

    wait wtf can u automate the unlocks as well wtf

  • @FelixAlvo1
    @FelixAlvo1 3 місяці тому

    Bro is gatekeeping code for a farming game... in all seriousness though, crazy cool to see how this is possible, really cool watch

  • @keejay98195
    @keejay98195 3 місяці тому

    by what logic are you buying empty buckets? every time you harvest a tree? i can’t figure it out

  • @fachriem
    @fachriem 4 місяці тому

    hi could you please tell we how to sort cactus, sooo fvcking frustrated

  • @Nichtdu-rt4ih
    @Nichtdu-rt4ih 5 місяців тому

    I have a A* (without the heuristic fn) maze implementation which is way faster You should try that as well. Use a meet in the middle strategy tho otherwise processing will take too long

  • @Stieselkeine
    @Stieselkeine 5 місяців тому

    This game could be an introductory course to datastructures and algorithms

  • @Hotment
    @Hotment 6 місяців тому

    can you post your cactus farm code and your dino code?

  • @Tyrone-Ward
    @Tyrone-Ward 6 місяців тому

    Why is "[no code]" in the title when there's def code?

    • @zapakh6240
      @zapakh6240 6 місяців тому

      Because [no code shown onscreen, though obviously there's code running because that's how the game works] doesn't fit in a title.

  • @liranmohrlifshitz1208
    @liranmohrlifshitz1208 7 місяців тому

    can u post the code? im strugling with the game...

    • @zapakh6240
      @zapakh6240 7 місяців тому

      The Discord is a great community, and very helpful.

  • @SteveRowe
    @SteveRowe 7 місяців тому

    Waiting to see zombies start shambling across the field

  • @Plystire
    @Plystire 7 місяців тому

    I saw another youtuber playing this and before finishing the episode, I went and played it over this past weekend. Didn't spoil anything for myself and managed to squeek down to #107 on leaderboard. After revisiting their video, I used his cactus sorting algorithm instead of my horrible attempt at brute force lol, and that placed me in #98. Watching this... I now understand why I couldn't fathom how to get such low times... clearly, I missed a key point in the doc.... power. I did NOT know it was consumed to speed up the drone xD I was only harvesting it to unlock further speed upgrades! Also... were mazes changed? The tip for reusing mazes says there's only a 10% chance that the treasure value increases, and yet you got exactly 300x the value for doing the maze 300 times. Because of what the doc said, I never even considered reusing a maze! [EDIT] Nope! Reading comprehension failure... I must now go back and reoptimize with this in mind. You're a very capable coder! Thanks for sharing 😄

    • @Plystire
      @Plystire 7 місяців тому

      Wow... just putting sunflower unlock earlier and making sure to keep up power, I gained 10 places on the leaderboard. Kicking myself now for missing that! 😆 Now to code up some maze solvers to try out.

  • @danielrhouck
    @danielrhouck 7 місяців тому

    23:46 Do you have access to debug2 in a timed run? Shrinking the whole farm for cacti sounds like probably not worth it but it depends on how much it speeds up the sorting. 25:58 Really? That is definitely easier but Iʼd expect there to be a useful way to re-use information. I guess most information you need is “there *is* a wall here”, and that canʼt be re-used; if there isnʼt a wall in the direction you want to go, you attempt it right away anyway. Re: Description: This wouldnʼt work in a timed reset but when first playing, to get a feel for the mazes, I just did several manually, and that got me enough gold for dictionaries.

  • @4louisMC
    @4louisMC 7 місяців тому

    Soooo.... turn on subtitles!😂 Too late did I figure that out 😂😂😂

  • @sdegueldre
    @sdegueldre 7 місяців тому

    Haven't played this game but right now the bit that seems the most challenging to me is the cactus. Since you can interact with a tile on each side it seems you could reasonably be moving 2 or 3 cacti at a time instead of just one, which would be helpful when there are a few big cacti in the bottom left. Probably not a huge time save though, and there's a tradeoff with the cost of moving to check for similarly sized cacti nearby. Seems like one of those intractable optimization problems. With the maze you get a similar kind of problem where you have to decide whether to trust previously collected information and potentially miss out on a shortcut that was created by moving the treasure against the cost of checking every wall again (I assume this has a cost?).

    • @zapakh6240
      @zapakh6240 7 місяців тому

      I had some luck at Cactus by planting two at a time and kind of moving them together. There's definitely some room for improvement there. In the Maze, the algorithm shown here doesn't even try to remember where the walls are. You can make a better algorithm if you do. Checking a wall is cheap if the wall is still there, but expensive if not. Since the expensive cost for each wall is only paid once, I've gotten good results by checking every wall opportunistically, whenever I happen to be next to one.

    • @danielrhouck
      @danielrhouck 7 місяців тому

      @@zapakh6240 Oh, cool, I thought a `move()` call was 200 even if it failed, that makes things nicer.

    • @magefreak9356
      @magefreak9356 7 місяців тому

      @@danielrhouck I believe the cost of checking a wall and not moving is a cost of 1 while moving is 200

    • @josephvictory9536
      @josephvictory9536 2 місяці тому

      ​@@zapakh6240this was my solution to maze as well. For cactus. I can see an ideal function. It has two parts. Initial pass where it opportunistically sorts any pairs memorizing each cactus position and size. Then run an algorithm that finds the minimum number of switches to meet sort condition for that configuration. Since it's on data via a helper fn, should be cheap. Then actually do it. This should technically be optimal. Hard part would be the helper fn. It wouldn't just need to sort rows. But consider switches across rows to tuly minimize steps. I can see a way to do it. If you take the sorted state and the initial state as comparisons. You can keep a list of bad matches between and graph positions by size of cactus. Reduce the list by turning the whole problem into graph traversal. This can be done with dictionaries or array of arrays since size is int. This should be fastest algorithm.

  • @thomasvercammen6128
    @thomasvercammen6128 7 місяців тому

    did you make an algoritme to get the autobuy at the right moment or did you hand right every moment?

    • @zapakh6240
      @zapakh6240 7 місяців тому

      The overall sequence is hand-written, but the code moves on to the next segment whenever it has enough resources for whatever things it's supposed to be unlocking. So it's not "Do this so-many times and then buy Trees", but "Do this until you can afford Trees, and then buy Trees".

  • @twixerclawford
    @twixerclawford 7 місяців тому

    Literally never heard of this game, this video just popped up in my feed. I watched the whole video and was enthralled the whole time. I absolutely love the concept of this game and will probably pick it up sometime soon!

    • @zapakh6240
      @zapakh6240 7 місяців тому

      If you do, consider checking out the Discord. The community has been very active and helpful!

  • @getoffmeow
    @getoffmeow 8 місяців тому

    I cant believe I watched this without subtitles, lol

    • @rshtg2019
      @rshtg2019 7 місяців тому

      Omfg aaaaaa

    • @RoyLGamer
      @RoyLGamer 6 місяців тому

      Just did the same thing and I even saw this comment lol

    • @blacky7801
      @blacky7801 6 місяців тому

      very important comment here

    • @ClumsyCars
      @ClumsyCars 5 місяців тому

      I'm glad i was only a few minutes in before i read your comment.

    • @sweburner
      @sweburner 5 місяців тому

      Goddammit! 😂

  • @SheepFreak2
    @SheepFreak2 8 місяців тому

    29:20 how did you unlock dinos and buy 700 eggs with less than 2000 cactus?

    • @zapakh6240
      @zapakh6240 8 місяців тому

      There have been rebalancing changes since the video. Dino cost is higher now, but also cactus yield is multiplied by world size. In the video, I'm getting 192 Cactus per field, but today it would be 1536. It works out to require about the same number of Cactus passes.

  • @alanschlieper
    @alanschlieper 8 місяців тому

    Can you please share the code you used to do the hedge maze. I just cannot figure this out.

    • @robinoosterik6000
      @robinoosterik6000 8 місяців тому

      I can help you out, but the new mazes have walls that are not connected to the other parts of the maze and that makes it 10x more difficult

    • @robinoosterik6000
      @robinoosterik6000 8 місяців тому

      Ah these mazes also have that

    • @magefreak9356
      @magefreak9356 8 місяців тому

      Try following the left hand rule - keep your left hand always on a wall. If you are able to turn left, do so. If you can't go left, go straight. If you can't go straight, turn right. Notice how I didn't say go West or East. "Turning left" depends on your previous direction. This description is if you always reset a maze so all of the walls are intact. Once the walls start to disappear, you'll need a different method.

    • @zapakh6240
      @zapakh6240 8 місяців тому

      I added a link to the description to get you started.

    • @robinoosterik6000
      @robinoosterik6000 8 місяців тому

      @@magefreak9356 jup had the same problems, but i think i found a decent solution where when it can't find the treasure after a certain amount of time it resets the maze. When it finds the treasure, measure it so you know the coordinates and then do an astar algorithm to now find every single treassure after that.

  • @LosashExote
    @LosashExote 8 місяців тому

    I doubt you have less than 200 hours spent on this game? I quit it as soon as I understood how deep you have to go with testing strats and writing code to be able to compete at that leaderboard. Crazy to see that at the time of recording 1.5 players actually cared about setting a good time, looking at the scores...

    • @zapakh6240
      @zapakh6240 8 місяців тому

      I have 200 hours now, but at the time it was more like 70.

  • @DerSolinski
    @DerSolinski 8 місяців тому

    Wait, you only need the 2k bones? ...RTFM

    • @ingiford175
      @ingiford175 8 місяців тому

      Just re-read it also. Yep, you only need to buy leaderboard and then exit out with the same command to start and your done.

  • @MrBlobfisch
    @MrBlobfisch 8 місяців тому

    Damn your maze strat is crazy good. i didnt know they worked like that, but that looks very hard to code compared to my follow the left wall algo xD

    • @Alexander.Kravchenko
      @Alexander.Kravchenko 7 місяців тому

      But it looks exactly like a following the left wall

    • @rkelviin
      @rkelviin 7 місяців тому

      @@Alexander.Kravchenko each time he reset the maze, a wall disappear, creating loops. this kills the left wall algo

    • @Nichtdu-rt4ih
      @Nichtdu-rt4ih 5 місяців тому

      You can also do A* meet in the middle which is way faster than this algorithm

    • @MrBlobfisch
      @MrBlobfisch 5 місяців тому

      @@Nichtdu-rt4ih nah A* isnt very good, and making it meet in the middle doesnt help. Meet in the middle BFS is much better but also needs an additional high depth algorithm, to make the drone move straight to the treasure, to actually get good times

    • @josephvictory9536
      @josephvictory9536 2 місяці тому

      ​@MrBlobfisch Since comp time is different to event time. I'm wondering if you can't just map out all the walls, and assign moves to coordinates in a hashmap through exploration via left wall following a specific algorithm. Once you have the possible moves, run a bfs. Should always take shortest path. I don't know how the game checks for walls in the maze. But if it uses a move command rejection then this can't be done sexily. But if it's a simple bool check without movement. You can track walls such that as you move you check and update walls freely. This should almost always beeline towards treasure. I'm making assumptions though. If every "cycle" is a move then this is expensive and a left wall algorithm with backtracking is actually better.

  • @luisdimensity
    @luisdimensity 8 місяців тому

    This was so satisfying to watch. I have no clue why you opted to clearing everything out every now and then during the pumpkin section. Is that so that the code doesn't break?

    • @zapakh6240
      @zapakh6240 8 місяців тому

      When you harvest a pumpkin, it harvests the entire pumpkin. If your whole field is one big pumpkin, the whole thing gets cleared. It's a lot of pumpkin! I sometimes deliberately reset during Sunflower (15:10) because long Sunflower sections tend to get inefficient as you're repeatedly waiting for the newest plant to grow. Most of those resets ended up being removed because I opted for multiple shorter Sunflower segments instead.

    • @luisdimensity
      @luisdimensity 8 місяців тому

      @zapakh6240 That's so cool to come up with. Well done!

  • @GeneralHeavy
    @GeneralHeavy 10 місяців тому

    It was abuse that Minnie broke the goat's tail

  • @klembokable
    @klembokable 10 місяців тому

    can you post your code?

    • @zapakh6240
      @zapakh6240 10 місяців тому

      Maybe someday, when it's no longer competitive

    • @landenheine7645
      @landenheine7645 8 місяців тому

      @@zapakh6240 I'm struggling with the cacti, could you help with some sort of algorithm for them

    • @theblackytdoyle5049
      @theblackytdoyle5049 8 місяців тому

      @@zapakh6240 maybe now is the day

  • @MontyMoleLoreMaster
    @MontyMoleLoreMaster Рік тому

    I guess the whistle being kicked counted as animal abuse.

  • @Nekotaku_TV2
    @Nekotaku_TV2 Рік тому

    You missed him throwing the bucket on the parrot. But I'm torn about the teeth play since he was happy afterwards. I made the reverse of this, with only animal cruelty... and I linked to this video.

  • @teddq7210
    @teddq7210 3 роки тому

    Hey zapakh