Add guest login branch, smarter Doudizhu bot logic, and responsive Guandan layout tweaks#10
Merged
Conversation
Owner
Author
|
@codex[agent] Code review |
Contributor
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Description
authModeand initializingguestModefromgetURLParam('auth'), and make auto-login token lookup conditional onauthModeinstatic/index.htmland the client bootstrap.authMode === 'discuz'and show guest input whenauthMode === 'guest'.evaluateDoudizhuHandandshouldCallDoudizhuScorehelper functions inserver.jsand use them inbotCallScoreto derive call decisions from the bot's hand, reducing purely random calls.botPlayCardto detect an immediateallOutviagame.validate(posId, handRaw)and play the whole hand when valid, while keeping the existing AISuggest fallback and defensive validation.config.example.jsonwith login mode guidance (_LOGIN_MODES) and minor formatting, and add a README line mentioning the guest login entry.static/index.htmland apply multiple CSS adjustments instatic/css/style.cssto center and scale.room-guandan .player-top, add.guandan-teamslayout, reposition.team-tag, and tweak mobile transform/scale values for better centering and z-index.Testing
Codex Task