Skip to content

A python client library for microRTS

License

Notifications You must be signed in to change notification settings

douglasrizzo/python-microRTS

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-microRTS

PyPI version

A python client library for microRTS.

This project is a fork of the original python-microRTS, by Chris Bramford. As per the Apache License 2.0, a copy of the license is kept in the project and changes in the code (which are still minor) are documented in the commit history of the project.

If you're on GitHub and want to see usage examples, API documentation and message descriptions, access the project documentation here.

Installation

This version of python-microRTS is not available on PyPI. To install it directly from GitHub:

pip install git+https://github.com/douglasrizzo/python-microRTS.git

Overview

By running microRTS in client mode, it will allow an external process to send actions to agents via a socket interface, as well as update the external process with the current state of the game. python-microRTS makes use of this feature, more specifically the SocketAI interface in the microRTS library.

By default the SocketAI library will connect to localhost:9898. The python client is hard-coded to use these values also.

States are received as JSON strings, which are converted to Python dict objects. An action is created as a Python list of dict s, which is converted to a JSON string for socket communication.

Cite

If you want to cite this library, please use the following DOI:

DOI

About

A python client library for microRTS

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Python 100.0%