Bot Plays Dino Run! Can our dinosaur bot be stopped?

Поділитися
Вставка
  • Опубліковано 5 лис 2024

КОМЕНТАРІ • 75

  • @PythonSimplified
    @PythonSimplified 4 роки тому +24

    Congratulations again on the 1k subscribers, you absolutley deserve it! keep up the good work!! 😃😃😃

    • @ClarityCoders
      @ClarityCoders  4 роки тому +1

      Thanks I'll be saying the same to you soon!

    • @PythonSimplified
      @PythonSimplified 4 роки тому

      @@ClarityCoders I suddenly realized we should have chosen tkinter for our project, is it too late to switch? 😵
      (sorry I'm hiding from Facebook for a bit, that's why I'm writing here instead XD)

    • @ClarityCoders
      @ClarityCoders  4 роки тому +1

      Tkinter is not my favorite. We could do same program or idea you do it in Tkinter I could use Pyqt5

    • @PythonSimplified
      @PythonSimplified 4 роки тому

      @@ClarityCoders sounds good! 👍

    • @Rafeal_Nadal
      @Rafeal_Nadal 3 роки тому +1

      8k*

  • @nvdp8396
    @nvdp8396 4 роки тому +15

    Awesome video. Intro lookin clean and ive never wanted to beat a bot so bad lol

  • @el_saltamontes
    @el_saltamontes 3 роки тому +4

    Woah I thought you would have like at least 500K. Keep it up!!

    • @ClarityCoders
      @ClarityCoders  3 роки тому +1

      Thanks! I honestly never thought I would get 500 haha

    • @whatdafak6245
      @whatdafak6245 3 роки тому +2

      @@ClarityCoders Another strat when I play Dino is that I duck (press down) after I jump over the cactus. Is there any way to add that into the bot? I get almost 3k score but I don't know how to code

  • @pramod7426
    @pramod7426 3 роки тому +1

    Man, I implemented the dino game same way you did, the logic for dark mode is also same the only difference is speed up I didn't add that and so game would speed up and I couldn't score more than 2113 and I couldn't figure out a way to increase a speed of response , but now I know , great video , I have also added chromedriver so that the chrome tab opens and closes with the program you don't need to switch it manually

  • @hannesleonhartsberger
    @hannesleonhartsberger 3 роки тому +13

    I played this game always on the Bus and got a highscor of 4000 points!

  • @marrog2082
    @marrog2082 4 роки тому +4

    This is kinda random but u actually don't have to duck under the flying dinos ( idk how to spell) u can just just over cuz they're basically the same height as the cacti

    • @ClarityCoders
      @ClarityCoders  4 роки тому +2

      I noticed that as well. I think ducking is safer cause you can recover faster but either would work. Good catch

  • @creationsmarko
    @creationsmarko 3 роки тому +2

    Correct me if im wrong but if you tap the jump key he can do a shorter jump and holding the jump key makes him jump for longer. Maybe this can be used to get more safety time

    • @ClarityCoders
      @ClarityCoders  3 роки тому +2

      Very good point. That would probably help! Thanks for watching and commenting.

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

      @@ClarityCoders im glad I can help

  • @joshuafahrenkrog1997
    @joshuafahrenkrog1997 4 роки тому +3

    Who's taking this man's challenge?

  • @JaceCorso45
    @JaceCorso45 3 роки тому +24

    This code was Python right?

  • @djt-lex3962
    @djt-lex3962 3 роки тому +1

    Okay im gonna recreate this with my screen recognition bot. It can do around 120 actions per second. Made it with python as well

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

    I saw the picture number you stopped on and i was like: "Nice"

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

    The UA-camr CodeBullet made an AI that freaking turned the top high scores to nothing cause the bot seemed to be.. unbeatable

    • @ClarityCoders
      @ClarityCoders  3 роки тому +2

      If I remember right code bullet used his own game he built not the live version. Makes it pretty easy. Wish I was as funny as him.

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

      @@ClarityCoders true he did make his own version but he did pretty much copy the code down to the number. Also you are as funny as him!

  • @__-cd9ug
    @__-cd9ug 3 роки тому +1

    great video
    i've never coded anything in python so i don't really know how it works but i reckon you could improve the bot by checking farther ahead and delaying the inputs? maybe that could allow it to account for short vs long jumps and anticipate the places where cacti are close together but not close enough that you can jump over all of them at once ! also later on in the game i think pterodactyls get more and more common so the response to those obstacles gets more complicated anyway i don't know any python as i said so nevermind

  • @MAXI2006O
    @MAXI2006O 3 роки тому +1

    ultimate I did not pass the 1000 points, it also happens that the transition from day to night and vice versa lags my laptop a lot

  • @HuxaifaYT
    @HuxaifaYT 2 роки тому

    would be cool if bot learns to play from its mistake

  • @typhusgamingadventures4897
    @typhusgamingadventures4897 3 роки тому +1

    Nice Video.
    I opened a pull request to improve the code a bit :)

  • @zlarnix
    @zlarnix 3 роки тому +1

    ModuleNotFoundError: No module named 'cv2'
    I get this when I run the program.

  • @Praxss
    @Praxss 4 роки тому +2

    I have developed same program last year with pretty much same logic but it never accurate this level

    • @ClarityCoders
      @ClarityCoders  4 роки тому

      I do have a decent laptop could be that mine is just getting a better frame rate?

    • @Praxss
      @Praxss 4 роки тому

      @@ClarityCoders github.com/kulkarnip150/automate-stuffs-with-python/blob/master/dino_game.py
      This is code and I don't think it is frame rate issue as my system is also descent. I think it is issue of accuracy

    • @ClarityCoders
      @ClarityCoders  4 роки тому +2

      That could be I'll check out yours a bit later! Thanks for watching feel free to join discord if you want to chat code more!

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

    Love the vids, Do u want to collab

  • @sussssss8324
    @sussssss8324 2 роки тому

    how do i find the pixels i need??

  • @cookieeater3327
    @cookieeater3327 3 роки тому +3

    Pyautogui would be an easier alternative to do the same thing!

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

      For pushing the keys or the image detection? If image detection I didn't know Pyautogui had that functionality. At any rate thanks for watching!

    • @gomesbruno201
      @gomesbruno201 3 роки тому +1

      @@ClarityCoders It actually has, but it's quite slow. I wouldn't recommend for that

  • @EthanSeville
    @EthanSeville 3 роки тому +1

    69 Images **Noice**

  • @JaceCorso45
    @JaceCorso45 3 роки тому +1

    Cacti

  • @tooru
    @tooru 3 роки тому +2

    a, b = b, a

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

    Mine was 3314

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

    Just use Javascript 🤣

    • @ClarityCoders
      @ClarityCoders  3 роки тому +1

      Yup for sure a good option. I was just trying to show a bit of OpenCV.

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

    Nobody questioning why he is using PAINT? Are you fine? May I help you? USE GIMP!

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

      I do love me some GIMP. Although.... I've went back to photoshop for most of my image editing. I know I suck.

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

      @@ClarityCoders I didn't say you suck. I'm just triggered that you are using paint xD

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

      @@BlenderDefender Thanks again for watching buddy I appreciate it.

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

      @@ClarityCoders You're welcome, interesting video dude

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

      Clearly not relevant to the video, people are so fond of criticism