<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>s51517765</author_name>
  <author_url>https://blog.hatena.ne.jp/s51517765/</author_url>
  <blog_title>プログラミング素人のはてなブログ</blog_title>
  <blog_url>https://s51517765.hatenadiary.jp/</blog_url>
  <categories>
    <anon>C/C++</anon>
    <anon>M5Stack</anon>
    <anon>アルゴリズム</anon>
    <anon>電子工作</anon>
  </categories>
  <description>s51517765.hatenadiary.jp 先日投稿したぷよインベーダーのプログラムの中から、ぷよとインベーダーが消せるかどうか、の判定部分について解説します。 技術的には「再帰」と「深さ優先探索」「状態遷移」で構成しています。 画面上（プレイエリア）を升目と考える 緑色の部分には最初にエイリアンが配置されていて、それ以外は空白です。 この空白部分にぷよを配置していきます。同じ色が4つ以上連結されたら消える、という処理を実装するために、新規に配置されたぷよを含めて縦横に接している升にそってカウントしていきます。 これには再帰と深さ優先探索を使います。 void findAdjacentC…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fs51517765.hatenadiary.jp%2Fentry%2F2023%2F09%2F18%2F073000&quot; title=&quot;ぷよぷよのアルゴリズム - プログラミング素人のはてなブログ&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/s/s51517765/20230917/20230917140023.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-09-18 07:30:00</published>
  <title>ぷよぷよのアルゴリズム</title>
  <type>rich</type>
  <url>https://s51517765.hatenadiary.jp/entry/2023/09/18/073000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
