I really appreciate this comment. Honestly though if it gets more people into it I can take a little heat. No brain no pain haha... Thanks for watching and commenting.
I actually thought this was just a well made program too, i knew that an Ai is something that needs training such as machine learning and involving generations, so i went to the comment to find an explanation since i'm just a begginner in the programming world, so could you tell me what makes this an Ai?
@@FireDotExe Of course. Although note I"m not claiming to be a leading expert in the field so take this with a grain of salt. AI is simply the simulation of human intelligence in machines. So in this program... playing the game using simulated mouse inputs! We did this using computer vision and rules. Machine learning on the other hand you are using more of a black-box approach. So you're not telling the computer how to do the job it's learning how to do it by itself.
The first R in "RETRY" also had a circle, the second one however only a line. I think you'd include a minimum distance two objects must have to be considered different objects. You can also see early on how it didn't detect an edge up to the point where it touched the ball but actually had a gap there.
Still wondering, the slope of the lines at the boundaries should be just around 0.5 and -0.5 right? I think you can use edge detection and filter all lines everything that has different slope than that.
This is a VERY smart comment. A few people have mentioned the idea and it crossed my mind very late in making this video. I decided I didn't want to invest the time to try it but I think it would work.
I think that on top of this you could detect the intersection point between the left and right lines (if you just made the lines go off to infinity before drawing), and with a static distance from that intersection point determine the ending point of the line. This would in theory fix the opencv "interference" behavior and draw more consistent lines. It'd also make the damn thing perform perfectly
Yeah, I was surprised when he used a hough-transform, as something similar to Sobel with different kernels (or straight up, what was its name, canny?) should have sufficed quite well (and not resulted in infinite lines). Would be edges and not lines, but it seemed like he used the lines for edge-detection anyway (just painted "hazards" [with binary directions] for the algorithm to trigger direction changes with).
Subbed - I'm a dev (work on boring business stuff) but always been curious about vision AI. I think your videos are well explained. Keep it up, I want to see you grow, you deserve it.
I play a game called "Cat Jump" and I wonder if this is how people get those insanely high scores... I'm still in the top 1% with my own skills so I'm not too mad if they are cheating xP
Probably the easiest way is to simply remove all vertical lines, all lines that are connected to the underside of the vertical lines. After cleaning the lines, you can also remove the gaps in the edges, I think this will also help. As the next steps, you can also check that there is a full path from the current point to the end of the screen. And clean everything between the two edges ( artifacts from gems for example ).
Disappointing that i got recommended this video after 6 months, very interesting to see this AI. Although im not a programmer I've always been interested in programming, modeling, and coding a game. Very cool video.
anything that makes decisions to solve a problem is intelligence, and if it is created by humans we call it artificial your phone has several ai systems, even route planning is AI the edges of the definition of ai is fuzzy, but for example the game itself is not ai, although if there are enemies that try to hurt you, or even if the track generator uses tiles you die on more often later in the level and less often earlier, that is ai
@@Maric18 as you said the term AI is fuzzy and what we perceive as AI also changes with time. It's similar to technology. Some time ago a pair of scissors could be considered a technology but today we have a much different idea of what technology is.
muy buen video explicando detalles importantes... lastimosamente mi ingles es malo pero el traductor algo ayuda... tengo poco tiempo incursionando en este mundo de la IA y tus videos ayudan mucho
Can you make an AI that plays Geometry Dash and learns how to get farther after each death? I think it might be really interesting to see the computer's solution to each level.
Seeing people who don’t understand programming argue with you over what an AI is feels bad man, feels like asking any question on stack overflow. Nice video
That game’s still going I think, god it had such bangers, the design of each stage only got better as you went along! That Easter egg in the maze was heartwarming too
Hi, I'm a bit late to the party but I believe there is a version of this game where going left/right is dictated (followed) by changes in music, do you think making an AI/script that plays the game (or any rhythm based game) in a similar fashion is possible? And do you think it would be harder or easier? Audio is easier to process than video for sure but it has its challenges. Just a thought :P
@@ClarityCoders Yeah of course! Search "Dancing Line" on Google play. This got me thinking about the connection between the visual representation of music and the AI's ability to "see" things.
Probably 8 hours spread over a few weeks? Basically it was really simple to create the rules and automate it to play repeatedly but dialing in parameters is tough. So I would change some things then let it run for 100 games then change some things.
Using opencv to find the ball is nice, but you could also search for black pixels on a set height (presumably on half height). That would be way faster I suppose
Hello sir I try this code to run in my computer with same emulator and game but it is showing following error: Traceback (most recent call last): File "D:\photo\ZigZag-master\HighScore.py", line 147, in x = x + 1 NameError: name 'x' is not defined
If it doesn't find an x value for the circle this area will pop up. Basically it didn't find the ball on the screen. Make sure your screen grab is covering your emulator area it won't be the same as mine. scr = sct.grab({ 'left': 0, 'top': 390, 'width': 440, 'height': 50 })
This is amazing! One quick question: Can you please share the position & size (in pixels) of your ldplayer? I'd like to adjust my ldplayer accordingly so that I don't have to tune parameters such as those for sct.grab(). Thanks!
hey, i made a game called Ready, Set, Roll, for android, its also about a ball, but you need to collect coins and crystals to finish a level, can you beat it with AI?
i think the game called "Rolling Sky" (which is a game commonly played in schools) would be interesting although i dont think it would be very easy since almost every level has different textures especially the event levels and there are many objects that can interact with each other. (You could probably brute force it since the levels are always the same but that would be boring)
4:00 Haha, you said "balls". All dumb humor aside, this is a really interesting video! I hope this channel gets bigger, you definitely don't have the number of subscribers you deserve, my dude :)
Loved the video, although I am a bit curious if this could lead to any legal issues. You can probably pay for the diamonds, so is this like a cheat to get around a pay wall that could lead to a lawsuit?
nice video - well done! :) i am new to the topic and wondered if it would be sufficient to check for the direction of the lines plus a min length to get the relevant lines. this should eliminate the diamond lines instead of masking them out. what do u think?
That's a really good idea someone else mentioned it as well. Towards the end of the project I thought about finding all lines and only keep ones at the angle of the track. It was late and I was over it at that point so I never tried.
This is going to destroy most if not all FPS games out there. Being able to detect enemies via screen capture and then automatically inputting the correct keys to shoot targets is going to be deadly accurate and a completly undetectable way to cheat.
It's not there yet but it's getting easier for non programmers to do as well. It will be something that is an issue in gaming in 2 - 5 years. Not that it isn't already but it will be so wide spread.
LoL no. A good anticheat can detect whether you're cheating or not based of your aim. A human aim is bit shaky makes errors, a robotic aim is very precise and can be pretty easily detected
I don’t think this is really AI tho I might just be dumb but the computer didn’t learn anything on itself he just coded all of the things in himself please correct me if I’m wrong
It's not machine learning but by most definitions it's AI. Yours might be different though and that's fine. AI is giving a machine the ability to perform a task like a human in this case inputting into a human gaming interface. I do have some videos on reinforcement learning as well which is more the AI your thinking (machine learning). Thanks for watching and commenting I appreciate it.
All Games is oriented to TAP TAP TAP or keyboard and mouse click click. Basically easiest way to make bots. Need normal games where you need to think...
I get what your saying but actually Zig Zag was one of the hardest way harder than Fall Guys. You need to have such a quick script and react to the changing colors of the environment. Thanks for watching/commenting I really appreciate it.
Imagine the old days, where you simply search with a thrid party software for the score value, increase it to something incredible high and die after the first sec. But you got all the ingame money, the highest possible score and be done with the game. in 5 min.
Hey man, love ur vids. I was wondering if it would be possible to create an AI that can actually read captcha codes (dw its not for anything bad, just a curious mind). Ive seen a couple bots do it and wondered if its possible so went to try and see what they used but didnt really get that far. So could u make a vid showing us how to beat a captcha game with an AI that can read distorted letters from an image? much thanks man, great work on ur vids.
Probably boat loads of tweaking and huge training sets. But it is definetly possible and the programs became better at doing these text based captchas than humans so we switched to Googles weird meta data and image recogintion ones. And im 100% convinded that Google uses those "select all X" pictues as a pretense to build image recognition sets. They can do it just fine without us having to cllick anything
It's just a thought I'm curious of why you didn't say to avoid the white and stay on the colored path would it be a lot harder to tell it to do that instead of doing it what you just did. For instance as I'm trying to say is you program it to avoid the white void equals death type of thing so it would be focused on staying but you did it in a reverse way
I really want to automate p2w 3D phone games, to perform basic actions such as "gathering resources", "auto attack/defend/whatever" because of the mind-numbing actions you have to perform and the fact that it's literally P2W. It's hard to socialise with people ingame with that sort of system. Would it be possible with detecting the pixels for instance resource piles (if they are always the same value and shape), vehicles for mining (for instance number of sent trucks, ships, whatever), name tags(PVE, maybe PVP if it's online, depending on color which does not change)?
or you could just play a game that doesnt require an ai to play it for you? you want to "play" a game without actually playing it because the game sucks that bad...
@@KingofEvil this video is achieving an entirely different goal for a completely different purpose. Its almost 0% comparable to my comment. In this video there was never any desire to play the game the intention was strictly to make an ai. The commenter here has the desire to play a game but doesnt actually wnt to play it. One example is to work to create an ai the other is to use an ai to cheat in a game for him out of laziness. I could try to clarify further but im already being pedantic.
@godw1ll99 where exactly do you see the comment saying he wants to play the game? All he said was that he wanted to automate certain actions in popular games which are in the „p2w“ genre which might just be a experiment to see how a ai compares to a p2w player for all you know. I do not see a reason for you to lecture someone when you do not even know their intentions correctly. Absolutely pathetic.
@@KingofEvil my comment was addressing what he said specifically meanwhile you fabricate hypotheticals in order to argue with me and you call me pathetic? he made clear as day what he was wanting to achieve with the first half of his comment. he wants to automate the core functions of a game leaving nothing left but the false satisfaction of having achieved something in the game which makes the entire endeavor meaningless. its no different than people that bot a game like rune scape. the insanity of having the desire to achieve something in a game but not wanting to actually play the game is whats pathetic. "to perform basic actions such as "gathering resources", 'auto attack/defend/whatever' because of the mind-numbing actions you have to perform and the fact that it's literally P2W. It's hard to socialise with people ingame with that sort of system." is the most blatant example that he fully intends on "playing" the game with a side of "automation" to do the grinding for him.
Wouldnt it ve possible to have such a record deleted from the leaderboard? Or call the 'account' something obvious 'like AI machinetest NOT human'. Just so a basicly cheated record doesnt persist or is at least given hints to its origin
Very good point and question. I actually typically reach out to develops and let them know so they can remove it. I'm also usually using fairly extinct games that probably no one will notice.
I remember that game. I played it at my free time when I did not have enough time for something bigger like on the pc. I actually reached the 1000 point mark and played until I got all balls and stopped haha.
@@ClarityCoders Its super repetitive in a bad way, like wait until the turn and just tap once or you lose and when multiple turns appear you can easily lose track of how many times you have to tap. I just like everything that can be challenging and try it until I win it or at least know how to play it well. The code was more interesting as always compared to me just mastering this game hahaha.
Awesome video and about the comments debate, this is an AI, a basic one ,but an AI nonetheless Machine Learning or Deep Learning are just "smarter" types of AI, you can think of them as ppl with higher IQ that can learn complicated task or things on their own with out guidance, so you dont have to "teach" (Code) the AI what to do, they are smart enough to learn on their own.
or you could just do the big where you press on play again and the edge of the screen and you can literally go outside the map and just spam for points
Ooo can u do an idle fishing game where you drag ur cursor around the screen to catch fish? Id love to see an ai just immediately catch everytging as soon as it pops up
cant you improve it with some prediction of the lines? i mean they are always the same angle and lenght (the longer are the one lenght times two or times three)
I'm amazed people watch my videos let alone comment on them. I truly appreciate every one of them even the ones making fun of my unibrow😂. Thanks for the comment and the view!
@@oPers0n If you Google it, what comes up is "Artificial intelligence (AI) refers to the simulation of human intelligence in machines that are programmed to think like humans and mimic their actions." I'd say this would be an AI.
Would it simplify things if you searched for hue lines in a specified angle using a simple slope formula to store the initial slope values of the sides of the track? The angle of the path doesn’t seem to change. Furthermore could you specify that it only look for hue lines in the specified angle previously stored. You could further perfect it by storing the width of the hue line just as the angles change on the track. This point would be (what I assume) is the width of the track. Using that value divided by 2 to set your pixel distance out from hue lines and search for hue lines a set distance out past that. I’m not really a programmer and don’t have knowledge of this program specifically just asking based off what I assume is possible. I think this could reduce computational load as well.
i don't know if it your code is using GPU or not but if you change the saturation on gpu drivers wouldnt affect the code? if i ramp down the saturation down the screen turns black and white... wouldn't that help instead of detecting edges and drew lines instead? black, white and gray is easier to program... maybe not i don't know ...
What are the limitations of ai other than processing speed if you optimise the ai to play a 2d fighting game could the ai do it if it had the processing speed
Great question. Even with processing full image data in some games I was able to achieve better than human reaction times. Although as someone mentioned there are faster language choices out there if speed is an issue.
Determine these parameters is pain, but unfortunately RL approach is seems to impossible because game itself is too slow to generate sufficient number of train examples for purely CNN model.
The amount of people confused by the definition of ai in the comments and “calling him out” really makes me feel bad for the video creator
It's annoying when people don't read up on something at least a little before making stupid comments
I really appreciate this comment. Honestly though if it gets more people into it I can take a little heat. No brain no pain haha...
Thanks for watching and commenting.
Thank you!
I actually thought this was just a well made program too, i knew that an Ai is something that needs training such as machine learning and involving generations, so i went to the comment to find an explanation since i'm just a begginner in the programming world, so could you tell me what makes this an Ai?
@@FireDotExe Of course. Although note I"m not claiming to be a leading expert in the field so take this with a grain of salt. AI is simply the simulation of human intelligence in machines. So in this program... playing the game using simulated mouse inputs! We did this using computer vision and rules.
Machine learning on the other hand you are using more of a black-box approach. So you're not telling the computer how to do the job it's learning how to do it by itself.
10:57 69421 gems
We were this close to perfection 👌
I have never been more disappointed with myself. I did however have to move on and code again.
😞😞😞😞
Top 10 saddest anime moments 😢
train the ai to get 69420 points and pause in all games
no way. i've been playing this game for years and have wondered how an ai would do in it. thanks for the great vid!
Great minds. Thanks for watching and commenting.
Why have you played zigzag for years?
yes i too always play games and wonder how ai would do in it !!!!!!!!!!!!!!!!!!!!!!!!
Him: “turn off internet to prevent ads!”
The fu$&ing game a few seconds later: **play this tank game**
Changed my mind don't turn off internet keep watching my videos. Thanks for view and comment 😉.
Yea it like stores ads for a bit
Apps like this download 2-3 videos to play if your Internet is off
Also some say that you need to the internet in order to play but its only for the ads
Guy you may be, but them cheeks gonna feel what it means to get balls to the walls.
Thanks youtube recomendations, underated channel
Honestly comment means a lot thanks so much.
This is an underrated channel, it’s nice to see small channels that also produce quality content
Thanks that really means a lot to me! Thank you for watching and commenting.
11:02 it recognizes the "C" on score as a circle but not the "O" xD
Darn AI.
The first R in "RETRY" also had a circle, the second one however only a line.
I think you'd include a minimum distance two objects must have to be considered different objects. You can also see early on how it didn't detect an edge up to the point where it touched the ball but actually had a gap there.
Thanks RUclips recom, i really liked the vid and the fact that i see so many answered comments, Shows that you care for community.
Subbed
I honestly really appreciate every view and sub. Thanks for commenting and subscribing.
Still wondering, the slope of the lines at the boundaries should be just around 0.5 and -0.5 right? I think you can use edge detection and filter all lines everything that has different slope than that.
This is a VERY smart comment. A few people have mentioned the idea and it crossed my mind very late in making this video. I decided I didn't want to invest the time to try it but I think it would work.
I think that on top of this you could detect the intersection point between the left and right lines (if you just made the lines go off to infinity before drawing), and with a static distance from that intersection point determine the ending point of the line. This would in theory fix the opencv "interference" behavior and draw more consistent lines. It'd also make the damn thing perform perfectly
Yeah, I was surprised when he used a hough-transform, as something similar to Sobel with different kernels (or straight up, what was its name, canny?) should have sufficed quite well (and not resulted in infinite lines). Would be edges and not lines, but it seemed like he used the lines for edge-detection anyway (just painted "hazards" [with binary directions] for the algorithm to trigger direction changes with).
It's a pretty good concept, would be interesting to see more visual-based AIs...
I'm on it. Thanks for watching and commenting.
Subbed - I'm a dev (work on boring business stuff) but always been curious about vision AI. I think your videos are well explained. Keep it up, I want to see you grow, you deserve it.
Comment really means a lot to me. Thanks for taking the time to watch and leave me a message.
I play a game called "Cat Jump" and I wonder if this is how people get those insanely high scores... I'm still in the top 1% with my own skills so I'm not too mad if they are cheating xP
I do feel bad for those people part of the reason why I picked stupid not so popular games.
@@ClarityCoders I'd say the people who are able to bot those games applied their own skill to the game.
it might be interessting to only keep the lines with a specific angle since each wall are parallel
Honestly this crossed my mind very late in this project. I think it's a good idea! Thanks for watching / commenting.
Probably the easiest way is to simply remove all vertical lines, all lines that are connected to the underside of the vertical lines. After cleaning the lines, you can also remove the gaps in the edges, I think this will also help. As the next steps, you can also check that there is a full path from the current point to the end of the screen. And clean everything between the two edges ( artifacts from gems for example ).
Great video..for someone getting started with OpenCV this was very entertaining to watch. Subbed!
Thank my man! Really appreciate the sub.
Congrats man. the god of RUclips algorithm has chosen you.
Thank you RUclips overlords. Thanks for watching and commenting my man!
@@ClarityCoders no problem ^^
Listening to Rick rn
Disappointing that i got recommended this video after 6 months, very interesting to see this AI.
Although im not a programmer I've always been interested in programming, modeling, and coding a game.
Very cool video.
Thanks! I really appreciate the comment and view.
That's really impressive. I am not sure this is actually a form of AI though, more a well automated script, essentially.
By definition it's artifical intelligence though it's not machine learning. I would agree with your point though it's not learning anything.
AI does not require any form of learning.
1. AI
2. Machine Learning (a type of AI)
3. Deep Learning (a type of machine learning and AI)
anything that makes decisions to solve a problem is intelligence, and if it is created by humans we call it artificial
your phone has several ai systems, even route planning is AI
the edges of the definition of ai is fuzzy, but for example the game itself is not ai, although if there are enemies that try to hurt you, or even if the track generator uses tiles you die on more often later in the level and less often earlier, that is ai
@@Maric18 as you said the term AI is fuzzy and what we perceive as AI also changes with time. It's similar to technology. Some time ago a pair of scissors could be considered a technology but today we have a much different idea of what technology is.
muy buen video explicando detalles importantes... lastimosamente mi ingles es malo pero el traductor algo ayuda... tengo poco tiempo incursionando en este mundo de la IA y tus videos ayudan mucho
Hola, hablas español? Me dirías si pudiste hacer funcionar este proyecto?
Tengo que hacerlo para un juego casi igual
As a young dood i am rly interested in coding and tech im glad yt recommended me this yt channel ^w^
Thanks dood. Keep coding!
uwu
@@volttheprotogen1893 uwu
Can you make an AI that plays Geometry Dash and learns how to get farther after each death? I think it might be really interesting to see the computer's solution to each level.
something like sethbling's marIO would work for that i think
Yup probably need to go deep learning but it could be done. I'll put it on my list.
Instead of wait maybe a month to see it happen why do you try making it in about a year! Much faster
Really thankful for the youtube reccomendation for showing me this video
hey thanks for watching I appreciate it.
This app is so useful to find these values
I love playing around with it. Thanks for the comment.
Seeing people who don’t understand programming argue with you over what an AI is feels bad man, feels like asking any question on stack overflow. Nice video
Thanks! That's a spot on analogy haha.... Overall though I appreciate the comments and views even the ones complaining about my haircut 😂😂.
This is amazing man;-) Subbed!
Thanks for sub Emil means a lot.
I Do not understand it, but I can see the future value in it. Keep going.
Great video-Thank you
Awesome I will! Thanks for watching and commenting.
My personal score was 1700 in June 2021. I played it after a few years and instantly got that score. I guess I can’t be better than an AI being lol
You're certainly better than me.
Didnnt even know about the open cv module, might have start learning that, looks pretty useful
this bring back my memory about dancing line
That game’s still going I think, god it had such bangers, the design of each stage only got better as you went along!
That Easter egg in the maze was heartwarming too
@@explosivemonkey4596 ok but still can't play it because i using android
@@ductr2hn I pray for your loss.
@@explosivemonkey4596 they flooded it woth ads at some point it got unplayable for me
I'm not really good with the terms or really anything mentioned in the video but it's really interesting to see what an AI can do.
Absolutely awesome, coding is something way over my head and I love seeing stuff like this!
Thanks! Never to late to get involved start small and work your way up!
Video: turn off the internet to prevent ads!!
Me: okay
Video: stops
Whew thought I lost you there glad you got it back! haha
Hi, I'm a bit late to the party but I believe there is a version of this game where going left/right is dictated (followed) by changes in music, do you think making an AI/script that plays the game (or any rhythm based game) in a similar fashion is possible? And do you think it would be harder or easier? Audio is easier to process than video for sure but it has its challenges. Just a thought :P
I'd love to try that game! haha we could use the sound as input right?
@@ClarityCoders Yeah of course! Search "Dancing Line" on Google play. This got me thinking about the connection between the visual representation of music and the AI's ability to "see" things.
How long did it take you to build/test this? Hours? Weeks?
Probably 8 hours spread over a few weeks? Basically it was really simple to create the rules and automate it to play repeatedly but dialing in parameters is tough. So I would change some things then let it run for 100 games then change some things.
@@ClarityCoders The next step: use a genetic algorithm to look at the best parameters hahahahah
@@Diego-Garcia Then we would enter machine learning territory!
Using opencv to find the ball is nice, but you could also search for black pixels on a set height (presumably on half height). That would be way faster I suppose
There was a game where you jump a bird side to side avoiding spikes that I used to love. I'd love to see it done by ai.
flappy bird?
Hello sir I try this code to run in my computer with same emulator and game but it is showing following error:
Traceback (most recent call last):
File "D:\photo\ZigZag-master\HighScore.py", line 147, in
x = x + 1
NameError: name 'x' is not defined
If it doesn't find an x value for the circle this area will pop up. Basically it didn't find the ball on the screen. Make sure your screen grab is covering your emulator area it won't be the same as mine.
scr = sct.grab({
'left': 0,
'top': 390,
'width': 440,
'height': 50
})
This is amazing! One quick question: Can you please share the position & size (in pixels) of your ldplayer? I'd like to adjust my ldplayer accordingly so that I don't have to tune parameters such as those for sct.grab(). Thanks!
Dang I wish I had thought of that before posting it was on my old laptop. Next time I will post that as well.
my record on there is like 2000- i used to always play that game while listening to audiobooks. probably have logged a ton of hours
hey, i made a game called Ready, Set, Roll, for android, its also about a ball, but you need to collect coins and crystals to finish a level, can you beat it with AI?
Thank you for sharing, I like it. :D
I'm glad you like it. Should be plenty more coming soon.
i think the game called "Rolling Sky" (which is a game commonly played in schools) would be interesting although i dont think it would be very easy since almost every level has different textures especially the event levels and there are many objects that can interact with each other. (You could probably brute force it since the levels are always the same but that would be boring)
You could try and show us 😉
I'll check it out and put it on my list!
4:00 Haha, you said "balls".
All dumb humor aside, this is a really interesting video! I hope this channel gets bigger, you definitely don't have the number of subscribers you deserve, my dude :)
Thanks RUclips has been fun for me doing stupid projects. I'll stick around if a few people keep watching! Thanks for comment/view.
Discord is fun to hang out and ask doubts people
Thanks for watching and commenting!
@@ClarityCoders sure, y not?
Hey, jake, it's me vinu from discord, hope u r well
I'm very glad that you had enough thought to buy all of the balls. Thank you.
I'm all about the balls.
You could try to make an piano tiles ai. That is really simple but still funny to look at. I managed to get around 30 tiles/s with mine.
Flappy bird would be a cool one to automate. I don’t think it’s on the App Store anymore though
That's a very nice video. Was interesting to watch.
Thanks JKL that really means a lot. I appreciate you taking the time to comment.
I've always wanted to automate some mobile games, cool vid thanks!
It's a fun challenge for sure. Thanks for watching and commenting.
@@ClarityCoders I always comment on videos I want to see more of. Got to train that algorithm!
let me grab my "here before this channel gets 1m subs" chair
Hope you're right 😉. If not glad people are enjoying it! Thanks for watching and commenting.
Loved the video, although I am a bit curious if this could lead to any legal issues. You can probably pay for the diamonds, so is this like a cheat to get around a pay wall that could lead to a lawsuit?
You might break terms of service and get banned but nothing about it is illegal. Note I'm not a lawyer and this is not legal advice. 😉
Does anyone know what is the music name which is playing in 10:06 at this video? I really need the name of this song.
Fast and Run - Nico Staf. Thanks for watching and commenting!
nice video - well done! :) i am new to the topic and wondered if it would be sufficient to check for the direction of the lines plus a min length to get the relevant lines. this should eliminate the diamond lines instead of masking them out. what do u think?
That's a really good idea someone else mentioned it as well. Towards the end of the project I thought about finding all lines and only keep ones at the angle of the track. It was late and I was over it at that point so I never tried.
this is really Interasting
Great job
Thanks that means a lot. I got more cool stuff coming out soon!
@@ClarityCoders im exited for that
This is going to destroy most if not all FPS games out there. Being able to detect enemies via screen capture and then automatically inputting the correct keys to shoot targets is going to be deadly accurate and a completly undetectable way to cheat.
It's not there yet but it's getting easier for non programmers to do as well. It will be something that is an issue in gaming in 2 - 5 years. Not that it isn't already but it will be so wide spread.
LoL no. A good anticheat can detect whether you're cheating or not based of your aim. A human aim is bit shaky makes errors, a robotic aim is very precise and can be pretty easily detected
@@ShivamJha00 You would have to mimic pro-level accuracy. Basically intentionally making it shaky and a bit random.
I don’t think this is really AI tho I might just be dumb but the computer didn’t learn anything on itself he just coded all of the things in himself please correct me if I’m wrong
i think ai and computer learning are different, the ai still made desicions on itself, it just didnt learn new things
It's not machine learning but by most definitions it's AI. Yours might be different though and that's fine. AI is giving a machine the ability to perform a task like a human in this case inputting into a human gaming interface. I do have some videos on reinforcement learning as well which is more the AI your thinking (machine learning). Thanks for watching and commenting I appreciate it.
@@ClarityCoders thank you for the info I didn’t know this
This looks like a fun project Imma try it
All Games is oriented to TAP TAP TAP or keyboard and mouse click click. Basically easiest way to make bots. Need normal games where you need to think...
I get what your saying but actually Zig Zag was one of the hardest way harder than Fall Guys. You need to have such a quick script and react to the changing colors of the environment. Thanks for watching/commenting I really appreciate it.
Imagine the old days, where you simply search with a thrid party software for the score value, increase it to something incredible high and die after the first sec. But you got all the ingame money, the highest possible score and be done with the game. in 5 min.
Those were the days. Cheat engine baby.
How come the mask doesnt remove everything when the color of the world is pink too?
I adjusted the brightness so it didn't effect that world. Thanks for the view/comment!
Hey man, love ur vids. I was wondering if it would be possible to create an AI that can actually read captcha codes (dw its not for anything bad, just a curious mind). Ive seen a couple bots do it and wondered if its possible so went to try and see what they used but didnt really get that far. So could u make a vid showing us how to beat a captcha game with an AI that can read distorted letters from an image?
much thanks man, great work on ur vids.
Probably boat loads of tweaking and huge training sets. But it is definetly possible and the programs became better at doing these text based captchas than humans so we switched to Googles weird meta data and image recogintion ones. And im 100% convinded that Google uses those "select all X" pictues as a pretense to build image recognition sets. They can do it just fine without us having to cllick anything
There a game similar to zigzag called “Dancing line” and it has a ton of levels with lots of different music, and it’s a lot better than zigzag
Could maybe do a follow up on it. Thanks for commenting and watching.
please provide a detailed tutorial...
you have a lots of knowledge...
🔥🔥🔥🔥🌟🌟🌟🌟🌟
Thanks! I've been wanting to do a line by line one for a project like this I'll put it in the works.
This is what i wanted to learn thanks
It's just a thought I'm curious of why you didn't say to avoid the white and stay on the colored path would it be a lot harder to tell it to do that instead of doing it what you just did.
For instance as I'm trying to say is you program it to avoid the white void equals death type of thing so it would be focused on staying but you did it in a reverse way
I really want to automate p2w 3D phone games, to perform basic actions such as "gathering resources", "auto attack/defend/whatever" because of the mind-numbing actions you have to perform and the fact that it's literally P2W. It's hard to socialise with people ingame with that sort of system.
Would it be possible with detecting the pixels for instance resource piles (if they are always the same value and shape), vehicles for mining (for instance number of sent trucks, ships, whatever), name tags(PVE, maybe PVP if it's online, depending on color which does not change)?
or you could just play a game that doesnt require an ai to play it for you? you want to "play" a game without actually playing it because the game sucks that bad...
@@godw1ll99 why even click on this video if you have that mentality? lol
@@KingofEvil this video is achieving an entirely different goal for a completely different purpose. Its almost 0% comparable to my comment. In this video there was never any desire to play the game the intention was strictly to make an ai. The commenter here has the desire to play a game but doesnt actually wnt to play it. One example is to work to create an ai the other is to use an ai to cheat in a game for him out of laziness. I could try to clarify further but im already being pedantic.
@godw1ll99 where exactly do you see the comment saying he wants to play the game?
All he said was that he wanted to automate certain actions in popular games which are in the „p2w“ genre which might just be a experiment to see how a ai compares to a p2w player for all you know.
I do not see a reason for you to lecture someone when you do not even know their intentions correctly.
Absolutely pathetic.
@@KingofEvil my comment was addressing what he said specifically meanwhile you fabricate hypotheticals in order to argue with me and you call me pathetic? he made clear as day what he was wanting to achieve with the first half of his comment. he wants to automate the core functions of a game leaving nothing left but the false satisfaction of having achieved something in the game which makes the entire endeavor meaningless. its no different than people that bot a game like rune scape. the insanity of having the desire to achieve something in a game but not wanting to actually play the game is whats pathetic.
"to perform basic actions such as "gathering resources", 'auto attack/defend/whatever' because of the mind-numbing actions you have to perform and the fact that it's literally P2W. It's hard to socialise with people ingame with that sort of system." is the most blatant example that he fully intends on "playing" the game with a side of "automation" to do the grinding for him.
I like how Open Source rhymes with Free Course
Wouldnt it ve possible to have such a record deleted from the leaderboard? Or call the 'account' something obvious 'like AI machinetest NOT human'.
Just so a basicly cheated record doesnt persist or is at least given hints to its origin
Very good point and question. I actually typically reach out to develops and let them know so they can remove it. I'm also usually using fairly extinct games that probably no one will notice.
I did implement the same concept on c# i detected the ball and the edges but how can i detect if the ball is close to the edge?
what's the song at the part that's showing off the bot getting over 1k?
I remember that game. I played it at my free time when I did not have enough time for something bigger like on the pc. I actually reached the 1000 point mark and played until I got all balls and stopped haha.
You are a stud. I literally never improved I must not have the attention span or reflexes in my old age.
@@ClarityCoders Its super repetitive in a bad way, like wait until the turn and just tap once or you lose and when multiple turns appear you can easily lose track of how many times you have to tap. I just like everything that can be challenging and try it until I win it or at least know how to play it well. The code was more interesting as always compared to me just mastering this game hahaha.
I'm trying this right now with a game, but I can't seem to get the mouse to click even though it moves to the correct location
Can you click on anything? Try something other than the game maybe.
@@ClarityCoders I actually figured out there is a setting in the emulator that wasn’t letting pyautogui click
Awesome video and about the comments debate, this is an AI, a basic one ,but an AI nonetheless Machine Learning or Deep Learning are just "smarter" types of AI, you can think of them as ppl with higher IQ that can learn complicated task or things on their own with out guidance, so you dont have to "teach" (Code) the AI what to do, they are smart enough to learn on their own.
Cool vid dude
Thank you!
If you want a bigger challenge, you can try Cosmo Run ;)
Amaizing job btw
I'll put it on my list of games! Thanks for watching / commenting.
My score in zig zag is around 1800 +
dang it! now I'm going to have to hit this project again haha
@@ClarityCoders hahaha!... Love your work man
appreciate the view thank you.
I'm sure your AI had so much fun
*visual confusion*
It did! It slept so well that night all tired from it's big day.
Great video!
Thank you for watching I really appreciate it.
or you could just do the big where you press on play again and the edge of the screen and you can literally go outside the map and just spam for points
Ooo can u do an idle fishing game where you drag ur cursor around the screen to catch fish? Id love to see an ai just immediately catch everytging as soon as it pops up
Probably what's the game called?
cant you improve it with some prediction of the lines? i mean they are always the same angle and lenght (the longer are the one lenght times two or times three)
This video was great by itself but what I'm appalled by is that you still reply to comments... The amount of patience and dedication! Damn
I'm amazed people watch my videos let alone comment on them. I truly appreciate every one of them even the ones making fun of my unibrow😂. Thanks for the comment and the view!
cool program. but where's the ai?
No machine learning in this one just rules based AI. Machine learning is a subset of AI. Thanks for watching and commenting means a lot.
you just don't know the definition of an AI
@@oPers0n If only I had some person to teach me. Thanks for watching and commenting.
@@oPers0n If you Google it, what comes up is "Artificial intelligence (AI) refers to the simulation of human intelligence in machines that are programmed to think like humans and mimic their actions." I'd say this would be an AI.
@@PastyMancer but I agree with you, my comment was for OP
What program are you using that is showing each step of the line detection live?
OpenCV
@@ClarityCoders Thanks! I was thinking it OpenCV was only a library or something.
this is very a very amazing video
Great video 😎
Thanks Zack means a lot.
I play the game Scrap II a merging game with multiple upgrade menus that I have wondered if it would be possible to automate.
the answer is yes
Scrap II is pogging so hard. 10/10 besties!
Would it simplify things if you searched for hue lines in a specified angle using a simple slope formula to store the initial slope values of the sides of the track? The angle of the path doesn’t seem to change. Furthermore could you specify that it only look for hue lines in the specified angle previously stored. You could further perfect it by storing the width of the hue line just as the angles change on the track. This point would be (what I assume) is the width of the track. Using that value divided by 2 to set your pixel distance out from hue lines and search for hue lines a set distance out past that. I’m not really a programmer and don’t have knowledge of this program specifically just asking based off what I assume is possible. I think this could reduce computational load as well.
Yeah I've had this comment a few times and you guys are correct. I think that would be the easiest way to improve the project.
@@ClarityCoders honestly though thank you for responding I had been wondering. Great videos too!
Edit: now subscribed
What is the name of the music in the background at the beginning?
i don't know if it your code is using GPU or not but if you change the saturation on gpu drivers wouldnt affect the code?
if i ramp down the saturation down the screen turns black and white... wouldn't that help instead of detecting edges and drew lines instead? black, white and gray is easier to program... maybe not i don't know ...
this video was really cool
Mean a lot! Thanks for commenting Legend!
I really need a beginners tutorial on how to automate android games, teaching us how to do it, not just showing us what you did
Nice video 👍
Neat project
Thanks! I appreciate the view and comment.
Turn of wifi & Turn on Airplane mode
ads are gone intirely
cool project
Thanks! Really glad you enjoyed it. Lots more coming soon.
What are the limitations of ai other than processing speed if you optimise the ai to play a 2d fighting game could the ai do it if it had the processing speed
An AI that is written in C could do it, but Python is too slow to process that much data in rt
Great question. Even with processing full image data in some games I was able to achieve better than human reaction times. Although as someone mentioned there are faster language choices out there if speed is an issue.
Make a video on how to capture the game screen. please
Determine these parameters is pain, but unfortunately RL approach is seems to impossible because game itself is too slow to generate sufficient number of train examples for purely CNN model.
Yeah unless you recreate the game and play frame by frame. That's why Code bullet builds a lot of his games from scratch.
Huh…Dancing Line before it was a line…or a rhythm game.
I've had this request before I think.
Any chance to show us how to do it with an MMORPG without having to read values from RAM?
Give me one you have in mind and what it would be useful to do. More popular games would be better for me.
@@ClarityCoders I was going to suggest an old one like Tibia or RuneScape. All the modern ones are 3D and visually polluted like Genshin Impact...