sirpent-team / sirpent-rust

A multiplayer snake server to test the bounds of Rust Futures.
https://sirpent-team.github.io/sirpent-rust/
Apache License 2.0
7 stars 0 forks source link

Keep used-name list updated with dropped clients. #28

Closed 46bit closed 7 years ago

46bit commented 7 years ago

While it may be replaced by time of implementing this, play_games is already provided with a reference to names for this purpose.

46bit commented 7 years ago

I've decided not to implement this. Having player names as unique for each running of the server keeps the logs simple. But if keeping this it would be nice to dedupe clients a bit better than adding an underscore each time. I'm tempted to use _{} where {} is roman numerals counting upwards.