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.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/components/ScoreBoard.js b/src/components/ScoreBoard.js
index 164c69e..d393285 100644
--- a/src/components/ScoreBoard.js
+++ b/src/components/ScoreBoard.js
@@ -26,7 +26,12 @@ const ScoreBoard = (props) => {
<span>X: {props.scoreX}</span>
<span>O: {props.scoreO}</span>
</div>
- <div className={"turnMessage"}>-- {props.turn === 0 ? "O" : "X"}'s turn --</div>
+ <div className={"turnMessage"}>
+ --
+ {` ${props.turn === 0 ? "O" : "X"}'s turn `}
+ {props.multiplayer && ` (You are ${props.isHost ? "'X'" : "'O'"}) `}
+ --
+ </div>
</div>
);
}