<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>naosim</author_name>
  <author_url>https://blog.hatena.ne.jp/naosim/</author_url>
  <blog_title>なおしむ論</blog_title>
  <blog_url>https://naosim.hatenablog.jp/</blog_url>
  <categories>
    <anon>javascript</anon>
    <anon>プログラミング問題</anon>
  </categories>
  <description>こんにちは。 今日はひさしぶりにプログラミングの問題です。題材はオセロゲーム。 オセロゲームといえば8x8の2次元の盤面に白と黒の石をおいていくゲームですが、今日はそれを1次元にしたようなお題です。 お題 8x1の盤を使ってオセロをする。 盤面に白と黒の石が置かれている(上図)。 これに白の石を置く。 指定した座標に白の石を置いたときに、オセロのルールにしたがって黒の石がひっくり返った後の盤面を返す関数を作りたい。 下記のプログラムの// TODO 実装の部分にプログラムを下記、この関数を完成させてください。(TODO以外の部分に関数やクラスを作っても良いです。)</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnaosim.hatenablog.jp%2Fentry%2F2020%2F05%2F02%2F062747&quot; title=&quot;1次元オセロの問題 - なおしむ論&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/n/naosim/20200502/20200502060925.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-05-02 06:27:47</published>
  <title>1次元オセロの問題</title>
  <type>rich</type>
  <url>https://naosim.hatenablog.jp/entry/2020/05/02/062747</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
