ai-economy-simulator / ecosim-server

Apache License 2.0
0 stars 2 forks source link

Added feature to dispose rooms will get auto disposed after 10 sec if <= 1 clients are connected #6

Closed sidharth2829 closed 2 months ago

sidharth2829 commented 9 months ago

Closes #1

I have added a timer and a function that will check if the clients are <= 1 every 10 sec and if conditions are met then room will be disposed.

Screenshot 2024-01-03 at 5 09 28 PM
fliptrail commented 9 months ago

@sidharth2829 I've marked changes for review. I've increased difficulty from moderate to hard for the issue to account for the work done. We can chat on discord if you have any questions.

sidharth2829 commented 9 months ago

@fliptrail , i have made the necessary changes, please review them

fliptrail commented 9 months ago

@sidharth2829 I've added comments. The current logic will fail in multiple scenarios.