<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>karmen</author_name>
  <author_url>https://blog.hatena.ne.jp/karmen/</author_url>
  <blog_title>人工知能 -Artificial Intelligence-</blog_title>
  <blog_url>https://miyazawa.hatenadiary.jp/</blog_url>
  <categories>
    <anon>ゲーム制作、プログラム</anon>
  </categories>
  <description>昨日のエントリーでは「将棋盤をメモリ上にどう持つか」「駒を数で扱うために」の二点を説明しました。 んで今回は「駒をどう動かすか」の説明になります。 まず １：行き先が駒の働きと合っているか（歩なら前に一歩、金なら六方向） ２：盤の端より先に行こうとしていないか（行列の特性上、インデックス値が駒の左端と上の行の右端が連番で繋がっているため、上下左右の端であるチェックが必要） ３：行き先が自分の駒ならそこには進めない ４：行き先が相手の駒なら取って手駒とする（手駒の構造は説明がまだでしたね） ５；香車、飛車、角の場合、飛び利きが自分の駒の手前、相手の駒の位置で切れる これらの処理はいちばん簡単な実…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmiyazawa.hatenadiary.jp%2Fentry%2F2024%2F10%2F26%2F065808&quot; title=&quot;将棋ベーシック改の仕様説明会その２「合法手生成」 - 人工知能 -Artificial Intelligence-&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>https://cdn-ak.f.st-hatena.com/images/fotolife/k/karmen/20241026/20241026065328.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-10-26 06:58:08</published>
  <title>将棋ベーシック改の仕様説明会その２「合法手生成」</title>
  <type>rich</type>
  <url>https://miyazawa.hatenadiary.jp/entry/2024/10/26/065808</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
