just a little bit of self promotion, as a treat:
i think more people should read and cite my paper on my using multiset rewriting (secretly: linear logic) to represent game mechanics, showcasing my programming language ceptre:
https://www.convivial.tools/PapersPublic/ceptre-tog.pdf
there was a much earlier paper i wrote towards the end of my phd (2015) that described the language, but this one is a proper implementation-independent definition, meant to show how one could implement these ideas from scratch.
@chrisamaphone this is super neat, I didn't know you were into rewriting : )