AI vs a clicker game, how hard could it be?? yo, im back i forget what im supposed to write here. Twitter: / code_bullet Patreon: / codebullet Discord: / discord Art created by @Dachi.art / dachi.art
@@grex2595 no, its more like Insted of using perfectly made, easy to use by the software code to fix the problem, he just throws thrown together, pain to use by the software code to fix the problem. with the software being nature, and using it meaning biodegrading it.
@@underrated1524 Yeah, I remember. He single handedly severly shortened our time of being the dominant species that episode. I think this one extended it back a bit XD.
13:37 You can buy multiple of them and they click exponentially faster to the point of bypassing the game's own click speed limit lol. Btw the last hero is unlocked at around zone 1.6 million :)
To be fair, the most enjoying part is where the genious forgets the "off" switch... kinda reminds me of all thos wonderful silly stories of mad robots. :)
"Why work smarter when you can work harder" This is, in essence, the fundamental core of computer programming. Computers work far harder than we do to solve a problem, typically.
@@unknowngod8221 Does not mean that you are faster you just created a more "efficient way" of calculating stuff for you if humans were better than a computer at doing the stuff we use it for then why even bother inventing one?
Devs: "Here, we'll add a special money monster that has so many possible configurations that it'll be impossible for a bot to find and click it!" Code Bullet: "Hehe, Brute force go brrrr"
@@ChadKakashibrute force -ception. you go into an image editor and manually make sprites for every single possible configuration of the clicky thing and tell the ai to look for all 10000 or so sprites every few minutes. But holy fuck imagine how fucking painful that would be to even attempt
@@ChadKakashi Yes it's possible. While I was doing similar stuff I gone with OpenCV, just to make more complex logics. OpenCV has "pattern matching" algorithms which allows you to find an object in the image. It results with coordinates and value of match -> bigger value, the more likely it's a match. In general it works, but kind of resource consuming - it will try to match an entire image (1920 x 1080) so it should be scaled down to lesser resolution and it's better to make image grayscale. But running it once per 5-30 seconds is fine, even when running it without computations on GPU. In most cases transparency will end up with lower "match" value, but it still will be high enough, relative to other parts of image. In general, writing pattern matching bots is fun, and if you are interested in programming, give it a try. There are multiple ways to do different things: like in the video: you can use OCR (Optical Character Recognition, like tesseract, to parse text in the image to actual text), pattern matching (trying to find some images in the image), pixel checking (checking just pixel/pixels and their colors) and LOTS of preprocessing (like normalizing the image from isometry / converting to grayscale / downscaling the image / croping the image / running other algorithms like thresholds and edge detection, etc.) But at the same time, direct memory reading is much more flexible and simple way to implement the bots, so its easier to create a more complex behaviors with it.
Perhaps somewhat ironically, given the subject, I think this may be my favorite Code Bullet video. Something about brute forcing a clicker game designed to go on forever and keep bleeding money away pleases me greatly.
I’m in love with the combination of fantastic insight as well as genuinely funny humor. I was laughing out loud while learning more intricate programming tidbits (long-time gamer who understands programming but doesn’t know how to in full). Instant subscribe!
@@kilowatt2747 afaik, with AIs either you code a panic button, you force shut the program on the IDE itself (which is usually impossible when the AI becomes sentient and takes over the PC) or just shut the PC by force. The problem with alt+F4 is that it requires the program to be running on the forefront, (you need it to be open as the main task) whereas AIs seem to be running on the background. But I could be BSing as well. Never coded an AI in my life so fuck do I know.
The way he solves issues by just ridiculous brute force is too similar to how AIs actually approach problems , I don't think he is faking the being a computer thing
I love how CB turned an idle game you can minimise and leave in the background into an idle game you have to have open and can't do anything else while you do so. Fucking legend love this guy
Finally, the king has returned. Is nice to see that so many people have stuck around. literally, one of the only RU-vidrs I can patently wait 10 years for (please don't actually make us wait that long for your next video)
What? With other RU-vidrs, do you wait for about a year and then proactively go "I'm just so tired of waiting for a new JonTron video, I'm gonna go unsubscribe."?
With the pyautogui package you can scan the screen and compare it to an image to find the location of objects on the screen. I’ve used it and it’s really good for projects like this.
He’s literally spent a year turning himself into a tobey Maguire dance lookalike...very good way to spend it Edit: there’s a second dance move? My mans got skills
I played a few clicker games like this before... At some point they went into "E+10" and so on until it overflowed to 1 and went infinite. Yeah, from e+99 to literal infinity represented by a "1"
wait, was it 1e+10 or 1e+99? I wonder what went wrong. I think that counters in most games would probably suddenly stop increasing as the low precision causes everything added to the float to underflow without the sum actually increasing. The large number might have caused rounding errors large enough to break something else, though. Weird that that led to the counter showing 1, maybe the math for formatting the displayed number just broke. (Either way, don't use single-precision floats for your clicker games, kids.)
@@asj3419 basically, it went from 1e+10 to 1e+11 and so on for each additional digit until 1e+99. another digit later and it breaks, overflowing to 1 and basically acting like it's infinite.
@@harrymansfield6189 probably cause it can handle a lot more on the integer limits a lot of games recently seem to run off at least a 64-bit limit. some can run past that
Plot twist: there was no autoclicker. Codebullet never bothered and just played the game for all of 2021. This is all one massive collection of timelapses within one timelapse of how he spent his year.
I have a project suggestion: a Lights Out AI The game is relatively simple, only consisting of a grid of squares that are either "on" or "off" where you can click one and it toggles that one + all adjacent ones, and the goal is to turn all of them to the "off" state
I love how you ran into the same exact bug I did when I was REALLY into Clicker Heroes with the omega lag that keeps clicking for 10 minutes after you stop
Code didn't upload for the longest period ever and comes back with a video of a clicker game, yet 1 million people are up for it in 1 day, I guess we love him
He is gonna do it again but only post the one video and just say the best of code bullet 2022, then he just posts this video, and I think the entirety of the best of 2022 will be this video.
I call clicker games "game crack" and I had no idea bright people played them. I'm glad at least one did and was inspired to create this for it. Now, after watching this video, I realize comparing clicker games to crack cocaine is a fair comparison.
If I had a nickel every time one of Code Bullet's fast clicking AIs became sentient forcing him to restart his computer, I'd have two nickels, which isn't a lot, but it's weird that it happened twice.
HE'S BACK AND GOD DAMN HE HAS MOVES he completed his training arc in the year he was away literally progressed the plot reached another power level great to see you again man
I would be interested in seeing a coding tutorial because that would be like the most funny thing watching him try and explain wtf you're supposed to do
It's more of a planning for the extreme so there is no way the game could break for vanilla players with a mixture of built in functionality with what ever engine/programming language is being used.
I was expecting a break from the hectic weekly uploads from last year but no, he is too good and decides to make another video for us. What a legend. But seriously it’s great watching you again. Keep up the good work
"The AI is more artificial then intelligent" It's more of a brute-force hardcoded "click everything" method than actual decisions based on previous actions or learning, still an entertaining video though
to be fair all it has to do to be artificial intelligence is be artificial and complete a task in a vaguely intelligent manner for idle games, "vaguely intelligent manner" is clicking really fucking fast and that's it lol the AI for most games like checkers and chess before the AI boom were basically just mountains of if-then statements anyway and they still counted as AI
"why work smarter when we can work HARDER?" "If we can't make it find the fish and click it, then WE MAKE IT CLICK EVERYWHERE" oh how I missed you CB, See ya next year!!!!!
The *incredible power* of the automated system he made still being unable to properly *dent* this damn game really emphasizes how much you *shouldn't play it with your mere human capabilities.* Yikes.
He probably wasn't doing it many favors having it only focus on the highest available hero. Probably would've gotten a lot farther telling it to upgrade all available heros all the time. buuut idle clicker games do be like that generally. I wonder if a single soul exists that's actually "beaten" JKM3 without cramming hundreds of dollars into it.
@@PollexTheCat I feel this is part of the trap, though. It's trying to lure you into finding the "best" way to approach a task that's tedious to the point of mathematical absurdity.
@@johnalogue9832 It can be fun, optimizing a strategy and seeing it go brrr. But if you enjoy that kind of thing, you might as well apply the skills to other problems that aren't as tedious (and maybe even useful).
@@cheshire1 playing games like these made me go crazy into spending hours just trying to automate tasks when I can just do it myself. I’m no programmer so I just use macros.
The true purpose of these games is to learn how to find, monitor, and edit specific memory addresses in running programs so you can shamelessly cheat them into oblivion and never think about playing them again. A sad waste of time converted into a fun new skill
My man..... I dont care how long your videos take. You are genuinely funny and amazing to watch! I can't stop laughing when I see the ai that is trying to read!
I should've savored it... but instead I watched the whole episode minutes after it came out and now I'm right back to waiting another year for his next upload...
Amazing I love code bullet I am so glad to see him posting again I just found out that you have been reposting today and I am so happy because you are so funny
Jo my man this is the best video i seen on youtube all day keep it up you make great videos i mean there is so much efford in the video my god this is great 👍🏻
@Claptrap body language is very often used in characters like that such as Doom 2016 Samuel Hayden, especially in the endgame cutscene he emotes more thorough movement rather than facial emotions. It's an interesting thing to see really
@@Finn_the_Cat The first time this struck me was the flying carpet from _Aladdin_ (the 1992 version at least). No voice, no face, but it could still emote through posture and gestures.
Quick tip: Task Manager can be opened using Ctrl + Shift + Esc, and having it focused seems to disable automated clicks. I don't know how or why it works, but it's useful for developing tools that automate the mouse.
This guy has definitely negatively impacted my coding. Every time I hit a problem that requires intelligence I go “wait I have a stupid work around that will barely work sometimes but takes less effort” I take that opportunity 10/10 times
My man is living the dream that I always wanted when I was a kid -- that is to play clicker games for a living and only have to show up to work once a year
"Finishing the game" ... heh. Even with code my friend, this is a task that takes a considerable amount of time, patience, and strategy. I commend you on your effort, but with years under my belt I have only had the patience to get to a max stage of 249504. However, Im glad seeing that you are back, and I look forward to the future enjoyable monstrosities you create.
@@N3name Nah, I realize it's an option, but where is the fun in that? If I click, I do so with honor and pride. (I don't think I should be prideful in my over 1,300 hours of clicker heroes and about 350 in Cookie Clicker, but gosh darn it I shall be)
You should make an AI for the game toribash. You click different muscle groups on your character to fight against another person doing the same thing (I’m explaining it horribly, but that’s the gist). If you created an AI that slowly learned how to fight in the game and then pitted it against another AI controlling the other player, you could potentially create an amazing looking fight between two perfect fighting masters