<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>y-kamiya</author_name>
  <author_url>https://blog.hatena.ne.jp/y-kamiya/</author_url>
  <blog_title>MEMOcho-</blog_title>
  <blog_url>https://jsapachehtml.hatenablog.com/</blog_url>
  <categories>
    <anon>haskell</anon>
  </categories>
  <description>すごいhaskell本の13章にあるチェスのknightの動きを求める練習問題を解いてみたのでメモ初期位置と目的位置、移動回数を指定して 移動できるならその経路をリストとして出力するようにした最終的なコードはこんな感じ import Control.Monad type Pos = (Int, Int) type Route = [Pos] moveKnight :: Pos -&gt; [Pos] moveKnight (c, r) = do (c', r') &lt;- [(c+2,r+1), (c+2,r-1), (c-2,r+1), (c-2,r-1), (c+1,r+2), (c+1,r-2),…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjsapachehtml.hatenablog.com%2Fentry%2F2014%2F10%2F20%2F092841&quot; title=&quot;すごいhaskell本の練習問題（knightの動き） - MEMOcho-&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>http://ecx.images-amazon.com/images/I/51pYSdnkuNL.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-10-20 09:28:41</published>
  <title>すごいhaskell本の練習問題（knightの動き）</title>
  <type>rich</type>
  <url>https://jsapachehtml.hatenablog.com/entry/2014/10/20/092841</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
