LarsGast / DeckOfPlayingCards

Simple code to play with a standard deck of 52 cards
MIT License
0 stars 0 forks source link

Let `deck._index` start at 0 #9

Closed LarsGast closed 1 year ago

LarsGast commented 1 year ago

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.