Quoted By:
The basis of the multiplayer backend has been implemented. Its not a sexy part of game dev, but it kind of needs to be there and working obviously.
Just a basic two-person matching "system". Once a person joins, a match is created and the next person that joins goes through the list of matches looking for the oldest one that has a slot open. If no match with an empty slot can be found, a new match is created. Once a match has no people in it, it is removed from tracking.
Honestly the "tricky" part was setting it up so that if someone joins a match, they always get assigned all of the "opposite" roles of the person already in the match (other side of the field, different color, etc).
The BIGGEST part of all of this is that once a match is set up and full, each player gets a handle to their opponent, so now I can FINALLY start working on the PvP code.