<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ma-8te7</author_name>
  <author_url>https://blog.hatena.ne.jp/ma-8te7/</author_url>
  <blog_title>fall and fall</blog_title>
  <blog_url>https://fall-and-fall.hatenablog.com/</blog_url>
  <categories>
    <anon>Unity</anon>
  </categories>
  <description>Unity UI を使って、2D の三目並べ（Tic tac toe）を制作しました。 ソース github.com 仕様 人 vs CPU CPU は空マスをランダム選択 先手X、後手O の選択可能 勝敗判定 X か O を３つ揃えたほうが勝ちです。 実装としては、下のようにマスのインデックスを振って、 横３列、縦３列、斜め２列のいずれかが揃っているかチェックしています。 横：(0, 1, 2), (3, 4, 5), (6, 7, 8) 縦：(0, 3, 6), (1, 4, 7), (2, 5, 8) 斜：(0, 4, 8), (2, 4, 6) 引き分け ３つ揃わずに９マス全て埋まった…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffall-and-fall.hatenablog.com%2Fentry%2Funity%2Fui%2Ftic-tac-toe&quot; title=&quot;Unity UI 三目並べの開発（Tic tac toe） - fall and fall&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/m/ma-8te7/20221025/20221025220611.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-10-25 22:05:46</published>
  <title>Unity UI 三目並べの開発（Tic tac toe）</title>
  <type>rich</type>
  <url>https://fall-and-fall.hatenablog.com/entry/unity/ui/tic-tac-toe</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
