(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 HighVoltage.
    Click here to go back to viewing the entire thread.

    #4 4 years ago

    There's various ways to approach this with AI. I don't know about this exact example, but in general the specific game rules would not need to be programmed into the software. A more advanced system would have a goal such as maximizing the score. The program would need to have access to the state of the machine, such as knowing what switches are triggered and/or what lights are lit, and how much and when the score is increased. The more it plays, the more it would learn how to navigate a path through different states of the machine to maximize score. In such a system, it naturally learns the "rules" or at least how to maximize its score which is an approximation of learning the rules. Any particular state is given a desirability value (or score, not to be confused with pinball scoring). The program learns how to navigate a path of states to maximize scoring. Some variability or randomness is added into the system, so different tactics (flip timing or angle) are tried and evaluated from each state. Rather than pinball rules, more primitive knowledge could be pre-programmed, such as the drain switch being given a large negative score.

    Anyway, that's a kind of general approach that can be used with many types of games, such as chess.

    A program might learn to make an easy shot with high degree of accuracy, and just repeat it continually as well, which would be pretty boring. But such scenarios can be avoided by attributing a higher value to achieve higher scoring per time period.

    You're currently viewing posts by Pinsider HighVoltage.
    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=HighVoltage 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.