Bot that plays NES games by making numbers go higher

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Patashu
    FFR Simfile Author
    FFR Simfile Author
    • Apr 2006
    • 8609

    #1

    Bot that plays NES games by making numbers go higher





    Ok, this isn't my work but it's really, really cool. Basically, this guy wrote a bot that plays NES games by attempting to increase addresses in memory that have a lexicographical ordering (for instance, score goes up but it has more than one byte - but lexicographically it still increases when you observe someone play) and trying multiple future sequences and greedily picking the best one. Without knowing anything about a NES game except what it sees happen in memory from the game being played once by a human (which it uses to decide what memory addresses are important, e.g. increase lexicographically), it displays emergent skill in games like Super Mario Bros due to being driven to increase score and scroll the camera right (two lexicographical orderings) and therefore to progress and not to die to hazards (preferring to get their score). It even finds glitches in the game and does insanely risky dodges purely because it keeps the bot alive.

    In the video the gameplay starts at about 6 minutes in. He's published a paper and source code for it.

    While the bot only gets so far before dying in each game, I think that if it was made more 'death-averse' somehow and looked a bit further ahead it would be able to beat simple NES platformers. It's really exciting that it can get so far with so little knowledge of the game![/i]
    Patashu makes Chiptunes in Famitracker:
    http://soundcloud.com/patashu/8bit-progressive-metal-fading-world
    http://img.photobucket.com/albums/v216/Mechadragon/smallpackbanner.png
    Best non-AAAs: ERx8 v2 (14-1-0-4), Hajnal (3-0-0-0), RunnyMorning (8-0-0-4), Xeno-Flow (1-0-0-3), Blue Rose (35-2-0-20), Ketsarku (14-0-0-0), Silence (1-0-0-0), Lolo (14-1-0-1)
    http://i231.photobucket.com/albums/ee301/xiaoven/solorulzsig.png
  • Hakulyte
    the Haku
    • Jul 2005
    • 4610

    #2
    Re: Bot that plays NES games by making numbers go higher

    Pause is best strategy ever to not die in Tetris~ that was a fun watch. That looks like an amazing tool to find glitches btw.
    Last edited by Hakulyte; 04-9-2013, 07:51 PM.

    Comment

    • Crazyjayde
      FFR Veteran
      • May 2007
      • 1169

      #3
      Re: Bot that plays NES games by making numbers go higher

      The man himself is really interesting to listen to. This is a great push in an interesting gaming direction, and I feel like this program could be exploited to explore new game mechanics.
      Impatiently waiting for the day where TAS players will be replaced by bots.

      Comment

      • darklordsarumon9
        FFR Veteran
        • Feb 2005
        • 1777

        #4
        Re: Bot that plays NES games by making numbers go higher

        Stomping Goombas from the bottom, that's great.
        This is an awesome video
        Originally posted by Choofers
        i was up aound 11 ish to my my mom textinin me over voaevover avo oover, asking if o wamt food from china so i said hai and off sent went to a p; blasnd buffet bu o wl who cares
        Originally posted by cetaka
        whats namine like in person

        Comment

        • PrawnSkunk
          Administrator
          FFR Simfile Author
          FFR Administrator
          • Dec 2007
          • 3907

          #5
          Re: Bot that plays NES games by making numbers go higher

          I'm curious as to what would happen and what limitations there would be if this bot were to "learn" FFR/Stepmania.

          Comment

          • justin_ator
            🥓<strong><span style="col
            • Mar 2007
            • 7648

            #6
            Re: Bot that plays NES games by making numbers go higher

            This was very intriguing

            Comment

            • Izzy
              Snek
              FFR Simfile Author
              • Jan 2003
              • 9195

              #7
              Re: Bot that plays NES games by making numbers go higher

              It seems like it could be infinitely good if you had a collection of input data from thousands of people across every level.

              Comment

              • Untimely Friction
                D6 Challeneged
                • Aug 2012
                • 1267

                #8
                Re: Bot that plays NES games by making numbers go higher

                Originally posted by PrawnSkunk
                I'm curious as to what would happen and what limitations there would be if this bot were to "learn" FFR/Stepmania.
                Autoplay.

                Comment

                • cedolad
                  moonchild~
                  FFR Simfile Author
                  • Jan 2007
                  • 6879

                  #9
                  Re: Bot that plays NES games by making numbers go higher

                  lol rage quit

                  Comment

                  • Oni-Paranoia
                    No fucks
                    • Dec 2006
                    • 2440

                    #10
                    Re: Bot that plays NES games by making numbers go higher

                    Originally posted by Untimely Friction
                    Autoplay.
                    A learning program would have a curve before hitting all the notes perfectly. I could imagine a program getting a boo or good as the first judgement and then trying to replicate a bunch of goods before it notices perfects give you more points (assuming you didn't play beforehand, otherwise it would probably just look like autoplay, but that's no fun).

                    Very interesting video indeed.

                    Comment

                    • ReikonKeiri
                      i wanna be ur pop star
                      • Jun 2006
                      • 2388

                      #11
                      Re: Bot that plays NES games by making numbers go higher

                      as a computer programmer nearing graduation my mind has just been completely blown. i feel retarded


                      FMO AAAs (3): Heavenly Spores (68), Fast Asleep (67)!, 0 (piano version) (66)! VC AAAs: 76
                      Best VCs: Finders Keepers (64), Purple (64), Travel Demon (63), Final Step (63), A World of Piano (63), Balloon Fever (63), The Fusion (63)

                      It's Only Natural BF
                      Southern Cross BF
                      Minute Waltz v2 BF
                      Novo Mundo BF
                      Stark Raving Mad BF
                      Midnight Dragon 1-0-0-1
                      Choprite 2 clean
                      Rottel 2 clean
                      J&C 2 clean
                      Chronograph 2-1-0-1
                      BB Evo 3 clean
                      Staring at my Spaceship 3 clean
                      Epilogue 3-0-0-1
                      Banned Forever 3-0-0-1
                      World Tour 2004 3-0-1-4
                      Demon Beast Appearance 4 clean
                      Gacha Gacha Figu Atto Radio 4 clean
                      Gravity Blast 4 clean
                      Just Why 4 clean
                      Eternal Drain [Heavy] 4 clean
                      300 4-0-0-1
                      Pure Ruby 5 clean
                      Destination of the Heart 5 clean
                      Plasmatextor 5-0-0-4
                      Oni 6 clean
                      Yorukumoryuu Yamikaze 6 clean
                      Ambient Angels 6 clean
                      Colorful Course 6 clean
                      Hajnal 6 clean
                      Arsonist 7-0-0-1
                      Setsujou! Hyakka Ryouran 7-1-0-1
                      Face in the Gutter 8 clean
                      Kanon Medley 8 clean
                      Colibri 8 clean
                      Summer Time Perfume 8 clean
                      Blindfolds Aside 8-0-0-1
                      Bubble Bath Aftermath 8-0-0-1
                      Bloody Tears 8-0-0-2
                      Ochitsukeruwakenaiwayo! [Heavy] 9 clean


                      Originally posted by Moogle-master
                      To be fair, having all the BlazBlue's isn't good taste more then it is common sense.

                      Comment

                      • arcnmx
                        nanodesu~
                        • Jan 2013
                        • 503

                        #12
                        Re: Bot that plays NES games by making numbers go higher

                        Damn, it's just so clever and simple. Great use of the emulator.

                        Originally posted by PrawnSkunk
                        I'm curious as to what would happen and what limitations there would be if this bot were to "learn" FFR/Stepmania.
                        FFR/SM is so simple it would be able to autoplay instantly. Since the bot doesn't really learn how to play the game (essentially it just tries playing it quadrazillions of different ways every second, checking each run in the emulator and picks the sequence with the best score)... As long as it can find the score, know which 4 buttons to press and looks ahead farther than the ~8 frames of timing window in a rhythm game it would never boo, miss, or do anything but perfectly hit everything.
                        Last edited by arcnmx; 04-10-2013, 05:18 AM.


                        FMO AAAs (1): Within Life :: FGO AAAs (1): Einstein-Rosen Bridge

                        Comment

                        • Izzy
                          Snek
                          FFR Simfile Author
                          • Jan 2003
                          • 9195

                          #13
                          Re: Bot that plays NES games by making numbers go higher

                          I think this bot would hit tons of boos on ffr just because it makes the score go up, but would only hit enough to prevent it from dieing.

                          Edit: oh nvm boos don't make your score go up. But goods in stepmania do despite killing your combo.
                          Last edited by Izzy; 04-10-2013, 09:08 AM.

                          Comment

                          • Reincarnate
                            x'); DROP TABLE FFR;--
                            • Nov 2010
                            • 6332

                            #14
                            Re: Bot that plays NES games by making numbers go higher

                            This is the coolest thing I have ever seen


                            edit: Wouldn't be hard to apply to rhythm games. Keep your combo going up, keep perfect count going up.
                            Last edited by Reincarnate; 04-10-2013, 09:34 AM.

                            Comment

                            • Ohaider
                              FFR Veteran
                              • Jun 2012
                              • 2893

                              #15
                              Re: Bot that plays NES games by making numbers go higher

                              This is awesome haha

                              Comment

                              Working...