How to Make an Amazing Video Game Bot Easily

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ส.ค. 2024
  • In this video, we first go over the history of video game AI, then I introduce OpenAI's Universe, which lets you build a bot that can play thousands of different video games. It has environments for all sorts of games, from Space Invaders, to Grand Theft Auto, to Protein folding simulations.
    CODING CHALLENGE DUE DATE: Thursday, December 15th.
    (which is 2 weeks, not 1 week from now like usual)
    The coding challenge for this video is to make a bot that's better than this video's demo code. Post your Github link in the comments! For your README, just include a 1-3 sentence description of your strategy and instructions on how to run the code.The demo code can be found in the README of the Universe repo. :
    github.com/openai/universe
    And a Tensorflow based starter bot can be found here:
    github.com/openai/universe-st...
    Some great learning resources:
    www.nervanasys.com/openai/
    karpathy.github.io/2016/05/31/rl/
    kvfrans.com/simple-algoritms-f...
    kofzor.github.io/Reinforcemen...
    Join other Wizards on our Slack channel:
    wizards.herokuapp.com/
    OpenAI asked me to make this video and I gladly said yes. They are awesome!!
    Please subscribe! And like and comment. That's what keeps me going.
    And please support me on Patreon:
    www.patreon.com/user?u=3191693
    Follow me:
    Twitter: / sirajraval
    Facebook: / sirajology Instagram: / sirajraval Instagram: / sirajraval
    Signup for my newsletter for exciting updates in the field of AI:
    goo.gl/FZzJ5w
    Hit the Join button above to sign up to become a member of my channel for access to exclusive content! Join my AI community: chatgptschool.io/ Sign up for my AI Sports betting Bot, WagerGPT! (500 spots available):
    www.wagergpt.co

ความคิดเห็น • 693

  • @EmoryM
    @EmoryM 7 ปีที่แล้ว +348

    "Alexa, solve poverty."
    _Nuclear launch detected_

    • @LalkeBanditen
      @LalkeBanditen 5 ปีที่แล้ว +9

      Slight chance of mushroom clouds...

    • @capnam_12
      @capnam_12 5 ปีที่แล้ว +2

      69 likes

    • @yamom...5918
      @yamom...5918 5 ปีที่แล้ว +1

      @@capnam_12 NO

    • @evanm623
      @evanm623 5 ปีที่แล้ว +2

      "Wanna piece of me boy!?"

    • @masternobody1896
      @masternobody1896 4 ปีที่แล้ว

      This is the best I know create a bot to play fortnite

  • @billjensen51
    @billjensen51 6 ปีที่แล้ว +166

    "... only 10 lines of code. Start by importing thousands of lines of code already written but you did all the important work, trust me."

    • @ClaytonGinther
      @ClaytonGinther 4 ปีที่แล้ว +9

      Right? I train my models using machine code.

    • @IslandRai
      @IslandRai 4 ปีที่แล้ว +5

      Were you able to comment this on all his videos so everyone knows what a complete and utter fraud he is?

    • @enzoqueijao
      @enzoqueijao 4 ปีที่แล้ว +3

      These new progamers are all so lazy... I program using only pencil and paper!

    • @ThylineTheGay
      @ThylineTheGay 3 ปีที่แล้ว +3

      @@enzoqueijao *I* only code with punch cards

    • @anuragsethi16
      @anuragsethi16 3 ปีที่แล้ว +2

      True, but hey isn't that the case with every application when we import hundreds of libraries....

  • @sentdex
    @sentdex 7 ปีที่แล้ว +555

    Definitely one of your best videos to date, nicely done Siraj.

    • @SirajRaval
      @SirajRaval  7 ปีที่แล้ว +47

      thanks Harrison!

    • @pumpyourday365
      @pumpyourday365 7 ปีที่แล้ว +3

      Django on sentdex and Machine Learning there ahahah

    • @botino6152
      @botino6152 7 ปีที่แล้ว +4

      Howdy !?,
      This is Botino, a youtube bot.
      This message is meant to test TH-cam software, to test the functionality of it.
      As you can see this message is working perfect.

    • @mikejankowiak5434
      @mikejankowiak5434 7 ปีที่แล้ว +1

      sentdex is this what inspired your super awesome python plays GTAV tutorial?

    • @shimuk8
      @shimuk8 7 ปีที่แล้ว +1

      sentdex yesterday I was watching your balance pole video and today I saw your comment up here... life is such a circle !! xD

  • @JordanShackelford
    @JordanShackelford 7 ปีที่แล้ว +88

    That hair futuristic af

    • @SirajRaval
      @SirajRaval  7 ปีที่แล้ว +67

      thanks Jordan. it's open source too

    • @Attakijing
      @Attakijing 7 ปีที่แล้ว +1

      I have a pull request for you. It involves a basketball number

    • @Melicrafts
      @Melicrafts 4 ปีที่แล้ว

      @@SirajRaval hi... i have download a source file from github, but i was not able to compile ... i need some guidence ...the source file is for subway surfer AI..please help me how i can use that source file

  • @newgamedk
    @newgamedk 7 ปีที่แล้ว +177

    Hi Sirajology. If you discover errors in your speach, and want to record single words, and input them into your timeline, like "a list", or "intelligence", a tip to make it work, is to 1) record at exactly the same spot in the studio, and 2) listen to a recording of your voice in the same sentence *just* before you make your corrections, that makes it easier to pronounce and put pressure on words in exactly the same way, making it virtually impossible to hear you have corrected yourself. And 3) if you are a perfectionist, record whole sentences rather than single words, making it easier to choose where to do cut. Thanks for amazing videos. Best regards Søren

    • @Egzvorg
      @Egzvorg 7 ปีที่แล้ว +3

      I guess option 1) is not available

    • @SirajRaval
      @SirajRaval  7 ปีที่แล้ว +43

      this is great advice, thanks Soren. I was working on this all weekend with the team lots of updates were made really fast. this is the one thing i am unhappy about from this video and i'll definitely improve next time :)

    • @newgamedk
      @newgamedk 7 ปีที่แล้ว

      Egor Zvorykin Well if he remembers the spot he was in (the room / studio), then echoes will be the same, therefore much more likely to be unoticeable.

    • @Egzvorg
      @Egzvorg 7 ปีที่แล้ว

      newgame what if he don't have access to the studio (eg. long ride)

    • @newgamedk
      @newgamedk 7 ปีที่แล้ว

      ... Yes - you are right. :-)

  • @ppshe1
    @ppshe1 7 ปีที่แล้ว +327

    can we make bots that create bots that make better bots to create even better bots???

    • @deepbits7312
      @deepbits7312 7 ปีที่แล้ว +38

      Not yet, soon we will. Singularity here we come.

    • @HeliosphanXtal
      @HeliosphanXtal 7 ปีที่แล้ว +15

      I think we wont even notice the moment we reach singularity; we will end up way beyond it in a fraction of a second. Biological intelligence will be rendered obsolete. Interesting times ahead.

    • @SirajRaval
      @SirajRaval  7 ปีที่แล้ว +78

      yes

    • @159abdellah
      @159abdellah 7 ปีที่แล้ว +13

      inception shit !

    • @mikeunleashed1
      @mikeunleashed1 7 ปีที่แล้ว +1

      we're trying, but as of now, we currently can't.

  • @DeaMikan
    @DeaMikan 7 ปีที่แล้ว +6

    Please continue this with a series!! Would love to learn how to use Universe properly.

  • @ciberglo
    @ciberglo 7 ปีที่แล้ว +1

    Siraj, what do you think would be better to classify a group of sensors captured each second? I.e., their values and the latest 10 groups (seconds) might interfere the interpretation.

  • @GoldenAngel3341
    @GoldenAngel3341 4 ปีที่แล้ว

    I want to use this for games like Skyrim and the link you listed has this "This repository has been deprecated in favor of the Retro". I'm not looking for Retro games though atm, is Universe still a good option?

  • @bara2c
    @bara2c 3 ปีที่แล้ว +2

    I am new to coding and dont have much idea of how to do this. What platform do you use to write that code? and what do I need to do to import all that info?

  • @baichoo0441
    @baichoo0441 4 ปีที่แล้ว +2

    Wait up, I have a few questions. What if the game requires other key input, like apart from up in this case?
    Edit: Also, how do you select other games? Like do I have to build my own system to play GTA for example or is there a way for the AI to support the game directly?

  • @danm4320
    @danm4320 7 ปีที่แล้ว +118

    This video is approved by Elon Musk. Well done!

    • @SirajRaval
      @SirajRaval  7 ปีที่แล้ว +26

      thanks so much! Musk is awesome

    • @u6uggg6hguiuggy
      @u6uggg6hguiuggy 2 ปีที่แล้ว

      @@SirajRaval He doesn't only care for himself, unlike most wealthy and succesful people. AND he is smart.

    • @robinferizi9073
      @robinferizi9073 2 ปีที่แล้ว +1

      @@u6uggg6hguiuggy who else does Musk care for?

  • @nikhilmenda2983
    @nikhilmenda2983 7 ปีที่แล้ว +191

    Elon Musk sent me here!

    • @harshvardhan-vy2vo
      @harshvardhan-vy2vo 7 ปีที่แล้ว +7

      Nikhil Menda me too

    • @SirajRaval
      @SirajRaval  7 ปีที่แล้ว +37

      hell yea, greatest tweet ever

    • @harshvardhan-vy2vo
      @harshvardhan-vy2vo 7 ปีที่แล้ว +1

      Ur videos are great by the way.

    • @charleslaux8964
      @charleslaux8964 7 ปีที่แล้ว

      Siraj Raval when I run the code I get
      Trace back (most recent call last):
      File “C:\users\gamer\appdata\local\programs\python\python3.6\coast.py”, line 1 In
      Import gym
      Module not found error: no module named gym

    • @charleslaux8964
      @charleslaux8964 7 ปีที่แล้ว

      Can you help

  • @danieldossantos5868
    @danieldossantos5868 5 ปีที่แล้ว +1

    I'm a little confused as to how to run the code. I tried running it in PyCharm and got,
    *'Error while fetching server API version: {0}'.format(e)*
    *docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))*

  • @theholyromanarmy4745
    @theholyromanarmy4745 5 ปีที่แล้ว +2

    I'm new to Python where do I write the code like you do? and how do I get files like gym etc.

  • @frydcircuit3805
    @frydcircuit3805 7 ปีที่แล้ว

    Hey I just found your TH-cam channel and I just wanted to say that I really enjoyed this video and found it very informative, keep up the great work ;)

    • @SirajRaval
      @SirajRaval  7 ปีที่แล้ว

      thanks so much Fryd!

  • @alexfern8748
    @alexfern8748 4 ปีที่แล้ว +1

    Do you have links to bots that could play more complexe game, like skyrim for example?

  • @contractorwolf
    @contractorwolf 5 ปีที่แล้ว

    another great video siraj, your speed and tempo are perfect now

  • @oliveredholm4284
    @oliveredholm4284 7 ปีที่แล้ว

    Best video layout/format I've seen so far! 👍👍

  • @amosnimos
    @amosnimos 4 ปีที่แล้ว +2

    "and other environment" how do we use it on a specific game ?

  • @ChristFan868
    @ChristFan868 7 ปีที่แล้ว

    Excellent stuff as usual Siraj! Keep it up! :D

  • @andyrantshumanphilosopher7571
    @andyrantshumanphilosopher7571 2 ปีที่แล้ว

    How do i feed the data into a neural network? Do i just slap the code for the network on the end of the bot code and tell it that the input is the bot output?

  • @fractalsky2318
    @fractalsky2318 7 ปีที่แล้ว

    It doesn't seem to run for me. I'm on Windows and I am fairly certain that I have all of the prerequisites installed. Whenever I run the python code, it just closes the terminal immediately. Any troubleshooters out there?

  • @abduljilanids
    @abduljilanids 7 ปีที่แล้ว +1

    I had looked at openai when it first blew on to the scene, but with the universe update, i might have to dig in again. Also, great job at bringing fun onto ml education

  • @tim2001tw
    @tim2001tw 5 ปีที่แล้ว

    could this work in any programming area? Or only the one you use

  • @royroman6563
    @royroman6563 5 ปีที่แล้ว

    Do you have a source for your historical explanation?

  • @jaideairblade
    @jaideairblade 5 ปีที่แล้ว +1

    How can you make in a pc game witch is like a flash game? Since you just showed how to do it in the environments

  • @nisarullah7734
    @nisarullah7734 6 ปีที่แล้ว +1

    hey siraj i can't install the package of universe in pycharm i don't it shows error

  • @sgaseretto
    @sgaseretto 7 ปีที่แล้ว

    Your speed is getting better and better! Awesome video too!

    • @SirajRaval
      @SirajRaval  7 ปีที่แล้ว +1

      thanks Sebastian!

  • @evantino
    @evantino 6 ปีที่แล้ว

    I made the code in sublime text 3 but I can't run it using Python. Am I supposed to run it with python? If i am how and if i'm not what do I use?

  • @Murk781
    @Murk781 4 ปีที่แล้ว

    How do I use the Tensorflow starter bot? Are the instructions already in the description?

  • @RahulKumar-yh4ui
    @RahulKumar-yh4ui 6 ปีที่แล้ว

    What if I wanted to make an AI for an emulated game, say Pokemon FireRed emulated on any emulator say VBA? How should I go about it? Any ideas?

  • @johail3510
    @johail3510 2 ปีที่แล้ว

    For anyone who knows: how much changes if you want to make bots that are basically resource farms? In my case it is one of those "attack other players- kingdoms for resources" games. Making a fleet of bots that farm resources and keeps no army, and just moves around the map being basically free resources sounds pretty interesting, would that significantly change anything?

  • @victoryuwaoma6533
    @victoryuwaoma6533 7 ปีที่แล้ว

    COOL!!! I subscribed today and i've learnt a whole lot

  • @brpawankumariyengar4227
    @brpawankumariyengar4227 3 ปีที่แล้ว

    You are awesome ... funny and informative at the same time

  • @himself99
    @himself99 7 ปีที่แล้ว

    Your humour is awesome!

  • @soffoiramnin5503
    @soffoiramnin5503 6 ปีที่แล้ว +1

    how do you install gym and how do you have it imported with no errors?

  • @gabelarkin1796
    @gabelarkin1796 7 ปีที่แล้ว

    Came across Universe on another forum and my first thought (well actually my second!; first was to seek out more discussion at HN) was to see if Siraj had anything up re: Universe. Went to HN and you were the first comment. Winning!

    • @SirajRaval
      @SirajRaval  7 ปีที่แล้ว

      woot, thanks Gabe. #feelthelearn

  • @Dream-rc2lz
    @Dream-rc2lz 7 ปีที่แล้ว

    If i understand we can only choose on this list of game. right?

  • @danknation5286
    @danknation5286 6 ปีที่แล้ว

    I keep getting the same error when I run my code saying yaml.dump is not found, can you help me?

  • @yeskabennis1159
    @yeskabennis1159 6 ปีที่แล้ว

    is it possible to use that AI to farm in mmo games or in competitive games like dota?

  • @curiouskid1547
    @curiouskid1547 ปีที่แล้ว

    Well I was searching how to make an AI for my game. Is there a way to have the bot as part of the game the users can play against?

  • @poojanpatel2437
    @poojanpatel2437 7 ปีที่แล้ว

    You are great youtuber! Unique way to make video and very good!

  • @msorin74
    @msorin74 3 ปีที่แล้ว

    Question: does this code also work for custom made games in unity engie?

  • @narutokunn
    @narutokunn 5 ปีที่แล้ว

    What does line 8 do? Actually, how it does what its doing? I am a beginner and cant figure it out. Can you please elaborate?

  • @ma_man
    @ma_man 7 หลายเดือนก่อน

    im not sure if you will see this but i got this situation.
    there is a game on roblox, i want to farm the same level over and over again with a bot but im unsure how do i make it click stuff like choosing the correct level and moving from point A to point B

  • @LassiY
    @LassiY 2 ปีที่แล้ว

    Can anyone help me with universe. I try install with pip install universe and i get install error. I looked up and it have bad support windows 10? Do i have install other packages first or what would i do?

  • @USBEN.
    @USBEN. 7 ปีที่แล้ว

    Man you is doing great stuff .

  • @throndaxlostsoul4969
    @throndaxlostsoul4969 4 ปีที่แล้ว

    Does this support any type of game not just the given examples shown?

  • @TheOswald42
    @TheOswald42 7 ปีที่แล้ว

    Siraj, you just read my mind,
    back then I often watch com vs com in fighting games, yeah I know it is weird watching computer playing, but I enjoy watching how AI react to each other, because I set it at the highest difficulty and the fastest AI movement, and the result is fantastic, they perform beyond human level reaction capability, and if both character power gap is close, it is like watching anime fighting scenes for 15 minutes or longer in insanely intense high speed fight
    thank you for this video

    • @SirajRaval
      @SirajRaval  7 ปีที่แล้ว

      Oswald that's pretty cool i don't think that's weird. game bots are so fascinating to watch

  • @md.jannatultasnim2661
    @md.jannatultasnim2661 5 ปีที่แล้ว

    Can we use the same concept to build a recommendatiom system.?

  • @ivysly
    @ivysly 7 ปีที่แล้ว

    hey siraj. i'm a pretty amateur programmer and I don't quite understand ALL of the concepts employed in the video and the code. what should I do in terms of messing with the code to better understand what everything really does?

    • @SirajRaval
      @SirajRaval  7 ปีที่แล้ว

      read 'learn python the hard way', watch all my videos and download and run the code locally. you'll get really good really fast

    • @ivysly
      @ivysly 7 ปีที่แล้ว

      isn't that book strictly Python 2?

  • @joesadaka2534
    @joesadaka2534 7 ปีที่แล้ว

    Siraj i love your energy!!! keep it up

  • @terrylarry5658
    @terrylarry5658 6 ปีที่แล้ว

    I am a bit confused... how do you run the script?

  • @bossxero
    @bossxero 3 ปีที่แล้ว

    can we use it with an android game running inside an emulator on windows?

  • @rtluo1546
    @rtluo1546 7 ปีที่แล้ว +15

    How could you release the video the same time as they release the code.

    • @montethakkar
      @montethakkar 7 ปีที่แล้ว

      "OpenAI asked me to make this video and I gladly said yes. They are awesome!!" He says it on the description.

    • @rtluo1546
      @rtluo1546 7 ปีที่แล้ว

      Monte Thakkar I didn't see the description. This makes sense to me now.

    • @graphoverflow
      @graphoverflow 7 ปีที่แล้ว

      it says "OpenAI asked me to make this video and I gladly said yes. They are awesome!!" in the description, so he must have had early access to the code

    • @SirajRaval
      @SirajRaval  7 ปีที่แล้ว +15

      yup had early access, this was so dope worked on this all weekend and got to work with some heroes (Ilya Sutskever and Andrej Karpathy)

  • @squirtlesquadblastoise7166
    @squirtlesquadblastoise7166 5 ปีที่แล้ว

    i can use other languages for this right??? like java or javascript? im most comfortable with java.

  • @Jamesucht
    @Jamesucht 7 ปีที่แล้ว

    Could you use this to make a TAS?

  • @Shogoeu
    @Shogoeu 6 ปีที่แล้ว +8

    Technically it's not a 10 line code since all the functionality of your bot is implemented by an external library, what you made is the interface that connects the game to the actual "bot".

  • @Bikumori
    @Bikumori ปีที่แล้ว

    I get an error that says gym isn’t a module.

  • @AmrShriefIGOR
    @AmrShriefIGOR 7 ปีที่แล้ว

    amazing video overview! i have a question tho, the processing is still done on your pc or do they have a server taking care of that? and does it use GPU or CPU?

    • @SirajRaval
      @SirajRaval  7 ปีที่แล้ว +2

      on my PC. uses CPU, you can set it to GPU as well.

    • @AmrShriefIGOR
      @AmrShriefIGOR 7 ปีที่แล้ว

      thanks man

  • @tristant9686
    @tristant9686 7 ปีที่แล้ว

    Nice video! Cool libraries, never heard of them.

  • @SoberCwalk
    @SoberCwalk 7 ปีที่แล้ว +1

    Great explanation of universe. Subbed.

  • @OokamiKageGinGetsu
    @OokamiKageGinGetsu 5 ปีที่แล้ว

    @Siraj Raval
    I know diddley-squat about computer programming (other than how to use a hammer to program a laptop to become a perfect paperweight). How hard would it be for someone like me to work with OpenAI?

    • @OokamiKageGinGetsu
      @OokamiKageGinGetsu 5 ปีที่แล้ว

      @Samurai Jack Okay. I think I'd like to try this.
      Now, how hard would it be to teach an AI to play Skyrim?

  • @tmaz5845
    @tmaz5845 4 ปีที่แล้ว +1

    Can this be applied in RPG games like call of duty,pubg or freefire?

  • @RageKid20
    @RageKid20 7 ปีที่แล้ว +2

    when i try to install universe it says
    Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_mememachine/go-vncdriver
    Storing debug log for failure in /home/mememachine/.pip/pip.log

    • @danieldossantos5868
      @danieldossantos5868 5 ปีที่แล้ว +1

      They have some instructions here
      github.com/openai/universe

    • @zackjandali
      @zackjandali 4 ปีที่แล้ว

      @@danieldossantos5868 those instructions dont deal with this issue. Im having the same issue. Im using PyCharm. I've tried to change my version to 2.7 or 3.5, like they say on the github, but even after I've done that, when I type 'python --version', it says im using 3.7.4...

  • @KryometricGaming
    @KryometricGaming 7 ปีที่แล้ว +1

    What OS is Siraj running? Universe doesn't seem to be working for me on windows.

    • @KryometricGaming
      @KryometricGaming 7 ปีที่แล้ว

      ***** Does universe use a gpu? How effective would a vm on Windows work?

    • @zawzero
      @zawzero 7 ปีที่แล้ว

      Just live Boot Linux

    • @SirajRaval
      @SirajRaval  7 ปีที่แล้ว

      Mac OS X.

  • @AnonymousAccount514
    @AnonymousAccount514 6 ปีที่แล้ว

    What about the bots in fighting games like Mortal Kombat...do those use the same if/then logic?

  • @pushycake3773
    @pushycake3773 4 ปีที่แล้ว

    Helllo, I am super late, but theres this io game i want to make a deep learning bot to do, diep.io, in which you shoot your tank and shapes, other tanks, etc and try to score. Does the same thing happen here?

  • @MartinStacey
    @MartinStacey 7 ปีที่แล้ว

    does universe work with windows?

  • @kunalr_ai
    @kunalr_ai 5 ปีที่แล้ว

    Thanks for the episode

  • @randyh647
    @randyh647 7 ปีที่แล้ว

    awesome ... happy Google recommend you based on my viewing habits. lol. still trying to solve my video problem but learned more in 2 days than past 5 months thanks!

    • @SirajRaval
      @SirajRaval  7 ปีที่แล้ว

      woot, thanks Randy!

  • @bendiebiene
    @bendiebiene 3 ปีที่แล้ว +1

    I can not import gym and universe... Can someone help me?

  • @willcannady4024
    @willcannady4024 6 ปีที่แล้ว

    How can I get this bot to play a game that I have downloaded?

  • @Michael-hw2mp
    @Michael-hw2mp 3 ปีที่แล้ว

    File "demo.py", line 8
    action_n [[('KeyEvent', 'ArrowUp', True)] for ob in observation_n]
    ^
    SyntaxError: invalid syntax
    help i dont know how to fix this

  • @159abdellah
    @159abdellah 7 ปีที่แล้ว

    you had me on hello ! love your channel

  • @mderra8012
    @mderra8012 5 ปีที่แล้ว

    can i do it with notepad or sublime text 3

  • @maliktaylor6176
    @maliktaylor6176 6 ปีที่แล้ว

    This is going to sound weird but I'm interested in making an AI for Roblox, for tycoon maps is this possible? If so how?

  • @Edgedable
    @Edgedable 7 ปีที่แล้ว +5

    Mr Siraj where or what do you use to keep up with all the happenings in the ai community do you just follow reddit? I wanna be cool like you

    • @SirajRaval
      @SirajRaval  7 ปีที่แล้ว +8

      twitter & machine learning subreddit

  • @Frankthegravelrider
    @Frankthegravelrider 7 ปีที่แล้ว

    SIRAJ, 'dat content 'doe! All ways with that fresh code

  • @misteriago
    @misteriago 5 ปีที่แล้ว

    Can I use it in online games like paper.io?

  • @ilozeet
    @ilozeet 6 ปีที่แล้ว

    any follow up on openai coming up at all in 2018 siraj?

  • @Conky
    @Conky 5 ปีที่แล้ว

    why does it say the method is not iterable

  • @Naton
    @Naton 5 ปีที่แล้ว

    i dont get it, so where do i start?

  • @RyanRife
    @RyanRife 7 ปีที่แล้ว

    How hard would it be to make the "reward" just to have different pixels on the screen (ie see something different)??

    • @SirajRaval
      @SirajRaval  7 ปีที่แล้ว

      Ryan that's possible, the whole image recognition system for retrieving the reward is open source, you'd just modify it.

    • @RyanRife
      @RyanRife 7 ปีที่แล้ว

      I get that I could do the image recognition, but how do I make a particular frame, or frames, the "reward"? My only thought is to give certain images, like the 'game over' screen a weighted value under/over other non-game over screens. And if that is the case then it seems like there would be two learning machines....one to classify what is on the screen, then another to use those classifications to play the game.

  • @robertkovacs3305
    @robertkovacs3305 4 ปีที่แล้ว

    Hell,Siraj!How Can i make a bot like this for a tetris game that i made in Java?

  • @Lost-sm2vl
    @Lost-sm2vl 5 ปีที่แล้ว

    Is open ai a Coding language. what coding language are we using??? are we using Open AI or the standard Visual Studio that everyone uses....

  • @mr-01gentle6
    @mr-01gentle6 6 ปีที่แล้ว

    hi there Siraj, really nice video. what advice would you give me if I wanna learn Machine Learning given that I am a complete newbie? and thanks again for the great video.

  • @duuqnd
    @duuqnd 7 ปีที่แล้ว +1

    I'm getting "ModuleNotFoundError: No module named 'gym'". What am I doing wrong?

  • @downthelead4386
    @downthelead4386 7 ปีที่แล้ว

    loving the revolution 9 part in the beginning!

  • @hundernaut8864
    @hundernaut8864 5 ปีที่แล้ว

    The only question that i have is does that bot work on warthunder?

  • @isensmith
    @isensmith 7 ปีที่แล้ว +4

    this is fantastic,

  • @omarpasha2968
    @omarpasha2968 3 ปีที่แล้ว +1

    I wrote the code exactly as you demonstrated:
    import gym
    import universe
    env = gym.make('flashgames.CoastalRacer-v0')
    observation_n = env.reset()
    while.True:
    action_n, [[('KeyEvent', 'ArrowUp',True)] for ob in observation_n]
    observation_n,rewrd_n, done_n, info = env.step(action_n)
    env.render()
    I then ran in in my terminal, and nothing happened! What did I do wrong?

  • @jacobbarron9172
    @jacobbarron9172 6 ปีที่แล้ว

    can someone provide a link to his code editor

  • @tristant9686
    @tristant9686 7 ปีที่แล้ว

    What sublime extensions do you use?

    • @SirajRaval
      @SirajRaval  7 ปีที่แล้ว

      I really liked this article and emulated it realpython.com/blog/python/setting-up-sublime-text-3-for-full-stack-python-development/

  • @nano7586
    @nano7586 6 ปีที่แล้ว +1

    Oh man, i was hoping you could apply this to applications on your pc too (not just flash games)

  • @erickwalter6558
    @erickwalter6558 5 ปีที่แล้ว

    i need one bot for one game, is it easy to do?

  • @zacharydivis
    @zacharydivis 7 ปีที่แล้ว +1

    What is he coding this in, like what program, what is the download link, sorry I'm new to this stuff

  • @CarlBeek
    @CarlBeek 7 ปีที่แล้ว

    Hey Siraj,
    When do you intend the deadline for this challenge to be? (Please say Thur 15, 23:59 (GMT -8))

    • @SirajRaval
      @SirajRaval  7 ปีที่แล้ว

      Thursday the 15th at noon PST

    • @CarlBeek
      @CarlBeek 7 ปีที่แล้ว

      Great, thanks!

  • @Lil__Ro
    @Lil__Ro 4 ปีที่แล้ว +1

    Anybody know how you do it for multiple keys? He didn’t explain that