diff options
author | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-07-24 18:14:26 +0530 |
---|---|---|
committer | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-07-24 18:14:26 +0530 |
commit | b353dda4df7fc7be973e52a2f529360e7bfc8fed (patch) | |
tree | 95f270639f3a2fc6aa936961d9787a59a63b079e /src/components/ScoreBoard.js | |
parent | b204876cfd803fc115029ac6501c67657dcec19e (diff) |
Added menu to host/join game and protection against cheating
Diffstat (limited to 'src/components/ScoreBoard.js')
-rw-r--r-- | src/components/ScoreBoard.js | 7 |
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> ); } |