Dwarf Fortress strikes me as a game that would benefit from a strong engine / UI split, with an API for querying the world state.
That said, DFHack is probably sufficient for this purpose.
That said, DFHack is probably sufficient for this purpose.
Obviously there's no official API, but the developer has somehow managed to achieve something similar.
https://apps.apple.com/us/app/dwarf-fortress-remote/id100366...