gcpreston / cuberacer_live

🧩 Twisty puzzle racing platform
https://cuberacer.io
0 stars 0 forks source link

Make ParticipantData module #114

Closed gcpreston closed 1 year ago

gcpreston commented 1 year ago

Currently in RoomServer, the :participant_data key of RoomServer struct is a Map with a specific structure, but this structure is not clear and one must interpret it based on the code modifying it within RoomServer. The proposal is to make a separate ParticipantData module (or something with a better name), either as a submodule of RoomServer or in its own file, which would handle any operations on this data structure.

The other idea is to expand this to the whole of RoomServer's state. I'm not sure exactly what this would look like, but it seems like an idea to keep in mind.

gcpreston commented 1 year ago

A version of this is handled in #124