All Projects → MahjongRepository → mahjong_soul_api

MahjongRepository / mahjong_soul_api

Licence: other
Python wrapper for the Mahjong Soul (Majsoul) Protobuf objects. It allows to use their API.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to mahjong soul api

MajsoulAI
雀魂/天凤四人麻将AI;目前段位 雀魂雀圣3 天凤8段。
Stars: ✭ 93 (+210%)
Mutual labels:  mahjong, majsoul
ChineseOfficialMahjongHelper
国标麻将小助手——包含算番器、线下实麻计分器、番种详细说明、牌理等
Stars: ✭ 82 (+173.33%)
Mutual labels:  mahjong
autotable
An online mahjong table
Stars: ✭ 39 (+30%)
Mutual labels:  mahjong
Deep-Learning-Mahjong---
Reinforcement learning (RL) implementation of imperfect information game Mahjong using markov decision processes to predict future game states
Stars: ✭ 45 (+50%)
Mutual labels:  mahjong
mah
a html5 mahjong solitaire game
Stars: ✭ 33 (+10%)
Mutual labels:  mahjong
mahjong-ai
A program for investigation on deep learning model for Hong Kong Mahjong.
Stars: ✭ 24 (-20%)
Mutual labels:  mahjong
akochan-reviewer
🔍🀄️ Review mahjong game log with mjai-compatible mahjong AI.
Stars: ✭ 503 (+1576.67%)
Mutual labels:  mahjong
16mj
16 Mahjong
Stars: ✭ 15 (-50%)
Mutual labels:  mahjong
tjmj
网页的天津麻将,从 GoogleCode 导入,不活跃
Stars: ✭ 29 (-3.33%)
Mutual labels:  mahjong
pantheon
Primary Pantheon project repository
Stars: ✭ 21 (-30%)
Mutual labels:  mahjong
tenhud
HUD for tenhou.net riichi mahjong server. Shows tsumogiri and hidden tiles.
Stars: ✭ 12 (-60%)
Mutual labels:  mahjong
JapaneseMahjong
日本麻将的库,“求向听数”、“判断胡牌”、“牌面拆解”采用查表法。
Stars: ✭ 96 (+220%)
Mutual labels:  mahjong
majsoul mod plus
雀魂解锁全角色、皮肤、装扮等,支持全部服务器。
Stars: ✭ 130 (+333.33%)
Mutual labels:  majsoul

The idea of repository based on https://github.com/chaserhkj/PyMajSoul/

Python wrappers for Majsoul allow you to interact with their servers from Python scripts.

For User

  1. Install python packages from requirements.txt
  2. python example.py -u username -p password

This example is working only with Python3.7+.

Also, you need to have an account from CN server to run this example, because only accounts from CN server has the ability to login with login and password.

If you want to login to EN or JP servers you need to write your code to authenticate via email code or social network. Protobuf wrapper from this repository contains all needed API objects for that.

For Developer

Requirements

  1. Install python packages from requerements.txt
  2. Install protobuf compiler sudo apt install protobuf-compiler

How to update protocol files to the new version

It was tested on Ubuntu.

  1. Download the new liqi.json file from MS (find it in the network tab of your browser) and put it to ms/liqi.json
  2. python generate_proto_file.py
  3. protoc --python_out=. protocol.proto
  4. chmod +x ms-plugin.py
  5. sudo cp ms-plugin.py /usr/bin/ms-plugin.py
  6. protoc --custom_out=. --plugin=protoc-gen-custom=ms-plugin.py ./protocol.proto

How to update protocol files for manager API to the new version

  1. Prepare new liqi_admin.json file from MS tournament manager panel
  2. python ms_tournament/generate_proto_file.py
  3. protoc --python_out=. protocol_admin.proto
  4. chmod +x ms-admin-plugin.py
  5. sudo cp ms-admin-plugin.py /usr/bin/ms-admin-plugin.py
  6. protoc --custom_out=. --plugin=protoc-gen-custom=ms-admin-plugin.py ./protocol_admin.proto
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].