title: executing code from two files at the same time
body: <p>I'm creating a programming game with pygame, in which two users write their bots and then the main application executes the code. I'm having real trouble with this idea because it needs to execute them both in parallel while in the background it should be running the main application.</p>
  <p>I sorta managed to work around this problem using a queue (appended actions to a list), but in reality it doesn't execute the code in parallel, rather it read the lines from bot A and sends their actions to the queue. Then the other. And then executes both queues, first Bot A and then Bot B. It doesn't work good like this.</p>
  <p>I read about async, but i'm not sure how to actually adopt it and make it work. I'm not sure either if that's what I'm looking for or if I need to learn something else.</p>
  <p>You can find my code here: <a href="https://github.com/WhiteHeadbanger/SpaceWar" rel="nofollow noreferrer">https://github.com/WhiteHeadbanger/SpaceWar</a></p>
  <p>If the code is not understandable enough, I'll try to make it better, but I think it's okay</p>