(Topic ID: 254006)

Teaching "Machine Learning" / AI to play Pinball?

By okayestpinballer

4 years ago


Topic Heartbeat

Topic Stats

  • 14 posts
  • 10 Pinsiders participating
  • Latest reply 4 years ago by jackd104
  • Topic is favorited by 1 Pinsider

You

Linked Games

No games have been linked to this topic.

    Topic Gallery

    View topic image gallery

    wargames (resized).jpg
    pin_ml (resized).png

    You're currently viewing posts by Pinsider paddlepaw.
    Click here to go back to viewing the entire thread.

    #2 4 years ago

    I think the AI would have to know the machine rules. There is a video where this was done with super mario bros. The AI would learn to progress by not dying. It knew what death looked like in memory is my guess. When it encountered the death state it would remember where and when it happened as well as what it was doing when it happened. Example: walk right on level 1-1 until mario hits the goomba. Next time it'll try jumping on/over that obstacle until it clears it. Same thing with a pit. First time it'll jump 1 tile width. If that does not work next time jump 2 tile widths, etc. If it gets past the goomba it'll do this trial and error process over and over each time it dies until it finally reaches the game over state where it has actually won the game. I'd think the pin AI would do something similar using a camera so it knows where to hit each shot. Imagine if you never missed a shot once you learned where to flip as the ball rolls down the flipper. It'd be interesting to see how it handles multiball. This is all conjecture of course. I don't know how the pin AI actually works. Just basing it off what I read about AI on game emulation. Very interesting.

    If the AI does not know the rules it'd try to keep the ball in play and learn what shots will allow it to do that. Once it learns that it can hit the left ramp on phantom of the opera which returns to the right flipper it'll just do that over and over because it knows it won't drain.

    You're currently viewing posts by Pinsider paddlepaw.
    Click here to go back to viewing the entire thread.

    Reply

    Wanna join the discussion? Please sign in to reply to this topic.

    Hey there! Welcome to Pinside!

    Donate to Pinside

    Great to see you're enjoying Pinside! Did you know Pinside is able to run without any 3rd-party banners or ads, thanks to the support from our visitors? Please consider a donation to Pinside and get anext to your username to show for it! Or better yet, subscribe to Pinside+!


    This page was printed from https://pinside.com/pinball/forum/topic/teaching-machine-learning-ai-to-play-pinball?tu=paddlepaw and we tried optimising it for printing. Some page elements may have been deliberately hidden.

    Scan the QR code on the left to jump to the URL this document was printed from.