diff options
author | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-08-15 14:45:23 +0530 |
---|---|---|
committer | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-08-15 14:45:23 +0530 |
commit | cf81a281889a7f498632b6545acb3ee310f4a4e3 (patch) | |
tree | 76548dc7cc8920676a2479dabba2c674d590aa96 | |
parent | c5cd958aa779cd6a4093bdc5c5bc15083c0032d8 (diff) |
changed prompt to something easier to read
-rw-r--r-- | src/components/ScoreBoard.js | 8 |
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> ); |