Equim-chan / Mortal

🚀🀄️ A fast and strong AI for riichi mahjong, powered by Rust and deep reinforcement learning.
https://mortal.ekyu.moe
GNU Affero General Public License v3.0
929 stars 118 forks source link

py/reward_calculator: use default value for pts #20

Closed wongsingfo closed 1 year ago

wongsingfo commented 1 year ago

This PR fixes a minor bug in reward_calculator.py: if we call the RewardCalculator constructor with pts=None, the program fails because we cannot create a tensor with a None value.