aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-08-15 14:45:23 +0530
committerMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-08-15 14:45:23 +0530
commitcf81a281889a7f498632b6545acb3ee310f4a4e3 (patch)
tree76548dc7cc8920676a2479dabba2c674d590aa96 /src/components
parentc5cd958aa779cd6a4093bdc5c5bc15083c0032d8 (diff)
changed prompt to something easier to read
Diffstat (limited to 'src/components')
-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>
);