<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>TadaoYamaoka</author_name>
  <author_url>https://blog.hatena.ne.jp/TadaoYamaoka/</author_url>
  <blog_title>TadaoYamaokaの開発日記</blog_title>
  <blog_url>https://tadaoyamaoka.hatenablog.com/</blog_url>
  <categories>
    <anon>麻雀AI</anon>
  </categories>
  <description>強化学習実装の準備として、牌譜の記録/再生を実装した。PPOでは、エピソードの終端の報酬を、GAEで各ステップの状態に割り当てるため、エピソードの各ステップの状態を再生できるように記録しておく必要がある。 また、ランダムな初期局面からの対局を再生できるように、対局の開始状態（手牌、河、牌山）を記録しておく必要がある。通常の麻雀の牌譜で使われるフォーマットでは対応できないため、独自のフォーマットで記録する。 フォーマット 記録が必要な情報 ゲームルール（赤牌有無やクイタン有無など） 起家 各局の初期局面（手牌、河、牌山） 各局のアクション（打牌、副露、槓、和了） 打牌後に副露できる状態で誰も副露…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftadaoyamaoka.hatenablog.com%2Fentry%2F2023%2F11%2F05%2F142036&quot; title=&quot;麻雀AIを深層強化学習で作る その８(牌譜の記録/再生) - TadaoYamaokaの開発日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-11-05 14:20:36</published>
  <title>麻雀AIを深層強化学習で作る その８(牌譜の記録/再生)</title>
  <type>rich</type>
  <url>https://tadaoyamaoka.hatenablog.com/entry/2023/11/05/142036</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
