}
else if (first_move)
{
- status = "Either player can make the first move.";
+ if (state.opponent_info.length == 0) {
+ status = "You can make the first move or wait for an opponent to join.";
+ } else {
+ let qualifier;
+ if (state.opponent_info.length == 1) {
+ qualifier = "Either";
+ } else {
+ qualifier = "Any";
+ }
+ status = `${qualifier} player can make the first move.`;
+ }
board_active = true;
}
else if (my_team === "")
}
else
{
- status = "Waiting for your opponent to move.";
+ status = "Waiting for your opponent to ";
+ if (state.opponent_info.length == 0) {
+ status += "join.";
+ } else {
+ status += "move.";
+ }
board_active = false;
}