<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mirichi</author_name>
  <author_url>https://blog.hatena.ne.jp/mirichi/</author_url>
  <blog_title>mirichiの日記</blog_title>
  <blog_url>https://mirichi.hatenadiary.org/</blog_url>
  <categories>
    <anon>駄文</anon>
  </categories>
  <description>昨日アップしたサンプルでは、わかりやすいように４×４の2次元配列でブロックを表現するようにしている。 単純にそれを右回転させることで回しているわけだ。 がんばって自分で計算してるけど、Rubyの配列だからその機能を使って、全体をtransposeして行ごとにreverseすれば90度右回転できる。 回転の状態を0〜3であらわして、基準の状態から毎回その回数だけ回転させるから、左回転は必要ない。 回転の仕方が標準とは違って違和感があるかもしれない。 単純に回すだけでは、標準仕様どおりにならないようになっているからだ。 これをなんとかするには、ブロックごとに全パターンをデータで持つとか、四角と長い…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmirichi.hatenadiary.org%2Fentry%2F20090422%2Fp2&quot; title=&quot;テトリスのデータ - mirichiの日記&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>2009-04-22 00:00:07</published>
  <title>テトリスのデータ</title>
  <type>rich</type>
  <url>https://mirichi.hatenadiary.org/entry/20090422/p2</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
