We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbb34ec commit f9f206eCopy full SHA for f9f206e
tic_tac_toe.py
@@ -10,7 +10,7 @@ def __init__(self, player_number):
10
self.score = 0
11
12
def __repr__(self):
13
- return f"{self.name} has a total score of {self.score}"
+ return f"{self.name} has a total score of {self.score} wins"
14
15
def _set_name(self, player_number):
16
self.name = input(f"Please enter name for player #{player_number}: ").title()
@@ -127,7 +127,7 @@ def play_game(player1, player2):
127
print(player1)
128
print(player2)
129
130
- play_again = input("\nWould you like to play another round of tic-tac-toe? (Y/N): ")
+ play_again = input("\nWould you like to play another round of Tic-Tac-Toe? (Y/N): ")
131
if play_again.upper() == "Y":
132
play_game(player1, player2)
133
0 commit comments