Closed yangruihan closed 2 years ago
Need refresh isClosed
value after calls[0].pop
?
Thank you, that is indeed a bug. I'm grateful that you are checking the experimental branch, but I have to say it is currently very unstable and probably contains many bugs. I'm surprised it is running at all right now, since I only checked the basic functionality with the testcases. Once it is in a stable state I will create a PR for review, so it's probably better to wait until then.
Is there a plan to switch to new algorithm? From my current experience, it performs better than the current algorithm.
I also tested the experimental branch and I found that it was broken in 3 players mode. I know there will be many bugs in the beta version, but I just want to say I found this problem
userscript.html?nameβ¦f8-bd29206e7ed9:447
Uncaught TypeError: view.DesktopMgr.Inst.players[player_correct].hand is not iterable
at hasPlayerHandChanged (userscript.html?nameβ¦bd29206e7ed9:447:64)
at updateDiscardedTilesSafety (userscript.html?nameβ¦bd29206e7ed9:3340:9)
at setData (userscript.html?nameβ¦bd29206e7ed9:3612:3)
at Proxy.mainOwnTurn (userscript.html?nameβ¦bd29206e7ed9:3525:2)
at it (<anonymous>:14:1074)
at t.<computed> (<anonymous>:38:422)
at it (<anonymous>:14:1074)
at a (<anonymous>:3:446)
at <anonymous>:4:111
at <anonymous>:6:169
hasPlayerHandChanged @ userscript.html?nameβ¦f8-bd29206e7ed9:447
updateDiscardedTilesSafety @ userscript.html?nameβ¦8-bd29206e7ed9:3340
setData @ userscript.html?nameβ¦8-bd29206e7ed9:3612
mainOwnTurn @ userscript.html?nameβ¦8-bd29206e7ed9:3525
it @ VM4881:14
t.<computed> @ VM4898:38
it @ VM4881:14
a @ VM4898:3
(εΏε) @ VM4898:4
(εΏε) @ VM4881:6
M @ VM4881:6
I would like to ask where is the best place to discuss bugs and suggestions in the experimental branch?
Overview
At brach experimental-ai-core-rework.
My hand is closed, but AI think is open, so it will accept call by mistack
Play log
I add some log to locate the bug.
I think it should reset
isClosed
value aftercalculateFu
.https://github.com/Jimboom7/AlphaJong/blob/1ab5172637c0645d2493450faf051af888dd5910/src/utils.js#L591