A hand calculator for mahjong chinese rules