I'm building a very simple multiplayer web game. It's tron lightcycles, but to turn, the user must solve an arithmetic problem.
I've been working on a particular problem for 2-3 days because I didn't fully understand what was going on. Every time a game started, I would create an instance of a class called Flux in which to store game data. The problem was, since there are two players, two instances of Flux are created.
I need only one, and I need to be able to share this instance with the opposing player. How?
I'm using django 1.11.17, django-channels 1.x, python 3.6
I looked at this answer: Issue with setting value for Python class inherited from multiprocessing.Process
Is the multiprocessing module a good fit for my case?