aboutsummaryrefslogtreecommitdiff
path: root/src/components/ScoreBoard.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/ScoreBoard.js')
-rw-r--r--src/components/ScoreBoard.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/components/ScoreBoard.js b/src/components/ScoreBoard.js
index d393285..5ced105 100644
--- a/src/components/ScoreBoard.js
+++ b/src/components/ScoreBoard.js
@@ -27,10 +27,10 @@ const ScoreBoard = (props) => {
<span>O: {props.scoreO}</span>
</div>
<div className={"turnMessage"}>
- --
- {` ${props.turn === 0 ? "O" : "X"}'s turn `}
- {props.multiplayer && ` (You are ${props.isHost ? "'X'" : "'O'"}) `}
- --
+ -- {props.multiplayer
+ ? ` ${props.turn === 0 ? (props.isHost ? "Opponent's turn" : "Your turn") : (props.isHost ? "Your turn" : "Opponent's turn")} `
+ : ` ${props.turn === 0 ? "O" : "X"}'s turn `
+ } --
</div>
</div>
);