Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pretty print methods should return the string, not just print #2

Merged
merged 1 commit into from
Aug 21, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions treys/card.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def print_pretty_card(card_int):
"""
Expects a single integer as input
"""
print(Card.int_to_pretty_str(card_int))
return Card.int_to_pretty_str(card_int)

@staticmethod
def print_pretty_cards(card_ints):
Expand All @@ -211,4 +211,4 @@ def print_pretty_cards(card_ints):
else:
output += str(Card.int_to_pretty_str(c)) + " "

print(output)
return output