News for hackers. Stuff that matters.
Re:Ask HN: Building a game for AI Research by RobertoG on Friday May 04, 2018 @05:12AM (#16993217)
>"I tried reading TF/PyTorch docs but couldn't find a guide on how to make my game a friendly environment"

Are you aware of 'Elf' and 'TorchCraft' by Facebook (creators of Pytorch)?

From https://facebook.ai/developers/tools/elf :

"ELF provides an end-to-end solution for game research. It includes miniature real-time strategy game environments, concurrent simulation, distributed training over thousands of machines, intuitive APIs, web-based visualizations, and a reinforcement learning framework powered by PyTorch."

From https://facebook.ai/developers/tools/torchcraft :

"TorchCraft is a Brood War API (BWAPI) module that sends StarCraft data out over a ZMQ connection, allowing researchers to parse StarCraft data and interact with BWAPI from C++, Python (PyTorch-friendly), and Lua (Torch-friendly)."

Re:Ask HN: Building a game for AI Research by keerthiko on Friday May 04, 2018 @02:58PM (#16997265)
Thanks for mentioning these!

I started exploring this after seeing TorchCraft on HN yesterday (https://news.ycombinator.com/item?id=16979136) and I worked on a BWAPI AI back in college myself (2009).

I took a look at ELF hoping it was a library or module I could integrate into my project to make it applicable with PyTorch, but it was its own gym complete with full game examples.