Is your feature request related to a problem? Please describe.
Starting an index at -1 and not 0 seems off. There should be a way to let it start at 0.
Describe the solution you'd like
Initialize the deck._index property at 0.
The deck.reset() method should set the index to 0.
The deck.draw() method should increment after drawing a card.
Is your feature request related to a problem? Please describe. Starting an index at -1 and not 0 seems off. There should be a way to let it start at 0.
Describe the solution you'd like Initialize the
deck._index
property at 0. Thedeck.reset()
method should set the index to 0. Thedeck.draw()
method should increment after drawing a card.