Very roughly.
Something along the lines of this
- I would create a Player (players) and a Match (matches) tables.
- The match table contains 4 keys (player1, player2, player3, player4) and some extra fields (created, status, etc.)
- For each player you store some type of a skill (number) and a status (offline,lobby, playing, available), then alias, ping, etc.
- The match-making logic could search for players within a certain skill range
On 26 Jul 2017, at 19:07, yingi keme <yingikeme@gmail.com> wrote:What will be the best approach to designing a database schema that groups users in a collection of 4?
How will you create a model for lets say in an online game setting such that you want only 4 players in a single group based on thesame criteria amongst players?
Creating this model is problematic for me.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b0856edd-1adf-44b3-b1ac-bf20c39274ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment