In case you are using these boards in conjunction with a web server, you'll want to set player roles. With player roles, the current viewer of the board can be assigned to one of the following:
-
spectator - No mouse-based move operations will be allowed (but programmatic moves will still be allowed). This is intended to let spectators follow along with a game two others are playing
-
white - Only make moves when it is white's turn
-
black - Only make moves when it is black's turn
-
analysis - Make moves for both sides. Intended for local play (two players sharing the same device) or analyzing a set of moves played in a game. This is the default.
<div style="width: 575px; height: 500px">
<hexchess-board
id="hexchess-board"
board="start"
orientation="white"
player-role="white"
></hexchess-board>
</div>