Тёмный

AI Destroys a Mobile Game in Real-Time with OpenCV (Object Detection) 

ClarityCoders
Подписаться 49 тыс.
Просмотров 432 тыс.
50% 1

Let's create AI that beats a simple game of ZigZag. Can't get that Ultra Rare Trophy? During this video, I show you how to create a powerful AI that can top high scores in the game ZigZag. We will use OpenCV to empower our bot with AI vision and make decisions based off the game inputs!
github.com/ClarityCoders/ZigZag
Want to chat with me and other programmers join our discord!
/ discord

Наука

Опубликовано:

 

16 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 452   
@blazeinhotwings
@blazeinhotwings 2 года назад
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
@maxiimized
@maxiimized 2 года назад
It's annoying when people don't read up on something at least a little before making stupid comments
@ClarityCoders
@ClarityCoders 2 года назад
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.
@ClarityCoders
@ClarityCoders 2 года назад
Thank you!
@FireDotExe
@FireDotExe 2 года назад
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?
@ClarityCoders
@ClarityCoders 2 года назад
@@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.
@Noobificado
@Noobificado 2 года назад
10:57 69421 gems We were this close to perfection 👌
@ClarityCoders
@ClarityCoders 2 года назад
I have never been more disappointed with myself. I did however have to move on and code again.
@gsas3012
@gsas3012 2 года назад
😞😞😞😞
@cowch3916
@cowch3916 2 года назад
Top 10 saddest anime moments 😢
@amogus7
@amogus7 Год назад
train the ai to get 69420 points and pause in all games
@ultralaggerREV1
@ultralaggerREV1 2 года назад
Him: “turn off internet to prevent ads!” The fu$&ing game a few seconds later: **play this tank game**
@ClarityCoders
@ClarityCoders 2 года назад
Changed my mind don't turn off internet keep watching my videos. Thanks for view and comment 😉.
@hintofanimage1004
@hintofanimage1004 2 года назад
Yea it like stores ads for a bit
@Squishy_yhsiuqS
@Squishy_yhsiuqS 2 года назад
Apps like this download 2-3 videos to play if your Internet is off
@gorb9944
@gorb9944 2 года назад
Also some say that you need to the internet in order to play but its only for the ads
@thedevildarksoul9727
@thedevildarksoul9727 2 года назад
Guy you may be, but them cheeks gonna feel what it means to get balls to the walls.
@impurpl2
@impurpl2 2 года назад
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!
@ClarityCoders
@ClarityCoders 2 года назад
Great minds. Thanks for watching and commenting.
@YoungPutter
@YoungPutter 2 года назад
Why have you played zigzag for years?
@lukeyxo
@lukeyxo 2 года назад
yes i too always play games and wonder how ai would do in it !!!!!!!!!!!!!!!!!!!!!!!!
@gabrielandraderosa8622
@gabrielandraderosa8622 2 года назад
Thanks youtube recomendations, underated channel
@ClarityCoders
@ClarityCoders 2 года назад
Honestly comment means a lot thanks so much.
@TurtleMaster326
@TurtleMaster326 2 года назад
This is an underrated channel, it’s nice to see small channels that also produce quality content
@ClarityCoders
@ClarityCoders 2 года назад
Thanks that really means a lot to me! Thank you for watching and commenting.
@Pitiflu909
@Pitiflu909 2 года назад
11:02 it recognizes the "C" on score as a circle but not the "O" xD
@ClarityCoders
@ClarityCoders 2 года назад
Darn AI.
@jagaya3662
@jagaya3662 2 года назад
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.
@chris_aka_CP
@chris_aka_CP 2 года назад
Thanks RU-vid recom, i really liked the vid and the fact that i see so many answered comments, Shows that you care for community. Subbed
@ClarityCoders
@ClarityCoders 2 года назад
I honestly really appreciate every view and sub. Thanks for commenting and subscribing.
@allak1n
@allak1n 2 года назад
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.
@ClarityCoders
@ClarityCoders 2 года назад
Comment really means a lot to me. Thanks for taking the time to watch and leave me a message.
@noobmasterr69
@noobmasterr69 2 года назад
Great video..for someone getting started with OpenCV this was very entertaining to watch. Subbed!
@ClarityCoders
@ClarityCoders 2 года назад
Thank my man! Really appreciate the sub.
@JamesTDG
@JamesTDG 2 года назад
It's a pretty good concept, would be interesting to see more visual-based AIs...
@ClarityCoders
@ClarityCoders 2 года назад
I'm on it. Thanks for watching and commenting.
@BlobsoR0ck
@BlobsoR0ck 2 года назад
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.
@ClarityCoders
@ClarityCoders 2 года назад
Thanks! I really appreciate the comment and view.
@gubiithefish
@gubiithefish 2 года назад
This is amazing man;-) Subbed!
@ClarityCoders
@ClarityCoders 2 года назад
Thanks for sub Emil means a lot.
@warmpianist
@warmpianist 2 года назад
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.
@ClarityCoders
@ClarityCoders 2 года назад
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.
@kbabe3915
@kbabe3915 2 года назад
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
@feha92
@feha92 2 года назад
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).
@godman1117
@godman1117 2 года назад
Didnnt even know about the open cv module, might have start learning that, looks pretty useful
@tenzinsherap4049
@tenzinsherap4049 3 года назад
Really thankful for the youtube reccomendation for showing me this video
@ClarityCoders
@ClarityCoders 3 года назад
hey thanks for watching I appreciate it.
@adam4478
@adam4478 2 года назад
it might be interessting to only keep the lines with a specific angle since each wall are parallel
@ClarityCoders
@ClarityCoders 2 года назад
Honestly this crossed my mind very late in this project. I think it's a good idea! Thanks for watching / commenting.
@Kenshinse312
@Kenshinse312 2 года назад
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 ).
@matthewstewart5113
@matthewstewart5113 2 года назад
I Do not understand it, but I can see the future value in it. Keep going. Great video-Thank you
@ClarityCoders
@ClarityCoders 2 года назад
Awesome I will! Thanks for watching and commenting.
@Pheonix1328
@Pheonix1328 2 года назад
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
@ClarityCoders
@ClarityCoders 2 года назад
I do feel bad for those people part of the reason why I picked stupid not so popular games.
@unpaidintern6652
@unpaidintern6652 Год назад
@@ClarityCoders I'd say the people who are able to bot those games applied their own skill to the game.
@ozzy1987mr
@ozzy1987mr Год назад
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
@lunaroja369gimenez6
@lunaroja369gimenez6 4 месяца назад
Hola, hablas español? Me dirías si pudiste hacer funcionar este proyecto? Tengo que hacerlo para un juego casi igual
@jkl9984
@jkl9984 2 года назад
That's a very nice video. Was interesting to watch.
@ClarityCoders
@ClarityCoders 2 года назад
Thanks JKL that really means a lot. I appreciate you taking the time to comment.
@Gaellka
@Gaellka 2 года назад
Congrats man. the god of RU-vid algorithm has chosen you.
@ClarityCoders
@ClarityCoders 2 года назад
Thank you RU-vid overlords. Thanks for watching and commenting my man!
@Gaellka
@Gaellka 2 года назад
@@ClarityCoders no problem ^^
@Caterblock
@Caterblock 2 года назад
Listening to Rick rn
@alohaboomboom8913
@alohaboomboom8913 Год назад
This is what i wanted to learn thanks
3 года назад
Thank you for sharing, I like it. :D
@ClarityCoders
@ClarityCoders 3 года назад
I'm glad you like it. Should be plenty more coming soon.
@fabianbleile9467
@fabianbleile9467 2 года назад
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?
@ClarityCoders
@ClarityCoders 2 года назад
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.
@kema2240
@kema2240 2 года назад
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!
@ClarityCoders
@ClarityCoders 2 года назад
Dang I wish I had thought of that before posting it was on my old laptop. Next time I will post that as well.
@annesophie4037
@annesophie4037 2 года назад
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.
@ronaldoSf
@ronaldoSf 2 года назад
This app is so useful to find these values
@ClarityCoders
@ClarityCoders 2 года назад
I love playing around with it. Thanks for the comment.
@rasmustagu
@rasmustagu 2 года назад
Absolutely awesome, coding is something way over my head and I love seeing stuff like this!
@ClarityCoders
@ClarityCoders 2 года назад
Thanks! Never to late to get involved start small and work your way up!
@basilicon.
@basilicon. 2 года назад
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.
@2-_
@2-_ 2 года назад
something like sethbling's marIO would work for that i think
@ClarityCoders
@ClarityCoders 2 года назад
Yup probably need to go deep learning but it could be done. I'll put it on my list.
@bmanb2099
@bmanb2099 2 года назад
Instead of wait maybe a month to see it happen why do you try making it in about a year! Much faster
@SamiTheAnxiousBean
@SamiTheAnxiousBean 2 года назад
this is really Interasting Great job
@ClarityCoders
@ClarityCoders 2 года назад
Thanks that means a lot. I got more cool stuff coming out soon!
@SamiTheAnxiousBean
@SamiTheAnxiousBean 2 года назад
@@ClarityCoders im exited for that
@1996Pinocchio
@1996Pinocchio 2 года назад
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
@ZombieChicken-X
@ZombieChicken-X 2 года назад
This looks like a fun project Imma try it
@incine8908
@incine8908 2 года назад
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.
@unpaidintern6652
@unpaidintern6652 Год назад
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
@ldoubleprime1654
@ldoubleprime1654 2 года назад
As a young dood i am rly interested in coding and tech im glad yt recommended me this yt channel ^w^
@ClarityCoders
@ClarityCoders 2 года назад
Thanks dood. Keep coding!
@volttheprotogen1893
@volttheprotogen1893 2 года назад
uwu
@ldoubleprime1654
@ldoubleprime1654 2 года назад
@@volttheprotogen1893 uwu
@tttam96
@tttam96 Год назад
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
@tazgirl_
@tazgirl_ 2 года назад
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
@ClarityCoders
@ClarityCoders 2 года назад
Thanks! That's a spot on analogy haha.... Overall though I appreciate the comments and views even the ones complaining about my haircut 😂😂.
@Mlafster
@Mlafster 3 года назад
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
@ClarityCoders 3 года назад
I'd love to try that game! haha we could use the sound as input right?
@Mlafster
@Mlafster 3 года назад
@@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.
@daddyofalltrades
@daddyofalltrades 3 года назад
Sweet 🔥
@ClarityCoders
@ClarityCoders 3 года назад
Thanks!
@vinusanker8767
@vinusanker8767 3 года назад
Discord is fun to hang out and ask doubts people
@ClarityCoders
@ClarityCoders 3 года назад
Thanks for watching and commenting!
@vinusanker8767
@vinusanker8767 3 года назад
@@ClarityCoders sure, y not?
@deiviselenis9106
@deiviselenis9106 2 года назад
Great video!
@ClarityCoders
@ClarityCoders 2 года назад
Thank you for watching I really appreciate it.
@cosmilitebar6772
@cosmilitebar6772 2 года назад
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.
@tiger-mt4ju
@tiger-mt4ju 2 года назад
I'm very glad that you had enough thought to buy all of the balls. Thank you.
@ClarityCoders
@ClarityCoders 2 года назад
I'm all about the balls.
@Bubs.
@Bubs. 2 года назад
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
@AntiDroidZ
@AntiDroidZ 2 года назад
Great video 😎
@ClarityCoders
@ClarityCoders 2 года назад
Thanks Zack means a lot.
@JohnMazz
@JohnMazz 2 года назад
I've always wanted to automate some mobile games, cool vid thanks!
@ClarityCoders
@ClarityCoders 2 года назад
It's a fun challenge for sure. Thanks for watching and commenting.
@JohnMazz
@JohnMazz 2 года назад
@@ClarityCoders I always comment on videos I want to see more of. Got to train that algorithm!
@458stanley
@458stanley 2 года назад
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?
@ClarityCoders
@ClarityCoders 2 года назад
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. 😉
@linus855
@linus855 2 года назад
this is very a very amazing video
@GageMason
@GageMason 2 года назад
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.
@tmnnn
@tmnnn 2 года назад
flappy bird?
@Resursator
@Resursator 2 года назад
Video: turn off the internet to prevent ads!! Me: okay Video: stops
@ClarityCoders
@ClarityCoders 2 года назад
Whew thought I lost you there glad you got it back! haha
@akerman_
@akerman_ 3 года назад
Cool vid dude
@ClarityCoders
@ClarityCoders 3 года назад
Thank you!
@xylxylxylxyl
@xylxylxylxyl 2 года назад
Nice video 👍 Neat project
@ClarityCoders
@ClarityCoders 2 года назад
Thanks! I appreciate the view and comment.
@ductr2hn
@ductr2hn 2 года назад
this bring back my memory about dancing line
@explosivemonkey4596
@explosivemonkey4596 2 года назад
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
@ductr2hn
@ductr2hn 2 года назад
@@explosivemonkey4596 ok but still can't play it because i using android
@explosivemonkey4596
@explosivemonkey4596 2 года назад
@@ductr2hn I pray for your loss.
@TilDrill
@TilDrill 2 года назад
@@explosivemonkey4596 they flooded it woth ads at some point it got unplayable for me
@djentslayer
@djentslayer 2 года назад
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 :)
@ClarityCoders
@ClarityCoders 2 года назад
Thanks RU-vid has been fun for me doing stupid projects. I'll stick around if a few people keep watching! Thanks for comment/view.
@lincolnh2348
@lincolnh2348 2 года назад
Flappy bird would be a cool one to automate. I don’t think it’s on the App Store anymore though
@toprakdikici9459
@toprakdikici9459 3 года назад
cool project
@ClarityCoders
@ClarityCoders 3 года назад
Thanks! Really glad you enjoyed it. Lots more coming soon.
@honeynutios
@honeynutios 2 года назад
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
@ClarityCoders
@ClarityCoders 2 года назад
Probably what's the game called?
@Skellitor301_VA
@Skellitor301_VA 2 года назад
what's the song at the part that's showing off the bot getting over 1k?
@paulyguitary7651
@paulyguitary7651 2 года назад
I like how Open Source rhymes with Free Course
@Lebensgott
@Lebensgott 2 года назад
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)
@Cod3rMax
@Cod3rMax Год назад
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?
@legend0.
@legend0. 2 года назад
this video was really cool
@ClarityCoders
@ClarityCoders 2 года назад
Mean a lot! Thanks for commenting Legend!
@YukiAttano
@YukiAttano 2 года назад
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.
@ClarityCoders
@ClarityCoders 2 года назад
Those were the days. Cheat engine baby.
@WeatherStone
@WeatherStone 2 года назад
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?
@vinusanker8767
@vinusanker8767 3 года назад
Hey, jake, it's me vinu from discord, hope u r well
@RandomBubble
@RandomBubble 2 года назад
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
@ClarityCoders
@ClarityCoders 2 года назад
You're certainly better than me.
@NECarp
@NECarp 2 года назад
Could you try Dunk Shot by Ketchapp really fun game that uses trajectory
@Bencehhh123
@Bencehhh123 2 года назад
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.
@ClarityCoders
@ClarityCoders 2 года назад
Fast and Run - Nico Staf. Thanks for watching and commenting!
@gauravrewaliya3269
@gauravrewaliya3269 2 года назад
please provide a detailed tutorial... you have a lots of knowledge... 🔥🔥🔥🔥🌟🌟🌟🌟🌟
@ClarityCoders
@ClarityCoders 2 года назад
Thanks! I've been wanting to do a line by line one for a project like this I'll put it in the works.
@Crashthatch
@Crashthatch 3 года назад
How long did it take you to build/test this? Hours? Weeks?
@ClarityCoders
@ClarityCoders 3 года назад
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.
@Diego-Garcia
@Diego-Garcia 2 года назад
@@ClarityCoders The next step: use a genetic algorithm to look at the best parameters hahahahah
@carldressler3262
@carldressler3262 2 года назад
@@Diego-Garcia Then we would enter machine learning territory!
@MsTatakai
@MsTatakai 2 года назад
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 ...
@AyAylinJJ
@AyAylinJJ 2 года назад
Very cool
@ClarityCoders
@ClarityCoders 2 года назад
Thank you!
@silvix3137
@silvix3137 2 года назад
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
@Rex_Vulcan
@Rex_Vulcan 2 года назад
What is the name of the music in the background at the beginning?
@deezerload
@deezerload 2 года назад
I'm sure your AI had so much fun
@ImCxoi
@ImCxoi 2 года назад
*visual confusion*
@ClarityCoders
@ClarityCoders 2 года назад
It did! It slept so well that night all tired from it's big day.
@Roxst4r17
@Roxst4r17 2 года назад
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.
@ClarityCoders
@ClarityCoders 2 года назад
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.
@Roxst4r17
@Roxst4r17 2 года назад
@@ClarityCoders honestly though thank you for responding I had been wondering. Great videos too! Edit: now subscribed
@cg7407
@cg7407 2 года назад
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)
@angelben24
@angelben24 2 года назад
You could try and show us 😉
@ClarityCoders
@ClarityCoders 2 года назад
I'll check it out and put it on my list!
@juulleke
@juulleke 2 года назад
holy f this thing is good
@Brandonzv
@Brandonzv 2 года назад
What program are you using that is showing each step of the line detection live?
@ClarityCoders
@ClarityCoders 2 года назад
OpenCV
@Brandonzv
@Brandonzv 2 года назад
@@ClarityCoders Thanks! I was thinking it OpenCV was only a library or something.
@killertigergaming6762
@killertigergaming6762 2 года назад
Seems cook
@ClarityCoders
@ClarityCoders 2 года назад
Cooking the competition.
@agentx7138
@agentx7138 2 года назад
I play the game Scrap II a merging game with multiple upgrade menus that I have wondered if it would be possible to automate.
@XaviIntheHouse
@XaviIntheHouse 2 года назад
the answer is yes
@PastyMancer
@PastyMancer 2 года назад
Scrap II is pogging so hard. 10/10 besties!
@koko_noob8078
@koko_noob8078 4 месяца назад
Make a video on how to capture the game screen. please
@FayeBae69
@FayeBae69 2 года назад
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.
@ClarityCoders
@ClarityCoders 2 года назад
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.
@ShivamJha00
@ShivamJha00 2 года назад
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
@ClarityCoders
@ClarityCoders 2 года назад
@@ShivamJha00 You would have to mimic pro-level accuracy. Basically intentionally making it shaky and a bit random.
@zaclanderos1624
@zaclanderos1624 2 года назад
If you want a bigger challenge, you can try Cosmo Run ;)
@zaclanderos1624
@zaclanderos1624 2 года назад
Amaizing job btw
@ClarityCoders
@ClarityCoders 2 года назад
I'll put it on my list of games! Thanks for watching / commenting.
@mrwait2425
@mrwait2425 Год назад
hi can you make a tutorial that an object trace a line that curves
@kasiorap
@kasiorap 2 года назад
let me grab my "here before this channel gets 1m subs" chair
@ClarityCoders
@ClarityCoders 2 года назад
Hope you're right 😉. If not glad people are enjoying it! Thanks for watching and commenting.
@faddy_is_ur_daddy
@faddy_is_ur_daddy 2 года назад
1:41 bold of u to assume that
@mrfoucs7574
@mrfoucs7574 2 года назад
whats the soundtrack at the end of video?
@ClarityCoders
@ClarityCoders 2 года назад
Fast and Run - Nico Staf
@rasmussiira9151
@rasmussiira9151 2 года назад
What is the song in the start
@athanasiosp.
@athanasiosp. 2 года назад
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
@ClarityCoders 2 года назад
You are a stud. I literally never improved I must not have the attention span or reflexes in my old age.
@athanasiosp.
@athanasiosp. 2 года назад
@@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.
@MisterYoda15
@MisterYoda15 2 года назад
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)?
@godw1ll99
@godw1ll99 2 года назад
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
@KingofEvil 2 года назад
@@godw1ll99 why even click on this video if you have that mentality? lol
@godw1ll99
@godw1ll99 2 года назад
@@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.
@KingofEvil
@KingofEvil 2 года назад
@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.
@godw1ll99
@godw1ll99 2 года назад
@@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.
@rikisu.
@rikisu. 2 года назад
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
@ClarityCoders
@ClarityCoders 2 года назад
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!
@MaksB.
@MaksB. 2 года назад
Yes
@ClarityCoders
@ClarityCoders 2 года назад
Yeah buddy!
@enderinvader
@enderinvader 2 года назад
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
@ClarityCoders
@ClarityCoders 2 года назад
Can you click on anything? Try something other than the game maybe.
@enderinvader
@enderinvader 2 года назад
@@ClarityCoders I actually figured out there is a setting in the emulator that wasn’t letting pyautogui click
@gicudoi2771
@gicudoi2771 2 года назад
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
@entegi
@entegi 2 года назад
An AI that is written in C could do it, but Python is too slow to process that much data in rt
@ClarityCoders
@ClarityCoders 2 года назад
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.
@zskull162
@zskull162 2 года назад
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
@ClarityCoders
@ClarityCoders 2 года назад
Could maybe do a follow up on it. Thanks for commenting and watching.
@paulp1204
@paulp1204 3 года назад
That's really impressive. I am not sure this is actually a form of AI though, more a well automated script, essentially.
@ClarityCoders
@ClarityCoders 3 года назад
By definition it's artifical intelligence though it's not machine learning. I would agree with your point though it's not learning anything.
@somdudewillson
@somdudewillson 3 года назад
AI does not require any form of learning.
@SurrealBackrooms
@SurrealBackrooms 2 года назад
1. AI 2. Machine Learning (a type of AI) 3. Deep Learning (a type of machine learning and AI)
@Maric18
@Maric18 2 года назад
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
@Laszer271
@Laszer271 2 года назад
@@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.
@lineage254
@lineage254 2 года назад
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.
@americoperez810
@americoperez810 2 года назад
Can you do this for "Like a Dino"
@programuoki-lt1465
@programuoki-lt1465 2 года назад
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...
@ClarityCoders
@ClarityCoders 2 года назад
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.
Далее
Beating a Pay to Win game with a bot
5:09
Просмотров 1,8 млн
Ozoda - JAVOHIR ( Official Music Video )
06:37
Просмотров 1,2 млн
I tried to make a Valorant AI using computer vision
19:23
MarI/O - Machine Learning for Video Games
5:58
Просмотров 11 млн
Coding Adventure: Chess
29:22
Просмотров 3,7 млн
AIs learn to WALK
20:21
Просмотров 52 тыс.
AI Learns to Speedrun Mario
8:07
Просмотров 642 тыс.
AI Plays Toadled! YOLOV7 Bot Better than Human?
20:04
Automating Android Games with Python: Stick Hero
15:22
Просмотров 381 тыс.
ЛУЧШИЙ ПОВЕРБАНК ОТ XIAOMI
0:39
Просмотров 15 тыс.
✅ЛУЧШИЕ фишки iOS 18🔥
0:51
Просмотров 111 тыс.