Tick Python instances from Python
<p>I am interrested in doing a programming game using python, and I would like to do it in the style of GunTactyx (<a href="http://apocalyx.sourceforge.net/guntactyx/index.php" rel="nofollow">http://apocalyx.sourceforge.net/guntactyx/index.php</a>). Only much simpler, as I am primarily interrested in the parallel execution of python scripts from python.</p>

<p>Gun Tactyx challenges the player to write a program that controls individual units working together in teams, where each instruction carries a time panalty. Each program is executed in its own protected environment, communicating with the game world through functions that can interact with the game world.</p>

<p>I was wondering if there is a Python way of achieving similar effect. </p>

<p>Pseudo code structure of the game engine would be something like:</p>

<pre><code>Instantiate units with individual programs
while 1
   Update game world
   for unit in units:
      unit.tick()
</code></pre>

<p>The simulation would run until a timeout or some goal condition.</p>

<p>Kind regards</p>

<p>/Tax</p>
