Dirk-tooth / Dirk-tooth/magicJS

Add/Remove Counters fails

Open
#16 2 comments 0 reactions 2 assignees Claimed by @jkyle View on GitHub
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 counters, n, and you remove any counter that's not n, adding a counter fails.

reason:
While trying to add a counter, tries to assign the new counter 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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.