Farama-Foundation / MicroRTS-Py

A simple and highly efficient RTS-game-inspired environment for reinforcement learning (formerly Gym-MicroRTS)
MIT License
234 stars 45 forks source link

Start the environment with a specific board state #83

Closed yanmluk closed 2 years ago

yanmluk commented 2 years ago

Hi,

I would like to query the trained agent for actions given different board state. Is it possible to start the board with a given state/configuration instead of the default state generated by envs.reset()?

vwxyzjn commented 2 years ago

You can probably generate a different map. https://github.com/vwxyzjn/microrts/blob/2c8a626498b71e44beaaac9c311cd0a25b74a275/src/gui/frontend/FrontEnd.java has a GUI editor for the maps