Also, I won’t explain to you how to stream your gameplay to twitch, but I used OBS to test out my examples and they work. Some of the code in here will be twitch-specific, but twitch chat is based on good old IRC, and you can take out these bits and add chat interaction with any IRC network if you want to. Install it with python3 -m pip install irc To run the examples, you need pygame, python 3.6, asyncio, and the irc module ( ). This is not exactly netcode for a fighting game, or a MMORPG, or a lock-step simulation you can use in an RTS game or a MOBA, but it is what asyncio is good for. If you have previously thought that all this async stuff was a bit too elaborate for too little gain, then you might be pleasantly surpised by a real-world example of two-way online interaction. In the last part of this tutorial sequence, we will implement integration in a pygame game.