Skip to content

Commit f9f206e

Browse files
committed
Wording correction
- added "wins" to output of total scores - changed case of Tic-Tac-Toe game in play_again
1 parent dbb34ec commit f9f206e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tic_tac_toe.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def __init__(self, player_number):
1010
self.score = 0
1111

1212
def __repr__(self):
13-
return f"{self.name} has a total score of {self.score}"
13+
return f"{self.name} has a total score of {self.score} wins"
1414

1515
def _set_name(self, player_number):
1616
self.name = input(f"Please enter name for player #{player_number}: ").title()
@@ -127,7 +127,7 @@ def play_game(player1, player2):
127127
print(player1)
128128
print(player2)
129129

130-
play_again = input("\nWould you like to play another round of tic-tac-toe? (Y/N): ")
130+
play_again = input("\nWould you like to play another round of Tic-Tac-Toe? (Y/N): ")
131131
if play_again.upper() == "Y":
132132
play_game(player1, player2)
133133

0 commit comments

Comments
 (0)