You've already forked system-design-primer
mirror of
https://github.com/donnemartin/system-design-primer.git
synced 2025-06-12 21:47:33 +02:00
Fix loop bug in deck of cards exercise (#396)
This commit is contained in:
@ -122,7 +122,7 @@
|
|||||||
"\n",
|
"\n",
|
||||||
" def score(self):\n",
|
" def score(self):\n",
|
||||||
" total_value = 0\n",
|
" total_value = 0\n",
|
||||||
" for card in card:\n",
|
" for card in self.cards:\n",
|
||||||
" total_value += card.value\n",
|
" total_value += card.value\n",
|
||||||
" return total_value\n",
|
" return total_value\n",
|
||||||
"\n",
|
"\n",
|
||||||
|
Reference in New Issue
Block a user