I am looking for a virtual machine I can embed inside a game.
The idea is that I create a game world and two avatars. Inside the avatars I embed a virtual machine that can interact with the avatar in the game world using an api, like:
move_forward()
turn_left()
turn_right()
sense()
etc.
In each tick i will allow each VM to update X ticks progressing each. Two different programs would then be uploaded to each VM and be executed independently. The whole setup should be robust against crashing programs inside the VM.
I would prefer to work in Python, and my environment is C# but I am open for suggestione.
The idea is heavily inspired by the game GunTactyx, but I find the language used there too narrow, as I aim it to be a learning platform to move further into programming.
Do you know any VM that allow me to do this?
kind regards
Jesper