Server Update 2025-02-05¶
(This message is synchronized from Discord.)
MJAPI服务端已重启并测试。增加三麻模型3p-alpha-2。三麻模型的mjai事件和动作格式与四麻略有不同,主要体现在player_id必须在0到2之间(包括),start_kyoku中的scores和tehais长度为3,以及拔北事件或动作类型为kita。例如:
{"type":"start_kyoku","bakaze":"E","dora_marker":"S","kyoku":1,"honba":0,"kyotaku":0,"oya":0,"scores":[35000,35000,35000],"tehais":[["3p","3p","9p","9p","3s","5s","6s","7s","7s","8s","9s","P","C"],["?","?","?","?","?","?","?","?","?","?","?","?","?"],["?","?","?","?","?","?","?","?","?","?","?","?","?"]]},以及
{"type":"kita","actor":0}。
现有客户端很有可能需要修改,建议实现并测试后再使用。
The MJAPI server has been restarted and tested. The 3-player model 3p-alpha-2 has been added. The mjai event and action formats of 3-player model are a little different from those of 4-player ones, mainly: the player_id must be between 0 and 2 (inclusive), scores and tehais in start_kyoku events must have length 3, and the type of kita events or actions is kita. For example:
{"type":"start_kyoku","bakaze":"E","dora_marker":"S","kyoku":1,"honba":0,"kyotaku":0,"oya":0,"scores":[35000,35000,35000],"tehais":[["3p","3p","9p","9p","3s","5s","6s","7s","7s","8s","9s","P","C"],["?","?","?","?","?","?","?","?","?","?","?","?","?"],["?","?","?","?","?","?","?","?","?","?","?","?","?"]]}, and
{"type":"kita","actor":0}.
Current clients probably need modifications. It is advised to implement and test before using.