aboutsummaryrefslogtreecommitdiff
path: root/src/components/ScoreBoard.js
diff options
context:
space:
mode:
authorMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-07-24 18:14:26 +0530
committerMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-07-24 18:14:26 +0530
commitb353dda4df7fc7be973e52a2f529360e7bfc8fed (patch)
tree95f270639f3a2fc6aa936961d9787a59a63b079e /src/components/ScoreBoard.js
parentb204876cfd803fc115029ac6501c67657dcec19e (diff)
Added menu to host/join game and protection against cheating
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>
);
}