If you get a WL membership you get access to the WL API, which is what you are asking for.
See:
https://www.warlight.net/wiki/API for details (Querry Game API is what you would be looking at)
Getting a M' now also means you could develop it as a Mod.
"this program would become worthless once you meet an opponent"
If you want to make an AI, then you could use this
https://www.warlight.net/blog/index.php/2016/02/the-warlight-ai-goes-open-source/ (includes a way to run your AI in MP games.) No M is needed for that part. (I belive)
To me the programming forum would fit better. It's Map Development, not just Map ;)
Edited 6/26/2017 14:37:45