Jimboom7 / AlphaJong

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

I have a future suggestion for the speed of the bot calculation. #58

Closed dioarame closed 2 years ago

dioarame commented 2 years ago

With the 1.3.0 version of the update, the bot appears to show better performance than before.

However, this shows the tendency to use time for calculation every time. (when set to high performance mode)

I was thinking about "Nani Kiru?" at the bottom of the project's description and came up with the following suggestion idea.

If Bot is calculating the Nani Kiru problem to some extent, I think he can calculate the list of tiles with high importance and risk in advance after the player's turn until the next turn. Wouldn't this reduce the computational time required for the player's turn?

Of course, not if someone asks, "Is this necessary?" I think it will take a lot of effort to implement this. However, since most projects are subject to performance-related work after function-related modifications and updates, it would be good if these contents were reflected someday.

Thank you for the great project!

Jimboom7 commented 2 years ago

I thought about this for a while, but I don't think it's possible. The discards of the other players and the next tile that is drawn can change the evaluation of the hand completely in the next turn. To get an accurate result it is necessary to have the most recent data, and if you want a faster speed and a less accurate result is fine, then you can turn down the performance mode.