Skip to content

Commit

Permalink
Simplify logic for is_ace and is_face_card in deck of cards solution (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanjenningz authored and donnemartin committed Oct 25, 2017
1 parent 2aa2166 commit 84c2136
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@
" super(BlackJackCard, self).__init__(value, suit)\n",
"\n",
" def is_ace(self):\n",
" return True if self._value == 1 else False\n",
" return self._value == 1\n",
"\n",
" def is_face_card(self):\n",
" \"\"\"Jack = 11, Queen = 12, King = 13\"\"\"\n",
" return True if 10 < self._value <= 13 else False\n",
" return 10 < self._value <= 13\n",
"\n",
" @property\n",
" def value(self):\n",
Expand Down

0 comments on commit 84c2136

Please sign in to comment.