Dirk-tooth / Dirk-tooth/magicJS
adding/removing players fails
Open
bug
help wanted
- Dominant language
- JavaScript
- Stars
- 2
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
issue:
When you have added a number of of players, _n_, and you remove any player that's not _n_, adding a player fails.
reason:
While trying to add a player, tries to assign the new player id to `players.length + 1` which is equal to _n_ and has already been consumed.
#14
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.