tattle-made / viral-spiral-backend

a multiplayer card game about sharing news on the internet
https://tattle.co.in/products/viral-spiral/
GNU General Public License v3.0
0 stars 2 forks source link

Make the number of communities toggle-able depending on the number of players #130

Open Bhargav-Dave opened 1 year ago

Bhargav-Dave commented 1 year ago

Currently in 0.2.0, the number of communities are fixed and set to 2, however they should be dynamic and change depending on how many players are joining one room.

This has to do with a couple of things, firstly, the way in which the colors are imported in the following file: https://github.com/tattle-made/viral-spiral-backend/blob/cf51731e040262189889290c62c3e78eca73a739/main_loop/templates/index.html#L99

It also has to do with the set_dynamic function present over here: https://github.com/tattle-made/viral-spiral-backend/blob/cf51731e040262189889290c62c3e78eca73a739/models/card.py#L177