r/foojay • • 11d ago

I Trained a Neural Net to Play Pokémon (and Java runs the whole league)

On Foojay, Nicholas D'hondt explains how he trained a neural network to play the Pokémon Trading Card Game. It has played more than 4.2 million games against itself and other decks, and he now uses it as a sparring partner for his own decks.

The setup uses three languages. Node runs the games with an existing JavaScript engine, Python trains the net with PyTorch and PPO, and Java schedules everything with JobRunr: parallel games, training, testing, promoting winners and recovering after crashes.

The article also covers deterministic job ids, rate limiters and a port of Python's random number generator to Java. The author works at JobRunr.

Full article: https://foojay.io/today/i-trained-a-neural-net-to-play-pokemon/

3 Upvotes

0 comments sorted by