1

I have two separate files, one with a player-controlled game and another with an IA-controlled game. My goal is to run those 2 files at the same time and in the same interface.

I already tried multiprocessing but the two files are running in different interfaces.

  • 1
    You can have the interface be separate from the player-controlled and AI-controlled files, and have all the communication be handled between processes. This is usually why people decouple the ["model, view and controller"](https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller) Or your player-controlled file will have to be connected to the AI-controlled one, but the AI-controlled one will have to function totally differently, such that it only sends and receives data to and from the player-controlled file, without trying to run its own copy of pygame. – Random Davis Feb 09 '22 at 23:54

0 Answers0