Fix main nav function syntax issue.

This commit is contained in:
yukirij 2024-08-23 14:11:48 -07:00
parent 9437a81bfb
commit 16786906b8
2 changed files with 10 additions and 1 deletions

View File

@ -14,3 +14,12 @@
- The turn counter is displayed in the top-right corner. - The turn counter is displayed in the top-right corner.
- The status of the game may be displayed in the bottom-left corner. - The status of the game may be displayed in the bottom-left corner.
- If the user hovers over a tile, the position and piece are displayed in the top-left corner. - If the user hovers over a tile, the position and piece are displayed in the top-left corner.
## Practice Mode
### Auto Play
Auto play makes moves for one player using a forward-looking score-based algorithm.
To start auto play, click the Auto button; auto play selects a player based on the rotation of the board.

View File

@ -103,7 +103,7 @@ const UI = {
left.appendChild(UI.button("Register", () => { LOAD_STACK(SCENES.Register); })); left.appendChild(UI.button("Register", () => { LOAD_STACK(SCENES.Register); }));
left.appendChild(UI.button("Log In", () => { LOAD_STACK(SCENES.Authenticate); })); left.appendChild(UI.button("Log In", () => { LOAD_STACK(SCENES.Authenticate); }));
} else { } else {
left.push(UI.button("Start", () => { MESSAGE_SESSION_START(); })); left.appendChild(UI.button("Start", () => { MESSAGE_SESSION_START(); }));
} }
for(child of left_children) { left.appendChild(child); } for(child of left_children) { left.appendChild(child); }