从零开始的雀魂ai编写---基础篇,牌谱数据

栏目:游戏资讯  时间:2022-11-10
手机版

  编写训练模型之前需要先准备数据集,本来以为只有天风的牌谱能拔,找了一下居然找到了雀魂的金之间以上牌谱,MajSoul Stats(网址:MajSoul Stats (amae-koromo.vercel.app))。

  接下来的事情就是想办法下载牌谱josn文件了,找了一下b站就有用油猴插件下载牌谱的教程:【雀魂】如何用免费AI分析牌谱 光速进步,爬了一篇金之间的牌谱(https://mahjongsoul.game.yo-star.com/?paipu=220716-b8b7fa42-7415-45d9-b571-83ac3f0c29ff_a469707764)

  先简单看一下数据:

  {

  "ver": "2.3",//看起来似乎是客户端的版本

  "ref": "220716-b8b7fa42-7415-45d9-b571-83ac3f0c29ff",//看起来是牌谱的编号

  "log": [ [ [ 0, 0, 0 ],//和后面对照了一下感觉应该是东x局x本场的编号

  [ 25000, 25000, 25000, 25000 ],//这一局开始的时候的四家分数,和后面对照了一下应该是以主视角逆时针排序的

  [ 11 ],

  [ 31 ],//这两个不是很明确,我推测是宝牌和里宝牌?接下来的应该是每巡的手牌代码,但是不知道为什么有的时候只有十个,而且似乎只有一家,牌河数据也没有体现出来

  [ 13, 13, 17, 22, 24, 25, 33, 34, 37, 37, 37, 42, 45 ],

  [ 46, 14, 14, 42, "c323334", 21, 22, 28, 38, 43, 34 ],

  [ 42, 22, 17, 60, 46, 60, 60, 60, 60, 60, 45 ],

  [ 12, 13, 22, 26, 26, 28, 29, 32, 35, 38, 41, 45, 46 ],

  [ 24, 16, 32, 46, "p464646", 41, 38, 11, 47, 44, 16 ],

  [ 32, 41, 60, 38, 16, 60, 60, 45, 60, 60, 29 ],

  [ 17, 18, 18, 19, 21, 21, 23, 24, 26, 27, 27, 33, 47 ],

  [ 12, 15, 16, 43, 39, 11, 41, 23, 37, 33, 14 ],

  [ 18, 47, 27, 60, 60, 33, 60, 24, 21, 11, 21 ],

  [ 12, 14, 15, 19, 22, 25, 27, 29, 32, 34, 35, 39, 42 ],

  [ 34, 11, 13, 17, 36, 26, 46, 53, 15, 28, 36 ],

  [ 42, 39, 22, 32, 29, 19, 60, 17, "r11", 60 ],//从这里可以看出来赤5是简单的加个r

  [ "和了", [ -6000, -3000, -3000, 13000 ],//一局结束之后的点数变化

  [ 3, 3, 3, "Haneman 3000-6000点", "Pure Double Sequence(1飜)", "All Simples(1飜)", "Fully Concealed Hand(1飜)", "Pinfu(1飜)", "Riichi(1飜)", "Dora(1飜)", "Red Five(1飜)", "Ura Dora(0飜)" ] ] ],//这个是啥玩意也看不懂

  [ [ 1, 0, 0 ],

  [ 19000, 22000, 22000, 37000 ],

  [ 47 ],

  [ 34 ],

  [ 13, 15, 15, 21, 25, 26, 28, 31, 32, 34, 38, 42, 46 ],

  [ 39, 33, 41, 41, 11, 45, 21, 29, 14, 43, 13 ],

  [ 42, 46, 21, 28, 34, 60, 60, 60, 11, 60, 39 ],

  [ 15, 24, 52, 25, 26, 26, 28, 29, 34, 35, 35, 38, 44 ],

  [ 46, 14, 51, 24, 25, 47, 34, 17, 11, 37, 43, 32 ],

  [ 38, 44, 46, 29, 28, 60, "r25", 60, 60, 60, 60, 60 ],

  [ 14, 16, 17, 22, 23, 23, 27, 29, 29, 36, 39, 47, 47 ],

  [ 13, 17, 46, 39, 21, "p474747", 13, 45, 39, 36, 16, 37 ],

  [ 39, 29, 60, 60, 29, 23, 27, 17, 60, 45, 17, 14 ],

  [ 12, 18, 19, 21, 24, 28, 31, 33, 53, 38, 41, 42, 43 ],

  [ 42, 27, 41, 23, 44, 31, 45, 22, 32, 19, 16 ],

  [ 42, 42, 38, 21, 60, 60, 31, 12, 43, 32, 45 ],

  [ "和了", [ 0, 25000, -24000, 0 ],

  [ 1, 2, 1, "Baiman 24000点", "Seven Pairs(2飜)", "All Simples(1飜)", "Riichi(1飜)", "Red Five(2飜)", "Ura Dora(2飜)" ] ] ] ],

  "ratingc": "PF4",

  "rule": { "disp": "Gold Room South", "aka53": 1, "aka52": 1, "aka51": 1 },

  "lobby": 0,

  "dan": [ "Expert I", "Expert I", "Expert I", "Expert II" ],

  "rate": [ 354, 370, 600, 1314 ],

  "sx": [ "F", "M", "F", "F" ],

  "name": [ "たなたなべ", "Dordie", "榴莲Sierra", "叶子521" ],

  "sc": [ 19000, -11, 46000, 36, -2000, -42, 37000, 17 ],

  "title": [ "Gold Room South", "2022/7/16 20:14:18" ]

  }

上一篇:B站2021年度游戏大赏颁奖,《双人成行》获年度最佳游戏
下一篇:狼人杀系列(1)