{"title":"\u3059\u3054\u3044haskell\u672c\u306e\u7df4\u7fd2\u554f\u984c\uff08knight\u306e\u52d5\u304d\uff09","description":"\u3059\u3054\u3044haskell\u672c\u306e13\u7ae0\u306b\u3042\u308b\u30c1\u30a7\u30b9\u306eknight\u306e\u52d5\u304d\u3092\u6c42\u3081\u308b\u7df4\u7fd2\u554f\u984c\u3092\u89e3\u3044\u3066\u307f\u305f\u306e\u3067\u30e1\u30e2\u521d\u671f\u4f4d\u7f6e\u3068\u76ee\u7684\u4f4d\u7f6e\u3001\u79fb\u52d5\u56de\u6570\u3092\u6307\u5b9a\u3057\u3066 \u79fb\u52d5\u3067\u304d\u308b\u306a\u3089\u305d\u306e\u7d4c\u8def\u3092\u30ea\u30b9\u30c8\u3068\u3057\u3066\u51fa\u529b\u3059\u308b\u3088\u3046\u306b\u3057\u305f\u6700\u7d42\u7684\u306a\u30b3\u30fc\u30c9\u306f\u3053\u3093\u306a\u611f\u3058 import Control.Monad type Pos = (Int, Int) type Route = [Pos] moveKnight :: Pos -> [Pos] moveKnight (c, r) = do (c', r') <- [(c+2,r+1), (c+2,r-1), (c-2,r+1), (c-2,r-1), (c+1,r+2), (c+1,r-2),\u2026","width":"100%","author_url":"https://blog.hatena.ne.jp/y-kamiya/","blog_title":"MEMOcho-","blog_url":"https://jsapachehtml.hatenablog.com/","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","url":"https://jsapachehtml.hatenablog.com/entry/2014/10/20/092841","type":"rich","author_name":"y-kamiya","published":"2014-10-20 09:28:41","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjsapachehtml.hatenablog.com%2Fentry%2F2014%2F10%2F20%2F092841\" title=\"\u3059\u3054\u3044haskell\u672c\u306e\u7df4\u7fd2\u554f\u984c\uff08knight\u306e\u52d5\u304d\uff09 - MEMOcho-\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","version":"1.0","image_url":"http://ecx.images-amazon.com/images/I/51pYSdnkuNL.jpg","categories":["haskell"]}