The quest to make an AI that can play competitive Pokmon – The Verge

Posted: December 5, 2021 at 12:02 pm

An AI can beat a chess grandmaster. An AI can become the StarCraft esports champion. But creating an AI that could play Pokmon at the competitive level has been a more elusive problem.

Thanks to the variety of monsters, stats, moves, and items, a Pokmon battle has hundreds of thousands of factors for any player or machine to consider. But that hasnt stopped some people from trying. Most recently, Future Sight AI, created by computer scientist Albert III, successfully made it into the top 5 percent of the competitive ladder.

Albert posted a video explaining how it all works, but to summarize, the bot takes in all the information it can about the current state of the game, extrapolates the possibilities for all the turns it could take, looks a couple of turns ahead to how these would play out, and then chooses the option that can lead to the highest number of best outcomes. By doing all of that within 15 seconds, turn after turn, it can beat all but the very best human players.

Thats pretty impressive, especially when you consider that Albert had almost no experience with artificial intelligence or other major aspects of the program before he started working on it. I took classes in college about machine learning, [but] the real question is: was I paying attention? he laughs. The main software that it runs on is called Node.js. I hadnt touched that at all before I started this project.

Even though computer science is my day job, its something that I love so much that I cant help but do it in my free time, too, he says. That passion, combined with pandemic boredom, propelled him to look into an idea that was first inspired by his interest in basketball. [Some websites] would do this thing where youd be able to watch a game and see the teams current chance of winning, and I thought about doing that for Pokmon, he says. Then just kind of one thing led to another and then I ended up with an AI on my hands.

One thing leading to another is a pretty good summary of Alberts work on Future Sight AI. He says he wanted to learn new skills and simply broke them down into small enough tasks until he was able to create his vision. This is such a bad reference but theres that song in Frozen 2, called The Next Right [Thing]. Its just that. Just keep doing that until you get somewhere, he says. Nowadays, for example, he knows Node.js so well that he can use it in projects at his day job, too.

His step-by-step approach means that he actually wasnt aware of previous attempts to make similar AIs. Earlier projects are not as well documented as Alberts, though there have been a few varying success levels that gained some attention within the community.

An early example was Technical Machine, first created in 2010. Though it was updated through 2019, Technical Machine only ever fully supported Pokmon up to Generation 4 and did not create its own teams, one of the key features of Future Sight. Additionally, at the time of its release, the competitive ladder base was not established in the same way, so its difficult to tell how successful Technical Machine was overall. One Reddit comment, however, stated that Technical Machine at its smartest was still leagues worse than a normal player.

Another example was posted on Reddit in 2015 by a user who went by onmabd. Comments indicated that it was one of the stronger bots to date. The competitive ladder gives players a ranking of 1,000 to begin with, which then goes up or down depending on wins and losses. Theres no public way to view the data, and it changes over time, so its tricky to evaluate what a good rank is. However, during his creation process, Albert found that the average players ranking settles at around 1,170. Onmabds AI managed to reach 1,300, which would put it in the top 30 percent.

More recently, a user on Pokmon community forum Smogon going by pmariglia shared another attempt. Their AI beat Technical Machine in a best of three and was able to reach a rating of between 1,250 and 1,350 again, around the top 30 percent.

Future Sight AI ranked at 1,550 on average during testing. Though Albert apologized on Smogon for making it seem in my video that [Future Sight] is the first bot of its kind or the first to get as far as it did, (as well as detailing where the two projects take different approaches) he says that ultimately hes glad he didnt know that other people had already attempted his project. I dont know why I never thought to look into it [but] if Id gone down their path I might have ended up with the same results, he says.

He also was never expecting the video to gain as much attention as it did. For starters, when I ask about its creation, he laughs. I have to reveal something, he says. That entire video was animated in Powerpoint. I have to say I dont have much video production experience [so] I had an idea for what I wanted the video to look like and I just kind of kept working on it until I could get the tools that I knew how to use to do it.

Then, there was the delayed reaction. Posted in July, it was only viewed about 100 times in its first three weeks. The next week, it jumped up to 300,000. (As of late November, its almost at 600,000 views.) Albert thinks that it was picked up by somebody in the Pokmon community who posted it to Twitter, causing it to blow up, but he never found out who.

He says that it was difficult to process the sudden influx of viewers, but that he was appreciative of how supportive the Pokmon community was. I kind of just had to take a step back a bit because the whole point of what Im doing is that I want to teach people about computer science, he says.

In particular, as a Black man, Albert wants to be the kind of representation he never had in the field. I figured I have experience in public speaking, I like doing projects that people might find interesting, so really I wanted to put out a channel that said, This can be an example of someone like you doing fun things in computer science. Thats genuinely the core of why Im doing all of this.

For now, his focus is on getting Future Sight playable in actual Pokmon games. Thus far, it has used Pokmon Showdown, a community-created simulator that allows online battling and functionally forms the center of the competitive scene. But early on Albert was hinting that he wanted to make something that could tie in with the releases of Brilliant Diamond and Shining Pearl. Most recently, hes managed to get it to beat the final boss of Sword and Shield, despite not having any code to deal with Dynamaxing, which is banned in common competitive settings.

Beyond that, he doesnt have too many concrete goals. I mean this is such a corny thing, but I want it to be the very best like no one ever was, he says, echoing the old Pokmon anime theme tune. But seriously, I dont know. I just started this for fun and I want to take it as far as I still find joy out of making it.

See the rest here:

The quest to make an AI that can play competitive Pokmon - The Verge

Related Posts