Jimboom7 / AlphaJong

A Mahjong AI for Mahjong Soul
GNU General Public License v3.0
401 stars 55 forks source link

There seems to be a problem with the variable declaration. #33

Closed dioarame closed 2 years ago

dioarame commented 2 years ago

image image image image image

From line 278 to 494 and 652 to 656, Tempermonkey said eslint : no-undef warning message.

How can fix this warning?

Also, several parts deal with yaku have warning / error message. Please check it and if I did wrong install, please reply.

Jimboom7 commented 2 years ago

These warnings are perfectly normal. The code is referencing the game code of Mahjong Soul, which is unknown to Tampermonkey. That's why Tampermonkey thinks its undefined, but as soon as you are in the game the variables exist and everything should work fine.

dioarame commented 2 years ago

In addition, AI does not seem to take into account the other player's Big Three Dragon and the Chinitsu when they call several times. Is there any way to improve this?