<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Scratch &#8211; リビングの魔王</title>
	<atom:link href="https://living-maou.com/tag/scratch/feed/" rel="self" type="application/rss+xml" />
	<link>https://living-maou.com</link>
	<description></description>
	<lastBuildDate>Thu, 26 Mar 2026 02:51:37 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://living-maou.com/wp-content/uploads/2020/02/cropped-favicon-32x32.png</url>
	<title>Scratch &#8211; リビングの魔王</title>
	<link>https://living-maou.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>【子ども向け】プログラムもテストするって本当？バグを見つけよう！</title>
		<link>https://living-maou.com/scratch-test/</link>
					<comments>https://living-maou.com/scratch-test/#respond</comments>
		
		<dc:creator><![CDATA[メソ]]></dc:creator>
		<pubDate>Thu, 05 Sep 2024 00:18:31 +0000</pubDate>
				<category><![CDATA[用語解説]]></category>
		<category><![CDATA[Scratch]]></category>
		<category><![CDATA[用語]]></category>
		<guid isPermaLink="false">https://living-maou.com/?p=6925</guid>

					<description><![CDATA[みなさん、テストは好すきですか？ もしかしたら、「ちょっと苦手にがてかな…」と思おもっているかもしれませんね。 でも、実じつはプログラムもテストを受うけているって知しっていましたか？ みなさんがいつも使つかっているサービ [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/08/eyecatch-scratch-test.jpg"><img fetchpriority="high" decoding="async" class="aligncenter size-full wp-image-6926" src="https://living-maou.com/wp-content/uploads/2024/08/eyecatch-scratch-test.jpg" alt="" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/08/eyecatch-scratch-test.jpg 800w, https://living-maou.com/wp-content/uploads/2024/08/eyecatch-scratch-test-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2024/08/eyecatch-scratch-test-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2024/08/eyecatch-scratch-test-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2024/08/eyecatch-scratch-test-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2024/08/eyecatch-scratch-test-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2024/08/eyecatch-scratch-test-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>みなさん、テストは<ruby>好<rt>す</rt></ruby>きですか？<br />
もしかしたら、「ちょっと<ruby>苦手<rt>にがて</rt></ruby>かな…」と<ruby>思<rt>おも</rt></ruby>っているかもしれませんね。</p>
<p>でも、<ruby>実<rt>じつ</rt></ruby>は<span class="marker-under-red">プログラムもテストを<ruby>受<rt>う</rt></ruby>けている</span>って<ruby>知<rt>し</rt></ruby>っていましたか？</p>
<p>みなさんがいつも<ruby>使<rt>つか</rt></ruby>っているサービスやゲームは、たくさんの<ruby>人<rt>ひと</rt></ruby>が<ruby>時間<rt>じかん</rt></ruby>をかけてテストして、<ruby>安心<rt>あんしん</rt></ruby>して<ruby>使<rt>つか</rt></ruby>えるようにしています。</p>
<p>この<ruby>記事<rt>きじ</rt></ruby>では、プログラムをテストする<ruby>方法<rt>ほうほう</rt></ruby>を、<ruby>小学生<rt>しょうがくせい</rt></ruby><ruby>向<rt>む</rt></ruby>けにかんたんな<ruby>形<rt>かたち</rt></ruby>にアレンジして<ruby>紹介<rt>しょうかい</rt></ruby>します。</p>
<p>テストの<ruby>準備<rt>じゅんび</rt></ruby>から<ruby>実行<rt>じっこう</rt></ruby>、そして<ruby>結果<rt>けっか</rt></ruby>の<ruby>確認<rt>かくにん</rt></ruby>まで、いっしょに<ruby>楽<rt>たの</rt></ruby>しく<ruby>学<rt>まな</rt></ruby>んでいきましょう！</p>
<p>&nbsp;</p>
<h2><span id="toc1">なぜプログラムをテストするの？</span></h2>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/08/scratch-test01b.png"><img decoding="async" class="aligncenter size-full wp-image-6929" src="https://living-maou.com/wp-content/uploads/2024/08/scratch-test01b.png" alt="プログラムをテストする目的" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/08/scratch-test01b.png 800w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test01b-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test01b-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test01b-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test01b-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test01b-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test01b-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>プログラミングにおける<span style="color: #ff6600;"><b>テスト</b></span>は、<ruby>作<rt>つく</rt></ruby>った<span class="marker-under-red">プログラムが<ruby>正<rt>ただ</rt></ruby>しく<ruby>動<rt>うご</rt></ruby>くか<ruby>確認<rt>かくにん</rt></ruby>する</span>ための<ruby>作業<rt>さぎょう</rt></ruby>です。</p>
<p>テストを<ruby>行<rt>おこな</rt></ruby>うことで、プログラムにまちがい（<span style="color: #ff6600;"><b>バグ</b></span>）がないか<ruby>確<rt>たし</rt></ruby>かめます。</p>
<p>これは、<ruby>料理<rt>りょうり</rt></ruby>を<ruby>作<rt>つく</rt></ruby>るときに<ruby>味見<rt>あじみ</rt></ruby>をしたり、<ruby>自転<rt>じてん</rt></ruby><ruby>車<rt>くるま</rt></ruby>に<ruby>乗<rt>の</rt></ruby>る<ruby>前<rt>まえ</rt></ruby>にタイヤやブレーキをチェックするのと<ruby>同<rt>おな</rt></ruby>じです。<ruby>問題<rt>もんだい</rt></ruby>があれば、<ruby>味<rt>あじ</rt></ruby>を<ruby>調整<rt>ちょうせい</rt></ruby>したり、<ruby>修理<rt>しゅうり</rt></ruby>したりします。</p>
<p>プログラムも<ruby>同<rt>おな</rt></ruby>じように、<ruby>使<rt>つか</rt></ruby>う<ruby>前<rt>まえ</rt></ruby>にテストし、エラーやバグを<ruby>見<rt>み</rt></ruby>つけて<ruby>修正<rt>しゅうせい</rt></ruby>します（<span style="color: #ff6600;"><b>デバッグ</b></span>）</p>
<p>もしテストをしなかったら、プログラムにバグが<ruby>残<rt>のこ</rt></ruby>ったままになってしまい、<ruby>使<rt>つか</rt></ruby>う<ruby>人<rt>ひと</rt></ruby>が<ruby>困<rt>こま</rt></ruby>ってしまうかもしれません。</p>
<div class="blank-box bb-blue">
<ul>
<li>バグ　　: プログラムのまちがい</li>
<li>デバッグ: プログラムのまちがいを<ruby>見<rt>み</rt></ruby>つけて<ruby>修正<rt>しゅうせい</rt></ruby>する<ruby>作業<rt>さぎょう</rt></ruby></li>
</ul>
</div>
<p>&nbsp;</p>
<h2><span id="toc2">テストの計画をたてよう</span></h2>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/08/scratch-test02.png"><img decoding="async" class="aligncenter size-full wp-image-6930" src="https://living-maou.com/wp-content/uploads/2024/08/scratch-test02.png" alt="ホワイトボックステストとブラックボックステスト" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/08/scratch-test02.png 800w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test02-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test02-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test02-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test02-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test02-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test02-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>テストには<ruby>大<rt>おお</rt></ruby>きく<ruby>分<rt>わ</rt></ruby>けて2つの<ruby>方法<rt>ほうほう</rt></ruby>があります。</p>
<div class="blank-box bb-blue">
<ul>
<li>ホワイトボックステスト：プログラムの<ruby>中身<rt>なかみ</rt></ruby>を<ruby>見<rt>み</rt></ruby>て、どう<ruby>動<rt>うご</rt></ruby>いているか<ruby>確認<rt>かくにん</rt></ruby></li>
<li>ブラックボックステスト：プログラムの<ruby>中身<rt>なかみ</rt></ruby>を<ruby>見<rt>み</rt></ruby>ないで、<ruby>結果<rt>けっか</rt></ruby>だけ<ruby>確認<rt>かくにん</rt></ruby></li>
</ul>
</div>
<p><ruby>算数<rt>さんすう</rt></ruby>のテストに たとえると、<ruby>答<rt>こた</rt></ruby>えが<ruby>正<rt>ただ</rt></ruby>しいだけでなく <ruby>計算<rt>けいさん</rt></ruby>の<ruby>式<rt>しき</rt></ruby>が<ruby>正<rt>ただ</rt></ruby>しいかどうかも<ruby>確認<rt>かくにん</rt></ruby>するのがホワイトボックステスト、<ruby>答<rt>こた</rt></ruby>えだけを<ruby>見<rt>み</rt></ruby>てそれが<ruby>正<rt>ただ</rt></ruby>しいかどうかを<ruby>確認<rt>かくにん</rt></ruby>するのが ブラックボックステストです。</p>
<p><ruby>今回<rt>こんかい</rt></ruby>は、ホワイトボックステストの<ruby>方法<rt>ほうほう</rt></ruby>を、<ruby>小学生<rt>しょうがくせい</rt></ruby><ruby>向<rt>む</rt></ruby>けにかんたんな<ruby>形<rt>かたち</rt></ruby>にアレンジして<ruby>説明<rt>せつめい</rt></ruby>します。</p>
<p>&nbsp;</p>
<h3><span id="toc3">確認することのチェックリストを作ろう</span></h3>
<p>まず、プログラムがちゃんと<ruby>動<rt>うご</rt></ruby>くかどうか<ruby>確認<rt>かくにん</rt></ruby>するために、「<ruby>何<rt>なに</rt></ruby>をチェックするか」のリストを<ruby>作<rt>つく</rt></ruby>りましょう。これを「<b>テスト<ruby>項目<rt>こうもく</rt></ruby></b>」といいます。</p>
<p>リストを<ruby>作<rt>つく</rt></ruby>るときに<ruby>考<rt>かんが</rt></ruby>えること</p>
<div class="blank-box bb-blue">
<ul>
<li>ふつうにやってみる</li>
<li>ギリギリを<ruby>攻<rt>せ</rt></ruby>めてみる</li>
<li>おかしなことをしてみる</li>
<li><ruby>組<rt>く</rt></ruby>み<ruby>合<rt>あ</rt></ruby>わせを<ruby>考<rt>かんが</rt></ruby>える</li>
<li>プログラムが<ruby>通<rt>とお</rt></ruby>るすべてのルートを<ruby>確認<rt>かくにん</rt></ruby>する</li>
</ul>
</div>
<p>&nbsp;</p>
<h4 id="item01">ふつうにやってみる</h4>
<p>まずは、プログラムがふつうに<ruby>動<rt>うご</rt></ruby>くかどうか<ruby>確認<rt>かくにん</rt></ruby>してみましょう。</p>
<p><ruby>例<rt>れい</rt></ruby>：<ruby>入力<rt>にゅうりょく</rt></ruby>した<ruby>数字<rt>すうじ</rt></ruby>を3<ruby>倍<rt>ばい</rt></ruby>にするプログラムで、7を<ruby>入力<rt>にゅうりょく</rt></ruby>したら21になるかみる。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/08/scratch-test03.png"><img loading="lazy" decoding="async" class="aligncenter wp-image-6931 size-full" src="https://living-maou.com/wp-content/uploads/2024/08/scratch-test03.png" alt="正常系" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/08/scratch-test03.png 800w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test03-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test03-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test03-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test03-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test03-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test03-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<h4 id="item02">ギリギリを攻めてみる</h4>
<p>プログラムが「さかい目の<ruby>値<rt>あたい</rt></ruby>」でどう<ruby>動<rt>うご</rt></ruby>くか<ruby>確<rt>たし</rt></ruby>かめましょう。</p>
<p><ruby>例<rt>れい</rt></ruby>：「1から100までの<ruby>数<rt>かず</rt></ruby>しか<ruby>入<rt>い</rt></ruby>れられない」とき、1や100だけでなく、0や101のようなギリギリアウトな<ruby>数<rt>かず</rt></ruby>も<ruby>入<rt>い</rt></ruby>れてどうなるかみる。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/08/scratch-test04.png"><img loading="lazy" decoding="async" class="aligncenter wp-image-6932 size-full" src="https://living-maou.com/wp-content/uploads/2024/08/scratch-test04.png" alt="境界値テスト" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/08/scratch-test04.png 800w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test04-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test04-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test04-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test04-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test04-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test04-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<h4 id="item03">おかしなことをしてみる</h4>
<p><ruby>変<rt>へん</rt></ruby>なデータを<ruby>入力<rt>にゅうりょく</rt></ruby>したらどうなるか、プログラムがちゃんと<ruby>対応<rt>たいおう</rt></ruby>できるか<ruby>確認<rt>かくにん</rt></ruby>しましょう。</p>
<p><ruby>例<rt>れい</rt></ruby>：<ruby>数字<rt>すうじ</rt></ruby>を<ruby>入力<rt>にゅうりょく</rt></ruby>するところに<ruby>文字<rt>もじ</rt></ruby>を<ruby>入<rt>い</rt></ruby>れたらどうなるか<ruby>試<rt>ため</rt></ruby>してみる。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/08/scratch-test05.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6933" src="https://living-maou.com/wp-content/uploads/2024/08/scratch-test05.png" alt="異常系" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/08/scratch-test05.png 800w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test05-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test05-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test05-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test05-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test05-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test05-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<h4 id="item04">組み合わせを考える</h4>
<p>プログラムで<ruby>複数<rt>ふくすう</rt></ruby>の<ruby>設定<rt>せってい</rt></ruby>がある<ruby>場合<rt>ばあい</rt></ruby>、それらの<ruby>組<rt>く</rt></ruby>み<ruby>合<rt>あ</rt></ruby>わせをテストしてみましょう。</p>
<p><ruby>例<rt>れい</rt></ruby>：アイスクリームの<ruby>味<rt>あじ</rt></ruby>と<ruby>食<rt>た</rt></ruby>べ<ruby>方<rt>かた</rt></ruby>を<ruby>選<rt>えら</rt></ruby>ぶプログラムで、「バニラ・コーン」「チョコレート・カップ」など、いろんな<ruby>組<rt>く</rt></ruby>み<ruby>合<rt>あ</rt></ruby>わせをチェックする。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/08/scratch-test06.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6934" src="https://living-maou.com/wp-content/uploads/2024/08/scratch-test06.png" alt="組み合わせ" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/08/scratch-test06.png 800w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test06-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test06-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test06-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test06-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test06-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test06-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<h4 id="item05">プログラムが通るすべてのルートを確認する</h4>
<p>プログラムに「もし…ならこうする」や「そうでなければこうする」などの<ruby>命令<rt>めいれい</rt></ruby>で<ruby>処理<rt>しょり</rt></ruby>が<ruby>分<rt>わ</rt></ruby>かれる<ruby>場合<rt>ばあい</rt></ruby>、それぞれのルートをテストします。</p>
<p><ruby>例<rt>れい</rt></ruby>：<ruby>温度<rt>おんど</rt></ruby>によってネコが<ruby>話<rt>はな</rt></ruby>す<ruby>内容<rt>ないよう</rt></ruby>が<ruby>変<rt>か</rt></ruby>わる<ruby>場合<rt>ばあい</rt></ruby>、それぞれのルートをテストします。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/08/scratch-test07.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6935" src="https://living-maou.com/wp-content/uploads/2024/08/scratch-test07.png" alt="カバレッジ" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/08/scratch-test07.png 800w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test07-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test07-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test07-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test07-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test07-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test07-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<h3><span id="toc4">どのようにテストするか考えよう</span></h3>
<p><ruby>次<rt>つぎ</rt></ruby>に、テストのやり<ruby>方<rt>かた</rt></ruby>を<ruby>具体的<rt>ぐたいてき</rt></ruby>に<ruby>考<rt>かんが</rt></ruby>えてみましょう。これを「テストケース」といいます。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/08/scratch-test08.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6936" src="https://living-maou.com/wp-content/uploads/2024/08/scratch-test08.png" alt="テストケース" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/08/scratch-test08.png 800w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test08-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test08-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test08-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test08-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test08-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/08/scratch-test08-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<div class="blank-box bb-blue">
<ol>
<li>どこをチェックするか<ruby>決<rt>き</rt></ruby>めよう</li>
<li><ruby>何<rt>なに</rt></ruby>を<ruby>入力<rt>にゅうりょく</rt></ruby>してどう<ruby>動<rt>うご</rt></ruby>かすかを<ruby>考<rt>かんが</rt></ruby>えよう</li>
<li>こうなるハズという<ruby>結果<rt>けっか</rt></ruby>を<ruby>予想<rt>よそう</rt></ruby>しよう</li>
</ol>
</div>
<p>&nbsp;</p>
<h4 id="case01">どこをチェックするか決めよう</h4>
<p>テスト<ruby>項目<rt>こうもく</rt></ruby>をもとに、プログラムのどの<ruby>部分<rt>ぶぶん</rt></ruby>をチェックするか<ruby>決<rt>き</rt></ruby>めます。</p>
<p>たとえば、「<ruby>計算<rt>けいさん</rt></ruby>が<ruby>正<rt>ただ</rt></ruby>しくできるか」「0を<ruby>入力<rt>にゅうりょく</rt></ruby>したらどうなるか」などです。</p>
<p>&nbsp;</p>
<h4 id="case02">何を入力してどう動かすかを考えよう</h4>
<p><ruby>次<rt>つぎ</rt></ruby>に、どんなデータを<ruby>入<rt>い</rt></ruby>れて、どう<ruby>操作<rt>そうさ</rt></ruby>するかを<ruby>決<rt>き</rt></ruby>めます。</p>
<p><ruby>例<rt>たと</rt></ruby>えば、「7を<ruby>入力<rt>にゅうりょく</rt></ruby>してEnterキーを<ruby>押<rt>お</rt></ruby>す」といった<ruby>具体的<rt>ぐたいてき</rt></ruby>な<ruby>値<rt>あたい</rt></ruby>や<ruby>操作<rt>そうさ</rt></ruby>です。</p>
<p>&nbsp;</p>
<h4 id="case03">こうなるハズという結果を予想しよう</h4>
<p>その<ruby>操作<rt>そうさ</rt></ruby>をしたら、プログラムがどう<ruby>動<rt>うご</rt></ruby>くべきか、<ruby>期待<rt>きたい</rt></ruby>される<ruby>結果<rt>けっか</rt></ruby>を<ruby>考<rt>かんが</rt></ruby>えます。</p>
<p><ruby>入力<rt>にゅうりょく</rt></ruby>した<ruby>数字<rt>すうじ</rt></ruby>を3<ruby>倍<rt>ばい</rt></ruby>にするプログラムだったら、「ネコのスプライトが&#8221;7の3<ruby>倍<rt>ばい</rt></ruby>は21&#8243;と2<ruby>秒<rt>びょう</rt></ruby><ruby>言<rt>い</rt></ruby>う」になるハズと<ruby>予想<rt>よそう</rt></ruby>します。</p>
<p>&nbsp;</p>
<h2><span id="toc5">プログラムを動かして確認してみよう</span></h2>
<p><ruby>準備<rt>じゅんび</rt></ruby>が<ruby>整<rt>ととの</rt></ruby>ったら、いよいよテストしてみましょう。</p>
<p>テスト<ruby>項目<rt>こうもく</rt></ruby>とテストケースに<ruby>従<rt>したが</rt></ruby>って、プログラムを<ruby>実際<rt>じっさい</rt></ruby>に<ruby>動<rt>うご</rt></ruby>かします。</p>
<h3><span id="toc6">結果を記録しよう</span></h3>
<p><ruby>入力<rt>にゅうりょく</rt></ruby>した<ruby>内容<rt>ないよう</rt></ruby>と<ruby>実行<rt>じっこう</rt></ruby><ruby>結果<rt>けっか</rt></ruby>をスクリーンショットや<ruby>写真<rt>しゃしん</rt></ruby>、<ruby>動画<rt>どうが</rt></ruby>などで<ruby>記録<rt>きろく</rt></ruby>しておきましょう。</p>
<p><ruby>後<rt>ご</rt></ruby>でプログラムが<ruby>正<rt>ただ</rt></ruby>しく<ruby>動<rt>うご</rt></ruby>いたかどうかをふり<ruby>返<rt>かえ</rt></ruby>るときに<ruby>役立<rt>やくだ</rt></ruby>ちます。</p>
<p>スクリーンショットの<ruby>撮<rt>と</rt></ruby>り<ruby>方<rt>かた</rt></ruby></p>
<div class="blank-box bb-blue">
<ul>
<li>Windows：「Print Screen」や「prt sc」と<ruby>書<rt>か</rt></ruby>いてあるキーをおす</li>
<li>chromebook：「Ctrl」キー＋「ウィンドウを<ruby>表示<rt>ひょうじ</rt></ruby>」キー（□||）</li>
<li>Mac：「shift」キー＋「Command」キー＋「3」</li>
</ul>
</div>
<p>&nbsp;</p>
<h2><span id="toc7">結果を見て評価しよう</span></h2>
<p>テストが<ruby>終<rt>お</rt></ruby>わったら、<ruby>結果<rt>けっか</rt></ruby>が<ruby>期待<rt>きたい</rt></ruby>した<ruby>通<rt>とお</rt></ruby>りになっているか<ruby>確認<rt>かくにん</rt></ruby>します。</p>
<p><ruby>以下<rt>いか</rt></ruby>の<ruby>手順<rt>てじゅん</rt></ruby>で<ruby>進<rt>すす</rt></ruby>めましょう。</p>
<div class="blank-box bb-blue">
<ol>
<li>メモを<ruby>取<rt>と</rt></ruby>ろう</li>
<li>バグを<ruby>特定<rt>とくてい</rt></ruby>しよう</li>
<li>バグを<ruby>修正<rt>しゅうせい</rt></ruby>しよう</li>
<li>もう<ruby>一度<rt>いちど</rt></ruby>テストしよう</li>
</ol>
</div>
<p>&nbsp;</p>
<h4 id="evaluation01">メモを取ろう</h4>
<p><ruby>確認<rt>かくにん</rt></ruby>した<ruby>内容<rt>ないよう</rt></ruby>をメモしておきましょう。</p>
<p><ruby>後<rt>あと</rt></ruby>でふり<ruby>返<rt>かえ</rt></ruby>りたい<ruby>時<rt>とき</rt></ruby>に、どこを<ruby>見<rt>み</rt></ruby>て<ruby>何<rt>なに</rt></ruby>を<ruby>確認<rt>かくにん</rt></ruby>したのかすぐにわかります。</p>
<p>&nbsp;</p>
<h4 id="evaluation02">バグを特定しよう</h4>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/03/scratch-error05.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6567" src="https://living-maou.com/wp-content/uploads/2024/03/scratch-error05.png" alt="間違っている場所を特定する" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/03/scratch-error05.png 800w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error05-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error05-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error05-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error05-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error05-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error05-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>もし、<ruby>問題<rt>もんだい</rt></ruby>が<ruby>見<rt>み</rt></ruby>つかったら、プログラムのどこが まちがっているのかを<ruby>見<rt>み</rt></ruby>つけます。</p>
<p>ブロックの<ruby>順番<rt>じゅんばん</rt></ruby>や<ruby>判定<rt>はんてい</rt></ruby><ruby>条件<rt>じょうけん</rt></ruby>、<ruby>変数<rt>へんすう</rt></ruby>の<ruby>動<rt>うご</rt></ruby>きなど くわしく<ruby>確認<rt>かくにん</rt></ruby>しましょう。</p>
<p>&nbsp;</p>
<h4 id="evaluation03">バグを修正しよう</h4>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/03/scratch-error06.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6568" src="https://living-maou.com/wp-content/uploads/2024/03/scratch-error06.png" alt="解決案を考える" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/03/scratch-error06.png 800w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error06-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error06-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error06-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error06-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error06-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error06-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>まちがっている<ruby>場所<rt>ばしょ</rt></ruby>を<ruby>見<rt>み</rt></ruby>つけたら、どのように<ruby>修正<rt>しゅうせい</rt></ruby>すれば<ruby>正<rt>ただ</rt></ruby>しい<ruby>結果<rt>けっか</rt></ruby>になるのかを<ruby>考<rt>かんが</rt></ruby>えて<ruby>直<rt>なお</rt></ruby>しましょう。</p>
<p><ruby>解決策<rt>かいけつさく</rt></ruby>が<ruby>一<rt>ひと</rt></ruby>つではない<ruby>場合<rt>ばあい</rt></ruby>もあるので、いくつか<ruby>方法<rt>ほうほう</rt></ruby>を<ruby>考<rt>かんが</rt></ruby>えてみてください。</p>
<p>&nbsp;</p>
<h4 id="evaluation04">もう一度テストしよう</h4>
<p>バグを<ruby>修正<rt>しゅうせい</rt></ruby>したら、もう<ruby>一度<rt>いちど</rt></ruby>テストします。</p>
<p><ruby>修正<rt>しゅうせい</rt></ruby>によって <ruby>新<rt>あたら</rt></ruby>しいバグが<ruby>発生<rt>はっせい</rt></ruby>しているかもしれないからです。</p>
<p>このようにテストをくり<ruby>返<rt>かえ</rt></ruby>すことで、プログラムの<ruby>完成<rt>かんせい</rt></ruby><ruby>度<rt>ど</rt></ruby>をさらに<ruby>高<rt>たか</rt></ruby>めることができます。</p>
<p>&nbsp;</p>
<h2><span id="toc8">まとめ</span></h2>
<p>プログラムが<ruby>正<rt>ただ</rt></ruby>しく<ruby>動<rt>うご</rt></ruby>くかどうかを<ruby>確認<rt>かくにん</rt></ruby>する テストの<ruby>手順<rt>てじゅん</rt></ruby>について <ruby>解説<rt>かいせつ</rt></ruby>しました。</p>
<p>プログラムを<ruby>作<rt>つく</rt></ruby>るだけでなく、しっかりとテストすることで、より<ruby>良<rt>よ</rt></ruby>い<ruby>作品<rt>さくひん</rt></ruby>ができます。</p>
<p><ruby>自分<rt>じぶん</rt></ruby>のプログラムが <ruby>思<rt>おも</rt></ruby>った<ruby>通<rt>とお</rt></ruby>りに<ruby>動<rt>うご</rt></ruby>く<ruby>瞬間<rt>しゅんかん</rt></ruby>の<ruby>達成感<rt>たっせいかん</rt></ruby>をぜひ<ruby>味<rt>あじ</rt></ruby>わってください！</p>
<p>&nbsp;</p>
<p><ruby>下<rt>した</rt></ruby>の<ruby>記事<rt>きじ</rt></ruby>では、エラーの<ruby>原因<rt>げんいん</rt></ruby>を<ruby>見<rt>み</rt></ruby>つけて <ruby>修正<rt>しゅうせい</rt></ruby>する<ruby>力<rt>ちから</rt></ruby>を <ruby>身<rt>み</rt></ruby>につけたい<ruby>人<rt>ひと</rt></ruby>に おすすめの『<a rel="noopener" target="_self" href="https://living-maou.com/scratch-err/">エラーで学ぶScratch まちがいを<ruby>見<rt>み</rt></ruby>つけてプログラミング<ruby>初心者<rt>しょしんしゃ</rt></ruby>から<ruby>抜<rt>ぬ</rt></ruby>け<ruby>出<rt>だ</rt></ruby>そう<span class="fa fa-external-link internal-icon anchor-icon"></span></a>』という<ruby>本<rt>ほん</rt></ruby>を<ruby>紹介<rt>しょうかい</rt></ruby>しています。</p>
<p><ruby>興味<rt>きょうみ</rt></ruby>がある<ruby>人<rt>ひと</rt></ruby>はぜひ<ruby>読<rt>よ</rt></ruby>んでみてくださいね。</p>
<div class="blogcard-type bct-together">

<a rel="noopener" target="_self" href="https://living-maou.com/scratch-err/" title="【エラーで学ぶScratch】バグを自分で解決！デバッグの基礎を学ぼう" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2024/03/eyecatch-scratch-error-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2024/03/eyecatch-scratch-error-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2024/03/eyecatch-scratch-error-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2024/03/eyecatch-scratch-error-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2024/03/eyecatch-scratch-error-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2024/03/eyecatch-scratch-error-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2024/03/eyecatch-scratch-error-320x180.jpg 320w, https://living-maou.com/wp-content/uploads/2024/03/eyecatch-scratch-error.jpg 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">【エラーで学ぶScratch】バグを自分で解決！デバッグの基礎を学ぼう</div><div class="blogcard-snippet internal-blogcard-snippet">『エラーで学ぶScratch まちがいを見つけてプログラミング初心者から抜け出そう』は、Scratchでよくあるエラーを見つけて修正することで、プログラミング力を高める問題集。Scratch経験のある小学生～プログラミング初心者の大人の方におすすめな一冊です。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
<p>&nbsp;</p>
<h3><span id="toc9">用語集</span></h3>
<ul>
<li>バグ　　：プログラムのエラーやまちがい</li>
<li>デバッグ：プログラムのまちがいを<ruby>見<rt>み</rt></ruby>つけて<ruby>修正<rt>しゅうせい</rt></ruby>する<ruby>作業<rt>さぎょう</rt></ruby></li>
<li>ホワイトボックステスト：プログラム（ソースコード）の<ruby>中身<rt>なかみ</rt></ruby>を<ruby>見<rt>み</rt></ruby>てテストする<ruby>方法<rt>ほうほう</rt></ruby></li>
<li>ブラックボックステスト：プログラムの<ruby>中身<rt>なかみ</rt></ruby>を<ruby>見<rt>み</rt></ruby>ずに、<ruby>入力<rt>にゅうりょく</rt></ruby>と<ruby>出力<rt>しゅつりょく</rt></ruby>だけ<ruby>見<rt>み</rt></ruby>てテストする<ruby>方法<rt>ほうほう</rt></ruby></li>
<li>テスト項目　：プログラムの<ruby>何<rt>なに</rt></ruby>をチェックするかのリスト</li>
<li>テストケース：<ruby>具体的<rt>ぐたいてき</rt></ruby>なテストのやり<ruby>方<rt>かた</rt></ruby>や<ruby>手順<rt>てじゅん</rt></ruby></li>
</ul>
]]></content:encoded>
					
					<wfw:commentRss>https://living-maou.com/scratch-test/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【Scratch】デジタル時計をプログラミングしよう！</title>
		<link>https://living-maou.com/scratch-digital-clock/</link>
					<comments>https://living-maou.com/scratch-digital-clock/#respond</comments>
		
		<dc:creator><![CDATA[メソ]]></dc:creator>
		<pubDate>Mon, 19 Aug 2024 23:41:41 +0000</pubDate>
				<category><![CDATA[Scratch]]></category>
		<category><![CDATA[作品例]]></category>
		<guid isPermaLink="false">https://living-maou.com/?p=6879</guid>

					<description><![CDATA[今回はスクラッチ (Scratch) を使った「デジタル時計」の作り方を紹介しょうかいします。 デジタル時計とは、数字を使って現在げんざいの時間を表示ひょうじする時計のことです。 今回のプロジェクトでは、時と分をそれぞれ [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-digital-clock.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6880" src="https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-digital-clock.jpg" alt="" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-digital-clock.jpg 800w, https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-digital-clock-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-digital-clock-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-digital-clock-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-digital-clock-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-digital-clock-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-digital-clock-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>今回はスクラッチ (Scratch) を使った「<b>デジタル時計</b>」の作り方を<ruby>紹介<rt>しょうかい</rt></ruby>します。</p>
<p>デジタル時計とは、数字を使って<ruby>現在<rt>げんざい</rt></ruby>の時間を<ruby>表示<rt>ひょうじ</rt></ruby>する時計のことです。</p>
<p>今回のプロジェクトでは、時と分をそれぞれの十の<ruby>位<rt>くらい</rt></ruby>と一の<ruby>位<rt>くらい</rt></ruby>に分けて<ruby>表示<rt>ひょうじ</rt></ruby>し、秒はニワトリが歩くアニメーションで<ruby>表現<rt>ひょうげん</rt></ruby>します。</p>
<p>プログラミングを通じて、<b>わり算（商とあまり）</b>や、<b>がい算（<ruby>切<rt>き</rt></ruby>り<ruby>捨<rt>す</rt></ruby>て）</b>の勉強にもなりますよ。</p>
<p>図やコード<ruby>例<rt>れい</rt></ruby>を交えながら、わかりやすく<ruby>解説<rt>かいせつ</rt></ruby>していきますので、プログラミング<ruby>初心者<rt>しょしんしゃ</rt></ruby>でも安心して取り組めます。</p>
<p>ぜひ、プログラミングに<ruby>挑戦<rt>ちょうせん</rt></ruby>して、オリジナルのデジタル時計を作ってみてください！</p>
<p>&nbsp;</p>
<p>Scratchはインターネットにつながるパソコンから<ruby>無料<rt>むりょう</rt></ruby>で<ruby>利用<rt>りよう</rt></ruby>できます。</p>
<p>Scratch公式サイト: <a rel="noopener" target="_blank" href="https://scratch.mit.edu/">https://scratch.mit.edu/<span class="fa fa-external-link external-icon anchor-icon"></span></a></p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/scratch-start/">Scratchのアカウントの作り方と<ruby>基本的<rt>きほんてき</rt></ruby>な使い方<span class="fa fa-external-link internal-icon anchor-icon"></span></a>は、下の記事で<ruby>紹介<rt>しょうかい</rt></ruby>しています。</p>
<div class="blogcard-type bct-detail">

<a rel="noopener" target="_self" href="https://living-maou.com/scratch-start/" title="子ども向けプログラミング言語「スクラッチ(Scratch)」の始め方" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2020/03/eyecatch_scratch-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2020/03/eyecatch_scratch-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2020/03/eyecatch_scratch-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2020/03/eyecatch_scratch.jpg 800w, https://living-maou.com/wp-content/uploads/2020/03/eyecatch_scratch-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2020/03/eyecatch_scratch-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2020/03/eyecatch_scratch-1536x864.jpg 1536w, https://living-maou.com/wp-content/uploads/2020/03/eyecatch_scratch-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2020/03/eyecatch_scratch-320x180.jpg 320w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">子ども向けプログラミング言語「スクラッチ(Scratch)」の始め方</div><div class="blogcard-snippet internal-blogcard-snippet">子供向けプログラミング言語Scratch（スクラッチ）。プログラミング教育の教材として多くの小学校で使われています。【リビングの魔王】では、おうちでもスクラッチを使いたい方のために、アカウントの作成方法と基本的な使い方を紹介します。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
<h2><span id="toc1">デジタル時計の読み方をおさらい</span></h2>
<p>「<b>デジタル時計</b>」は、時間を数字で<ruby>表示<rt>ひょうじ</rt></ruby>する時計です。ふつうのアナログ時計は、丸い<ruby>文字盤<rt>もじばん</rt></ruby>と<ruby>針<rt>はり</rt></ruby>を使って時間を<ruby>示<rt>しめ</rt></ruby>しますが、デジタル時計は数字だけで時間を<ruby>表示<rt>ひょうじ</rt></ruby>します。</p>
<p>24時間表示のデジタル時計の場合、午前8時15分は「08:15」と<ruby>表示<rt>ひょうじ</rt></ruby>され、午後1時45分は「13:45」と<ruby>表示<rt>ひょうじ</rt></ruby>されます。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock01.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6881" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock01.png" alt="デジタル時計の読み方" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock01.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock01-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock01-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock01-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock01-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock01-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock01-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>今回は、時の十の<ruby>位<rt>くらい</rt></ruby>、一の<ruby>位<rt>くらい</rt></ruby>、分の十の<ruby>位<rt>くらい</rt></ruby>、一の<ruby>位<rt>くらい</rt></ruby>のスプライトを<ruby>準備<rt>じゅんび</rt></ruby>し、それぞれのコスチュームを使ってデジタル時計を<ruby>表示<rt>ひょうじ</rt></ruby>するプログラムを<ruby>作成<rt>さくせい</rt></ruby>します。</p>
<p>また、秒の<ruby>変<rt>か</rt></ruby>わった<ruby>表示<rt>ひょうじ</rt></ruby><ruby>方法<rt>ほうほう</rt></ruby>を<ruby>紹介<rt>しょうかい</rt></ruby>します。</p>
<p>&nbsp;</p>
<h2><span id="toc2">完成プログラム</span></h2>
<p><ruby>完成<rt>かんせい</rt></ruby>した作品です。ハタをおして動かしてみてください。</p>
<p><iframe loading="lazy" src="https://scratch.mit.edu/projects/1045611047/embed" width="485" height="402" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen"></iframe></p>
<p>&nbsp;</p>
<p><ruby>完成<rt>かんせい</rt></ruby>したソースコードは下の通りです。</p>
<p>時の十の<ruby>位<rt>くらい</rt></ruby>、時の一の<ruby>位<rt>くらい</rt></ruby>、分の十の<ruby>位<rt>くらい</rt></ruby>、分の一の<ruby>位<rt>くらい</rt></ruby>のスプライトを<ruby>準備<rt>じゅんび</rt></ruby>し、それぞれ<ruby>現在<rt>げんざい</rt></ruby>の時間にあった数字のコスチュームを<ruby>表示<rt>ひょうじ</rt></ruby>します。</p>
<h3><span id="toc3">時の十の位のプログラム</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock02.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6882" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock02.png" alt="時の十の位のプログラム" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock02.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock02-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock02-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock02-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock02-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock02-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock02-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<h3><span id="toc4">時の一の位のプログラム</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock03.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6883" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock03.png" alt="時の一の位のプログラム" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock03.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock03-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock03-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock03-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock03-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock03-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock03-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<h3><span id="toc5">分のプログラム</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock04.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6884" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock04.png" alt="分のプログラム" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock04.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock04-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock04-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock04-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock04-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock04-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock04-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<h3><span id="toc6">秒のプログラム</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock05.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6885" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock05.png" alt="秒のプログラム" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock05.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock05-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock05-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock05-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock05-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock05-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock05-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<div class="ad-area no-icon ad-shortcode ad-rectangle ad-label-visible cf" itemscope itemtype="https://schema.org/WPAdBlock">
  <div class="ad-label" itemprop="name" data-nosnippet>スポンサーリンク</div>
  <div class="ad-wrap">
    <div class="ad-responsive ad-usual"><!-- レスポンシブコード -->
<ins class="adsbygoogle"
  style="display:block"
  data-ad-client="ca-pub-9126458450711382"
  data-ad-slot="2965068638"
  data-ad-format="rectangle"
  data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></div>
          </div>

</div>

<h2><span id="toc7">プログラミングの手順</span></h2>
<h3><span id="toc8">時の十の位</span></h3>
<h4>コスチューム</h4>
<p>時の十の<ruby>位<rt>くらい</rt></ruby>のスプライトを<ruby>作成<rt>さくせい</rt></ruby>し、0から9のコスチュームを作ります。</p>
<p>1.スプライトを作る</p>
<p>「スプライトを<ruby>選<rt>えら</rt></ruby>ぶ」→「<ruby>描<rt>えが</rt></ruby>く」を<ruby>選<rt>えら</rt></ruby>びます。</p>
<p>ネコのスプライトは消してOKです。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock06.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6855" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock06.png" alt="スプライトを作る" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock06.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock06-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock06-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock06-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock06-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock06-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock06-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>2.数字をかく</p>
<p>筆ツールを使って0を<ruby>描<rt>えが</rt></ruby>きます。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock06.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6886" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock06.png" alt="筆ツールを使って0を描く" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock06.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock06-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock06-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock06-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock06-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock06-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock06-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>ペイントエディターのくわしい使い方は「<a rel="noopener" target="_self" href="https://living-maou.com/scratch-paint-vector/">【スクラッチ（Scratch）】絵を<ruby>描<rt>か</rt></ruby>いてスプライトや<ruby>背景<rt>はいけい</rt></ruby>を作ろう（ベクター<ruby>編<rt>へん</rt></ruby>）<span class="fa fa-external-link internal-icon anchor-icon"></span></a>」で<ruby>解説<rt>かいせつ</rt></ruby>しています。</p>
<p>&nbsp;</p>
<p>コスチュームを右クリック →「<ruby>複製<rt>ふくせい</rt></ruby>」でコスチュームをコピーし、1から9のコスチュームを作ります。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock07.png"><img loading="lazy" decoding="async" class="aligncenter wp-image-6887 size-full" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock07.png" alt="コスチュームをコピーする" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock07.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock07-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock07-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock07-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock07-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock07-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock07-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>コスチュームのならびは、小さい順(0、1、2、3 … 7、8、9)になるようにしてください。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock08.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6888" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock08.png" alt="1から9のコスチュームを作る" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock08.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock08-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock08-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock08-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock08-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock08-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock08-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>3.スプライトの名前を<ruby>変更<rt>へんこう</rt></ruby></p>
<p>スプライトの名前を「時の十の<ruby>位<rt>くらい</rt></ruby>」に<ruby>変<rt>か</rt></ruby>えましょう。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock09.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6889" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock09.png" alt="スプライトの名前を「時の十の位」に変える" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock09.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock09-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock09-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock09-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock09-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock09-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock09-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<h4>コード</h4>
<p>1.イベントカテゴリから<span style="color: #ffd500;"><b>「ハタが<ruby>押<rt>お</rt></ruby>されたとき」</b></span>ブロックを出す。</p>
<p>2.<ruby>制御<rt>せいぎょ</rt></ruby>カテゴリから<span style="color: #ffab19;"><b>「ずっと」</b></span>ブロックを<span style="color: #ffd500;"><b>「ハタが<ruby>押<rt>お</rt></ruby>されたとき」</b></span>の下に出す。</p>
<p>3.見た目カテゴリから<span style="color: #9966ff;"><b>「コスチュームを( )にする」</b></span>を出し、<span style="color: #ffab19;"><b>「ずっと」</b></span>ブロックの中に入れる。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock10.png"><img loading="lazy" decoding="async" class="aligncenter wp-image-6890 size-full" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock10.png" alt="Scratch ブロック" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock10.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock10-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock10-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock10-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock10-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock10-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock10-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>4.時の十の<ruby>位<rt>くらい</rt></ruby>がいくつになるか計算</p>
<p><ruby>現在<rt>げんざい</rt></ruby>の時間から時の十の<ruby>位<rt>くらい</rt></ruby>の数字を取り出しましょう。</p>
<p>十の<ruby>位<rt>くらい</rt></ruby>は、その数字が<ruby>何個<rt>なんこ</rt></ruby>の十を持っているか表しています。なので、<span class="marker-under-red"><ruby>現在<rt>げんざい</rt></ruby>の時を10で<ruby>割<rt>わ</rt></ruby>ると十の<ruby>位<rt>くらい</rt></ruby>の数字だけ取り出せます。小数点<ruby>以下<rt>いか</rt></ruby>は<ruby>切<rt>き</rt></ruby>り<ruby>捨<rt>す</rt></ruby>てて<ruby>無視<rt>むし</rt></ruby>しましょう。</span></p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock11.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6891" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock11.png" alt="十の位の数字を取り出す" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock11.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock11-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock11-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock11-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock11-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock11-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock11-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>たとえば、</p>
<ul>
<li>午前8時：  8÷10 = 0.8 → 小数点<ruby>以下<rt>いか</rt></ruby><ruby>切<rt>き</rt></ruby>り<ruby>捨<rt>す</rt></ruby>て → <span style="color: #ff6600;">0</span></li>
<li>午後1時： 13÷10 = 1.3 → 小数点<ruby>以下<rt>いか</rt></ruby><ruby>切<rt>き</rt></ruby>り<ruby>捨<rt>す</rt></ruby>て → <span style="color: #ff6600;">1</span></li>
</ul>
<p>となります。</p>
<p>&nbsp;</p>
<p><ruby>演算<rt>えんざん</rt></ruby>カテゴリの<span style="color: #40bf4a;"><b>「( )/( )」</b></span>を出して、<ruby>左側<rt>ひだりがわ</rt></ruby>に<span style="color: #4cbfe6;"><b>「<ruby>現在<rt>げんざい</rt></ruby>の時」</b></span>ブロックを入れ、<ruby>右側<rt>みぎがわ</rt></ruby>に10を入力します。</p>
<p><ruby>現在<rt>げんざい</rt></ruby>の時間の時は、<span style="color: #4cbfe6;"><b>「<ruby>現在<rt>げんざい</rt></ruby>の時」</b></span>ブロックで<ruby>取得<rt>しゅとく</rt></ruby>できます。調べるカテゴリにある<span style="color: #4cbfe6;"><b>「<ruby>現在<rt>げんざい</rt></ruby>の年」</b></span>ブロックを出し、年の部分をクリックして、時に<ruby>変<rt>か</rt></ruby>えましょう。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock12.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6892" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock12.png" alt="現在の時ブロック" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock12.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock12-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock12-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock12-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock12-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock12-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock12-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>小数点<ruby>以下<rt>いか</rt></ruby>を<ruby>切<rt>き</rt></ruby>り<ruby>捨<rt>す</rt></ruby>てるため、<ruby>演算<rt>えんざん</rt></ruby>カテゴリから<span style="color: #40bf4a;"><b>「( )の<ruby>絶対値<rt>ぜったいち</rt></ruby>」</b></span>ブロックを出し、<ruby>絶対値<rt>ぜったいち</rt></ruby>の部分をクリックして「切り下げ」に<ruby>変<rt>か</rt></ruby>えます。中に<span style="color: #40bf4a;"><b>「<span style="color: #4cbfe6;"> <ruby>現在<rt>げんざい</rt></ruby>の時</span> / 10 」</b></span>を入れましょう。</p>
<p>切り下げは、指定した数の小数点<ruby>以下<rt>いか</rt></ruby>を切り下げて整数にする<ruby>命令<rt>めいれい</rt></ruby>です。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock13.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6893" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock13.png" alt="小数点以下を切り捨てる" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock13.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock13-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock13-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock13-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock13-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock13-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock13-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>5.<ruby>表示<rt>ひょうじ</rt></ruby>するコスチュームの番号</p>
<p><span style="color: #9966ff;"><b>「コスチュームを()にする」</b></span>ブロックは、()で指定した<ruby>値<rt>あたい</rt></ruby>と同じコスチューム番号のコスチュームが<ruby>表示<rt>ひょうじ</rt></ruby>されます。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock14.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6894" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock14.png" alt="「コスチュームを()にする」ブロック" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock14.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock14-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock14-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock14-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock14-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock14-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock14-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>このスプライトの場合だと、</p>
<ul>
<li>「コスチュームを(1)にする」なら「0」</li>
<li>「コスチュームを(2)にする」なら「1」</li>
</ul>
<p>と1つズレてしまうため<span style="color: #40bf4a;"><b>「 <span style="color: #4cbfe6;"><ruby>現在<rt>げんざい</rt></ruby>の時</span> / 10 の切り下げ」</b></span>で<ruby>求<rt>もと</rt></ruby>めた<ruby>値<rt>あたい</rt></ruby>に1足した<ruby>値<rt>あたい</rt></ruby>をコスチューム番号に指定しましょう。</p>
<p><ruby>演算<rt>えんざん</rt></ruby>カテゴリの<span style="color: #40bf4a;"><b>「( )+( )」</b></span>を出して、<ruby>左側<rt>ひだりがわ</rt></ruby>に<span style="color: #40bf4a;"><b>「 <span style="color: #4cbfe6;"><ruby>現在<rt>げんざい</rt></ruby>の時</span> / 10 の切り下げ」</b></span>ブロックを入れ、<ruby>右側<rt>みぎがわ</rt></ruby>に1を入力します。これを<span style="color: #9966ff;"><b>「コスチュームを()にする」</b></span>ブロックの中に入れましょう。</p>
<p>&nbsp;</p>
<h3><span id="toc9">時の一の位</span></h3>
<p>時の十の<ruby>位<rt>くらい</rt></ruby>のスプライトをコピーして<ruby>作成<rt>さくせい</rt></ruby>します。</p>
<h4>コスチューム</h4>
<p>1.時の十の<ruby>位<rt>くらい</rt></ruby>のスプライトを右クリックして「<ruby>複製<rt>ふくせい</rt></ruby>」を<ruby>選<rt>えら</rt></ruby>ぶ。</p>
<p>2.スプライト名を「時の一の<ruby>位<rt>くらい</rt></ruby>」に<ruby>変更<rt>へんこう</rt></ruby>する。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock20.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6901" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock20.png" alt="スプライトをコピー" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock20.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock20-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock20-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock20-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock20-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock20-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock20-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<h4>コード</h4>
<p><ruby>現在<rt>げんざい</rt></ruby>の時間から時の一の<ruby>位<rt>くらい</rt></ruby>の数字を取り出す方法を考えましょう。</p>
<p><ruby>現在<rt>げんざい</rt></ruby>の時を10で<ruby>割<rt>わ</rt></ruby>った商（小数点<ruby>以下<rt>いか</rt></ruby><ruby>切<rt>き</rt></ruby>り<ruby>捨<rt>す</rt></ruby>て）が十の<ruby>位<rt>くらい</rt></ruby>になりました。このとき、<ruby>割<rt>わ</rt></ruby>り<ruby>切<rt>き</rt></ruby>れなかった部分、つまり<span class="marker-under-red">あまりが一の<ruby>位<rt>くらい</rt></ruby></span>になります。</p>
<p>たとえば、</p>
<ul>
<li>午前8時：  8÷10 = 0 あまり <span style="color: #ff6600;">8</span></li>
<li>午後1時： 13÷10 = 1 あまり <span style="color: #ff6600;">3</span></li>
</ul>
<p>となります。</p>
<p>&nbsp;</p>
<p><span style="color: #9966ff;"><b>「コスチュームを()にする」</b></span>ブロックの中を<ruby>変更<rt>へんこう</rt></ruby>します。</p>
<p><ruby>演算<rt>えんざん</rt></ruby>カテゴリから<span style="color: #40bf4a;"><b>「( )を( )で<ruby>割<rt>わ</rt></ruby>った<ruby>余<rt>あま</rt></ruby>り」</b></span>を出して、<ruby>左側<rt>ひだりがわ</rt></ruby>に<span style="color: #4cbfe6;"><b>「<ruby>現在<rt>げんざい</rt></ruby>の時」</b></span>ブロックを入れ、<ruby>右側<rt>みぎがわ</rt></ruby>に10を入力しましょう。</p>
<p>コスチュームの番号は1つズレるので、<span style="color: #40bf4a;"><b>「( <span style="color: #4cbfe6;"><ruby>現在<rt>げんざい</rt></ruby>の時</span> を 10 で<ruby>割<rt>わ</rt></ruby>った<ruby>余<rt>あま</rt></ruby>り )+(1)」</b></span>にします。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock21.png"><img loading="lazy" decoding="async" class="aligncenter wp-image-6902 size-full" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock21.png" alt="時の一の位がいくつになるか計算" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock21.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock21-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock21-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock21-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock21-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock21-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock21-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<h3><span id="toc10">分の十の位と一の位</span></h3>
<p>分の十の<ruby>位<rt>くらい</rt></ruby>と一の<ruby>位<rt>くらい</rt></ruby>は、時の十の<ruby>位<rt>くらい</rt></ruby>と一の<ruby>位<rt>くらい</rt></ruby>とほぼ同じです。</p>
<p>スプライトをコピーし、<ruby>必要<rt>ひつよう</rt></ruby>な<ruby>変更<rt>へんこう</rt></ruby>を<ruby>加<rt>くわ</rt></ruby>えましょう。</p>
<p>何を<ruby>変<rt>か</rt></ruby>えたらよいか、自分で考えてみてくださいね！</p>
<p>&nbsp;</p>
<h3><span id="toc11">スプライトを配置する</span></h3>
<p>4つのスプライトをステージに<ruby>配置<rt>はいち</rt></ruby>します。</p>
<p>時と分の真ん中にある「：」のスプライトも作って<ruby>配置<rt>はいち</rt></ruby>しましょう。</p>
<p>&nbsp;</p>
<h3><span id="toc12">ちょっと変わった表現を紹介！</span></h3>
<p>時や分と同じやり方で秒を作ってもよいのですが、今回はちょっと<ruby>変<rt>か</rt></ruby>わったやり方を<ruby>紹介<rt>しょうかい</rt></ruby>します。</p>
<p>ニワトリが0秒のとき左はしから歩き始めて、60秒後に右はしに<ruby>到着<rt>とうちゃく</rt></ruby>するプログラムを<ruby>作成<rt>さくせい</rt></ruby>します。</p>
<p><iframe loading="lazy" src="https://scratch.mit.edu/projects/1050530918/embed" width="485" height="402" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen"></iframe></p>
<h4>コスチューム</h4>
<p>スプライトを<ruby>準備<rt>じゅんび</rt></ruby>します。</p>
<p>「スプライトを<ruby>選<rt>えら</rt></ruby>ぶ」→「スプライトを<ruby>選<rt>えら</rt></ruby>ぶ」から、ニワトリ(Hen)のスプライトを<ruby>選択<rt>せんたく</rt></ruby>します。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock15.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6895" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock15.png" alt="ニワトリ(Hen)のスプライトを選択" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock15.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock15-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock15-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock15-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock15-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock15-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock15-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>コスチュームの3つめと4つめは使わないので消しましょう。</p>
<p>スプライトの大きさを調整し、ステージの<ruby>好<rt>す</rt></ruby>きな場所に<ruby>配置<rt>はいち</rt></ruby>します。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock16.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6896" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock16.png" alt="使わないコスチュームを消し、ステージに配置する" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock16.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock16-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock16-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock16-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock16-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock16-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock16-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<h4>コード</h4>
<p>1.イベントカテゴリから<span style="color: #ffd500;"><b>「ハタが<ruby>押<rt>お</rt></ruby>されたとき」</b></span>ブロックを出す</p>
<p>2.<ruby>制御<rt>せいぎょ</rt></ruby>カテゴリの<span style="color: #ffab19;"><b>「ずっと」</b></span>ブロックを<span style="color: #ffd500;"><b>「ハタが<ruby>押<rt>お</rt></ruby>されたとき」</b></span>の下に入れる</p>
<p>3.動きカテゴリから<span style="color: #4c97ff;"><b>「X<ruby>座標<rt>ざひょう</rt></ruby>を ( ) にする」</b></span>ブロックを出す</p>
<p>&nbsp;</p>
<p><ruby>現在<rt>げんざい</rt></ruby>の秒に<ruby>応<rt>おう</rt></ruby>じてニワトリの<ruby>位置<rt>いち</rt></ruby>を計算し、X<ruby>座標<rt>ざひょう</rt></ruby>を<ruby>設定<rt>せってい</rt></ruby>します。</p>
<div class="blank-box bb-blue"><span style="color: #ff6600;"><b>X<ruby>座標<rt>ざひょう</rt></ruby></b></span>とは、画面の横の<ruby>位置<rt>いち</rt></ruby>を表す数字です。画面の真ん中を「0」として、<ruby>左側<rt>ひだりがわ</rt></ruby>に行くほど数字がマイナスになり、<ruby>右側<rt>みぎがわ</rt></ruby>に行くほど数字がプラスになります。</div>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock17.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6897" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock17.png" alt="ニワトリの位置を計算" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock17.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock17-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock17-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock17-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock17-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock17-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock17-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>X<ruby>座標<rt>ざひょう</rt></ruby> -180 から 180 まで<ruby>移動<rt>いどう</rt></ruby>する場合、<ruby>距離<rt>きょり</rt></ruby>は360です。1分（60秒）かけて360進みたいので、360 ÷ 60 で毎秒6ずつ<ruby>移動<rt>いどう</rt></ruby>する<ruby>必要<rt>ひつよう</rt></ruby>があります。</p>
<p>なので、<b>出発地点のX<ruby>座標<rt>ざひょう</rt></ruby>-180 に <ruby>現在<rt>げんざい</rt></ruby>の秒 * 6 を足す</b>と、ニワトリの<ruby>位置<rt>いち</rt></ruby>が<ruby>求<rt>もと</rt></ruby>められます。</p>
<p><span style="color: #40bf4a;"><b>「( -180 ) + ( <span style="color: #4cbfe6;"><ruby>現在<rt>げんざい</rt></ruby>の秒</span> * 6 ) にする」</b></span>を作り、<span style="color: #4c97ff;"><b>「X<ruby>座標<rt>ざひょう</rt></ruby>を ( ) にする」</b></span>ブロックに入れましょう。</p>
<p>&nbsp;</p>
<p>4.ニワトリに動きをつける</p>
<p>このままだと歩いている感じが出ないので、ニワトリに動きをつけましょう。</p>
<p>コスチューム1と2を<ruby>交互<rt>こうご</rt></ruby>に<ruby>表示<rt>ひょうじ</rt></ruby>させて、ニワトリが歩いているように見せます。</p>
<p>見た目カテゴリから<span style="color: #9966ff;"><b>「次のコスチューム」</b></span>ブロックを出し、<span style="color: #ffab19;"><b>「ずっと」</b></span>ブロックの中に入れましょう。</p>
<p>ただし、このままだと<ruby>超高速<rt>ちょうこうそく</rt></ruby>でニワトリのコスチュームが<ruby>変<rt>か</rt></ruby>わってしまうので、<ruby>制御<rt>せいぎょ</rt></ruby>カテゴリの<span style="color: #ffab19;"><b>「()秒待つ」</b></span>ブロックを出し、0.5と入力します。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock18.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6898" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock18.png" alt="Scratch ブロック" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock18.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock18-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock18-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock18-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock18-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock18-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock18-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>秒数を<ruby>変<rt>か</rt></ruby>えるとニワトリの動きが早くなったり、おそくなったりします。色々<ruby>試<rt>ため</rt></ruby>してみましょう！</p>
<p>&nbsp;</p>
<h2><span id="toc13">作品の完成</span></h2>
<p>デジタル時計が<ruby>完成<rt>かんせい</rt></ruby>しました。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock19.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6899" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock19.png" alt="デジタル時計" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock19.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock19-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock19-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock19-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock19-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock19-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-digital-clock19-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<ul>
<li>12時間<ruby>表示<rt>ひょうじ</rt></ruby>にしてみる</li>
<li>文字のデザインを<ruby>変<rt>か</rt></ruby>える</li>
<li>音を<ruby>追加<rt>ついか</rt></ruby>する</li>
<li>時間帯で<ruby>背景<rt>はいけい</rt></ruby>が<ruby>変<rt>か</rt></ruby>わる</li>
</ul>
<p>など、<ruby>好<rt>す</rt></ruby>きなようにアレンジして、自分だけのオリジナル<ruby>時計<rt>とけい</rt></ruby>を作ってみてくださいね！</p>
<p>&nbsp;</p>
<h2><span id="toc14">まとめ</span></h2>
<p>この記事では、Scratchを使った「デジタル時計」の作り方を<ruby>紹介<rt>しょうかい</rt></ruby>しました。自分だけのオリジナル時計を作ることができたでしょうか？</p>
<p>当ブログでは、<a rel="noopener" target="_self" href="https://living-maou.com/scratch-analog-clock/">アナログ時計の作り方<span class="fa fa-external-link internal-icon anchor-icon"></span></a>も<ruby>紹介<rt>しょうかい</rt></ruby>しています。ぜひチャレンジしてみてくださいね！</p>
<div class="blogcard-type bct-prev">

<a rel="noopener" target="_self" href="https://living-maou.com/scratch-analog-clock/" title="【Scratch】アナログ時計をプログラミングしよう！時計算の基礎も学べる" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-analog-clock-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-analog-clock-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-analog-clock-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-analog-clock-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-analog-clock-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-analog-clock-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-analog-clock-320x180.jpg 320w, https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-analog-clock.jpg 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">【Scratch】アナログ時計をプログラミングしよう！時計算の基礎も学べる</div><div class="blogcard-snippet internal-blogcard-snippet">スクラッチ(Scratch)を使った「アナログ時計」の作り方を紹介。針の動きをプログラミングして自分だけの時計を作ってみましょう！【リビングの魔王】ではコード例を交えながら分かりやすく解説します。「時計算」の基本的な考え方も学べますよ。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://living-maou.com/scratch-digital-clock/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【Scratch】アナログ時計をプログラミングしよう！時計算の基礎も学べる</title>
		<link>https://living-maou.com/scratch-analog-clock/</link>
					<comments>https://living-maou.com/scratch-analog-clock/#respond</comments>
		
		<dc:creator><![CDATA[メソ]]></dc:creator>
		<pubDate>Mon, 05 Aug 2024 00:36:08 +0000</pubDate>
				<category><![CDATA[Scratch]]></category>
		<category><![CDATA[作品例]]></category>
		<guid isPermaLink="false">https://living-maou.com/?p=6848</guid>

					<description><![CDATA[上のアイキャッチ画像はAIによって生成されました。 今回は、スクラッチ(Scratch)を使った「アナログ時計」の作り方を紹介しょうかいします。 秒針、短針、長針の動きをプログラミングして、自分だけのオリジナル時計を作っ [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-analog-clock.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6849" src="https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-analog-clock.jpg" alt="" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-analog-clock.jpg 800w, https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-analog-clock-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-analog-clock-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-analog-clock-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-analog-clock-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-analog-clock-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-analog-clock-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p style="text-align: right;"><span class="fz-14px">上のアイキャッチ画像はAIによって生成されました。</span></p>
<p>今回は、スクラッチ(Scratch)を使った「<b>アナログ時計</b>」の作り方を<ruby>紹介<rt>しょうかい</rt></ruby>します。</p>
<p>秒針、短針、長針の動きをプログラミングして、自分だけのオリジナル時計を作ってみましょう！</p>
<p>プログラミングを通じて時間の<ruby>概念<rt>がいねん</rt></ruby>をより深く<ruby>理解<rt>りかい</rt></ruby>し、算数でつまづきがちな「<b>時計算</b>」の<ruby>基本的<rt>きほんてき</rt></ruby>な考え方を自然に学べます。</p>
<p>図やコード例を交えながら、わかりやすく<ruby>解説<rt>かいせつ</rt></ruby>していきますので、プログラミング初心者でも安心して取り組めますよ。</p>
<p>ぜひ、親子で<ruby>一緒<rt>いっしょ</rt></ruby>に<ruby>挑戦<rt>ちょうせん</rt></ruby>して、プログラミングの楽しさを体験してみてください！</p>
<p>&nbsp;</p>
<p>Scratchはインターネットにつながるパソコンから無料で利用できます。</p>
<p>Scratch公式サイト: <a rel="noopener" target="_blank" href="https://scratch.mit.edu/">https://scratch.mit.edu/<span class="fa fa-external-link external-icon anchor-icon"></span></a></p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/scratch-start/">Scratchのアカウントの作り方と<ruby>基本的<rt>きほんてき</rt></ruby>な使い方<span class="fa fa-external-link internal-icon anchor-icon"></span></a>は、下の記事で<ruby>紹介<rt>しょうかい</rt></ruby>しています。</p>
<div class="blogcard-type bct-detail">

<a rel="noopener" target="_self" href="https://living-maou.com/scratch-start/" title="子ども向けプログラミング言語「スクラッチ(Scratch)」の始め方" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2020/03/eyecatch_scratch-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2020/03/eyecatch_scratch-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2020/03/eyecatch_scratch-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2020/03/eyecatch_scratch.jpg 800w, https://living-maou.com/wp-content/uploads/2020/03/eyecatch_scratch-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2020/03/eyecatch_scratch-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2020/03/eyecatch_scratch-1536x864.jpg 1536w, https://living-maou.com/wp-content/uploads/2020/03/eyecatch_scratch-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2020/03/eyecatch_scratch-320x180.jpg 320w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">子ども向けプログラミング言語「スクラッチ(Scratch)」の始め方</div><div class="blogcard-snippet internal-blogcard-snippet">子供向けプログラミング言語Scratch（スクラッチ）。プログラミング教育の教材として多くの小学校で使われています。【リビングの魔王】では、おうちでもスクラッチを使いたい方のために、アカウントの作成方法と基本的な使い方を紹介します。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
<p>&nbsp;</p>
<h2><span id="toc1">アナログ時計の読み方をおさらい</span></h2>
<p>「<b>アナログ時計</b>」は、3本の<ruby>針<rt>はり</rt></ruby>で時間時間を教えてくれる時計です。</p>
<div class="blank-box bb-blue">
<ul>
<li><ruby>秒針<rt>びょうしん</rt></ruby>：何秒かを教えてくれる<ruby>針<rt>はり</rt></ruby>。60秒で1周します。</li>
<li><ruby>長針<rt>ちょうしん</rt></ruby>：何分かを教えてくれる<ruby>針<rt>はり</rt></ruby>。60分で1周します。</li>
<li><ruby>短針<rt>たんしん</rt></ruby>：何時かを教えてくれる<ruby>針<rt>はり</rt></ruby>。12時間で1周します。</li>
</ul>
</div>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock01.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6850" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock01.png" alt="アナログ時計の読み方" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock01.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock01-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock01-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock01-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock01-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock01-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock01-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>これら3本の<ruby>針<rt>はり</rt></ruby>の動きをプログラミングして、<ruby>実際<rt>じっさい</rt></ruby>の時計のように動かしてみましょう。</p>
<p>また、時計の<ruby>文字盤<rt>もじばん</rt></ruby>の<ruby>目盛<rt>めもり</rt></ruby>もプログラミングで<ruby>描<rt>えが</rt></ruby>いてみます。</p>
<p>&nbsp;</p>
<h2><span id="toc2">完成プログラム</span></h2>
<p>完成した作品です。ハタをおして動かしてみてください。<br />
<iframe loading="lazy" src="https://scratch.mit.edu/projects/1047993172/embed" width="485" height="402" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen"></iframe></p>
<p>&nbsp;</p>
<p>完成したソースコードは下の通りです。</p>
<p><ruby>現在<rt>げんざい</rt></ruby>の時間を<ruby>取得<rt>しゅとく</rt></ruby>し、それぞれの<ruby>針<rt>はり</rt></ruby>が12時の<ruby>位置<rt>いち</rt></ruby>からどれくらい回転しているかを計算、<ruby>針<rt>はり</rt></ruby>の向きを<ruby>変<rt>か</rt></ruby>えています。</p>
<h3><span id="toc3">秒針のプログラム</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6851" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02.png" alt="Scratch 秒針のプログラム" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<h3><span id="toc4">長針のプログラム</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock03.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6852" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock03.png" alt="Scratch 長針のプログラム" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock03.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock03-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock03-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock03-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock03-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock03-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock03-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<h3><span id="toc5">短針のプログラム</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock04.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6853" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock04.png" alt="Scratch 短針のプログラム" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock04.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock04-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock04-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock04-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock04-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock04-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock04-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<h3><span id="toc6">文字盤のプログラム</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock05.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6854" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock05.png" alt="Scratch 文字盤のプログラム" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock05.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock05-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock05-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock05-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock05-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock05-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock05-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<div class="ad-area no-icon ad-shortcode ad-rectangle ad-label-visible cf" itemscope itemtype="https://schema.org/WPAdBlock">
  <div class="ad-label" itemprop="name" data-nosnippet>スポンサーリンク</div>
  <div class="ad-wrap">
    <div class="ad-responsive ad-usual"><!-- レスポンシブコード -->
<ins class="adsbygoogle"
  style="display:block"
  data-ad-client="ca-pub-9126458450711382"
  data-ad-slot="2965068638"
  data-ad-format="rectangle"
  data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></div>
          </div>

</div>

<h2><span id="toc7">プログラミングの手順</span></h2>
<h3><span id="toc8">秒針</span></h3>
<h4>コスチューム</h4>
<p>1.スプライトを作る</p>
<p>「スプライトを選ぶ」→「<ruby>描<rt>えが</rt></ruby>く」を選びます。</p>
<p>ネコのスプライトは消してOKです。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock06.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6855" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock06.png" alt="スプライトを作る" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock06.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock06-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock06-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock06-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock06-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock06-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock06-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>2.<ruby>秒針<rt>びょうしん</rt></ruby>をかく</p>
<p>直線ツールを使って<ruby>秒針<rt>びょうしん</rt></ruby>をかきます。</p>
<p>直線のはしをキャンバスの丸十字に合わせてください。ここを中心に<ruby>針<rt>はり</rt></ruby>が回転します。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock07.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6856" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock07.png" alt="直線ツールを使って秒針をかく" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock07.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock07-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock07-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock07-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock07-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock07-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock07-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>ペイントエディターのくわしい使い方は「<a rel="noopener" target="_self" href="https://living-maou.com/scratch-paint-vector/">【スクラッチ（Scratch）】絵を<ruby>描<rt>か</rt></ruby>いてスプライトや<ruby>背景<rt>はいけい</rt></ruby>を作ろう（ベクター<ruby>編<rt>へん</rt></ruby>）<span class="fa fa-external-link internal-icon anchor-icon"></span></a>」で<ruby>解説<rt>かいせつ</rt></ruby>しています。</p>
<p>&nbsp;</p>
<p>3.ステージにスプライトを配置する</p>
<p>ステージの中心(x<ruby>座標<rt>ざひょう</rt></ruby>0、y<ruby>座標<rt>ざひょう</rt></ruby>0）に、スプライトを配置し、向きを0にします。</p>
<p>スプライトの名前を「<ruby>秒針<rt>びょうしん</rt></ruby>」に変えましょう。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock08.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6857" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock08.png" alt="ステージの中心にスプライトを配置" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock08.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock08-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock08-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock08-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock08-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock08-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock08-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<h4>コード</h4>
<p>1.イベントカテゴリにある<span style="color: #ffd500;"><b>「ハタが<ruby>押<rt>お</rt></ruby>されたとき」</b></span>ブロックを出す</p>
<p>2.<ruby>制御<rt>せいぎょ</rt></ruby>カテゴリにある<span style="color: #ffab19;"><b>「ずっと」</b></span>ブロックを<span style="color: #ffd500;"><b>「ハタが<ruby>押<rt>お</rt></ruby>されたとき」</b></span>の下に出す</p>
<p>3.<ruby>針<rt>はり</rt></ruby>の向きを変える<ruby>処理<rt>しょり</rt></ruby>を追加する</p>
<p>動きカテゴリにある<span style="color: #4c97ff;"><b>「（ 90 ）度に向ける」</b></span>ブロックを出し、<span style="color: #ffab19;"><b>「ずっと」</b></span>ブロックの中に入れましょう。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock09.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6858" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock09.png" alt="Scratch ブロック" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock09.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock09-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock09-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock09-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock09-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock09-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock09-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>次に、何度に向けたらいいか考えましょう。<span style="color: #4c97ff;"><b>「（ 90 ）度に向ける」</b></span>ブロックの( 90 )の部分です。</p>
<p><ruby>秒針<rt>びょうしん</rt></ruby>は1分で一周します。</p>
<p>つまり、60秒で360度回転するので、360度÷60秒で毎秒6度ずつ進んでいます。</p>
<p>1秒で6度、2秒で12度、3秒で18度……と進むので、<ruby>秒針<rt>びょうしん</rt></ruby>の角度は<b>「<ruby>現在<rt>げんざい</rt></ruby>の秒 × 6」</b>で求められますね。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock10.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6859" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock10.png" alt="Scrach 秒針の角度" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock10.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock10-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock10-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock10-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock10-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock10-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock10-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p><ruby>演算<rt>えんざん</rt></ruby>カテゴリの<span style="color: #40bf4a;"><b>「( )*( )」</b></span>を出して、左側に<span style="color: #4cbfe6;"><b>「<ruby>現在<rt>げんざい</rt></ruby>の秒」</b></span>ブロックを入れ、右側に6を入力しましょう。そして<span style="color: #4c97ff;"><b>「（ 90 ）度に向ける」</b></span>の90の部分に入れます。</p>
<p><span style="color: #4cbfe6;"><b>「<ruby>現在<rt>げんざい</rt></ruby>の秒」</b></span>ブロックは、<ruby>現在<rt>げんざい</rt></ruby>の秒を調べるブロックです。調べるカテゴリにある<span style="color: #4cbfe6;"><b>「<ruby>現在<rt>げんざい</rt></ruby>の年」</b></span>ブロックを出し、年の部分をクリックして、秒に変えましょう。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock11.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6860" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock11.png" alt="Scratch ブロック" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock11.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock11-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock11-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock11-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock11-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock11-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock11-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p><ruby>秒針<rt>びょうしん</rt></ruby>のプログラムが完成しました。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6851" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02.png" alt="Scratch 秒針のプログラム" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<h3><span id="toc9">長針</span></h3>
<p><ruby>長針<rt>ちょうしん</rt></ruby>は1時間で一周します。</p>
<p>60分で360度回転するので、<b>1分で6度（360度÷60分）</b>進みます。</p>
<p>……<ruby>秒針<rt>びょうしん</rt></ruby>と<ruby>似<rt>に</rt></ruby>ていますね。<ruby>秒針<rt>びょうしん</rt></ruby>のスプライトをコピーして作りましょう。</p>
<p>&nbsp;</p>
<h4>コスチューム</h4>
<p>1.<ruby>秒針<rt>びょうしん</rt></ruby>のスプライトを右クリックして「<ruby>複製<rt>ふくせい</rt></ruby>」を選びます。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock12.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6861" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock12.png" alt="Scratch スプライトをコピーする" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock12.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock12-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock12-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock12-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock12-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock12-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock12-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>2.<ruby>秒針<rt>びょうしん</rt></ruby>2という名前のスプライトができるので、スプライト名を「<ruby>長針<rt>ちょうしん</rt></ruby>」に<ruby>変更<rt>へんこう</rt></ruby>しましょう。</p>
<p>3.ステージの中心(x<ruby>座標<rt>ざひょう</rt></ruby>0、y<ruby>座標<rt>ざひょう</rt></ruby>0）に、スプライトを配置し、向きを0にします。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock13.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6862" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock13.png" alt="長針をステージに配置する" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock13.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock13-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock13-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock13-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock13-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock13-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock13-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>4.見た目を<ruby>変更<rt>へんこう</rt></ruby>する</p>
<p>コスチュームから見た目を<ruby>変更<rt>へんこう</rt></ruby>します。線の太さや色を変えて、<ruby>秒針<rt>びょうしん</rt></ruby>と区別できるようにしましょう。</p>
<p>&nbsp;</p>
<h4>コード</h4>
<p>プログラムは、1ヵ所だけ変えればOKです。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6851" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02.png" alt="Scratch 秒針のプログラム" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock02-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>何を変えたらよいか、自分で考えてみましょう！</p>
<p>&nbsp;</p>
<h3><span id="toc10">短針</span></h3>
<h4>コスチューム</h4>
<p>1.<ruby>長針<rt>ちょうしん</rt></ruby>のスプライトを右クリックして「<ruby>複製<rt>ふくせい</rt></ruby>」を選びます。</p>
<p>2.<ruby>長針<rt>ちょうしん</rt></ruby>2のスプライトができるので、スプライト名を「<ruby>短針<rt>たんしん</rt></ruby>」に<ruby>変更<rt>へんこう</rt></ruby>しましょう。</p>
<p>3.ステージの中心(x<ruby>座標<rt>ざひょう</rt></ruby>0、y<ruby>座標<rt>ざひょう</rt></ruby>0）に、スプライトを配置し、向きを0にします。</p>
<p>4.<ruby>他<rt>ほか</rt></ruby>の<ruby>針<rt>はり</rt></ruby>と区別がつくようにコスチュームの見た目を<ruby>変更<rt>へんこう</rt></ruby>しましょう。</p>
<p>&nbsp;</p>
<h4>コード</h4>
<p><ruby>短針<rt>たんしん</rt></ruby>は12時間で一周するので、<b>1時間で30度（360度÷12時間）</b>進んでいます。</p>
<p>なので、角度は<b>「 <ruby>現在<rt>げんざい</rt></ruby>の時 × 30 」</b>で求められますね。</p>
<p><span style="color: #40bf4a;"><b>「<span style="color: #4cbfe6;">( <ruby>現在<rt>げんざい</rt></ruby>の時 )</span> * ( 30 )度に向ける」</b></span>にすればよさそうですが……</p>
<p><ruby>実際<rt>じっさい</rt></ruby>に動かしてみてください。本物の時計とちがうところがありませんか？</p>
<p>&nbsp;</p>
<p>本物の時計の<ruby>短針<rt>たんしん</rt></ruby>は、1時間の間にもちょっとずつ進んでいますね。</p>
<p>60分で30度進むので、<b>1分で0.5度（30度÷60分）</b>進みます。</p>
<p>よって<span style="color: #4c97ff;"><b>「(<span style="color: #40bf4a;">（<span style="color: #4cbfe6;"><ruby>現在<rt>げんざい</rt></ruby>の時</span> * 30）+（<span style="color: #4cbfe6;"><ruby>現在<rt>げんざい</rt></ruby>の分</span> * 0.5）</span>度に向ける」</b></span>で角度が求められます。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock14.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6863" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock14.png" alt="Scrach 短針の角度" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock14.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock14-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock14-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock14-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock14-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock14-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock14-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<h3><span id="toc11">文字盤を作る</span></h3>
<p>ペイントエディターで<ruby>文字盤<rt>もじばん</rt></ruby>を<ruby>描<rt>えが</rt></ruby>くのも楽しいですが、プログラムを使って<ruby>文字盤<rt>もじばん</rt></ruby>を<ruby>描<rt>えが</rt></ruby>いてみませんか？</p>
<p>これから<ruby>紹介<rt>しょうかい</rt></ruby>するプログラムの動きをゆっくりにすると、こんな感じになります。</p>
<p><iframe loading="lazy" src="https://scratch.mit.edu/projects/1047993283/embed" width="485" height="402" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen"></iframe></p>
<p>&nbsp;</p>
<h4>コスチューム</h4>
<p><ruby>文字盤<rt>もじばん</rt></ruby>に使いたいスプライトを<ruby>準備<rt>じゅんび</rt></ruby>しましょう。</p>
<p>&nbsp;</p>
<h4>コード</h4>
<p>「中心から外側へ<ruby>移動<rt>いどう</rt></ruby> → スタンプ → 中心へもどる → 30度回す」を12回くり返します。</p>
<p><ruby>目盛<rt>めもり</rt></ruby>は12<ruby>個<rt>こ</rt></ruby>あるので、360度÷12で30度ずつ回します。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock15.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6864" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock15.png" alt="12個の目盛を描く" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock15.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock15-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock15-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock15-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock15-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock15-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock15-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>1.<span style="color: #ffd500;"><b>「ハタが<ruby>押<rt>お</rt></ruby>されたとき」</b></span>ブロックを出す</p>
<p>2.<ruby>拡張<rt>かくちょう</rt></ruby><ruby>機能<rt>きのう</rt></ruby>から「ペン」を選ぶ</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock16.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6865" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock16.png" alt="拡張機能から「ペン」を追加" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock16.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock16-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock16-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock16-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock16-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock16-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock16-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>3.ペンカテゴリにある<span style="color: #2abd90;"><b>「全部消す」</b></span>ブロックを出す</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock17.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6866" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock17.png" alt="Scratch ペン" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock17.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock17-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock17-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock17-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock17-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock17-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock17-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>4.ステージの中心に、スプライトを配置します。</p>
<p>動きカテゴリから下の2つのブロックを出しましょう。</p>
<ul>
<li><span style="color: #4c97ff;"><b>「x<ruby>座標<rt>ざひょう</rt></ruby>を(0)、y<ruby>座標<rt>ざひょう</rt></ruby>を(0)にする」</b></span>ブロック</li>
<li><span style="color: #4c97ff;"><b>「(0)度に向ける」</b></span>ブロック</li>
</ul>
<p>&nbsp;</p>
<p>5.<ruby>目盛<rt>めもり</rt></ruby>を<ruby>描<rt>えが</rt></ruby>く</p>
<p><ruby>制御<rt>せいぎょ</rt></ruby>カテゴリ<span style="color: #ffab19;"><b>「(12)回<ruby>繰<rt>く</rt></ruby>り<ruby>返<rt>かえ</rt></ruby>す」</b></span>ブロックを出し、中に以下の<ruby>処理<rt>しょり</rt></ruby>を追加しましょう。</p>
<ol>
<li>動きカテゴリ<span style="color: #4c97ff;"><b>「(120)歩動かす」</b></span>ブロック</li>
<li>ペンカテゴリ<span style="color: #2abd90;"><b>「スタンプ」</b></span>ブロック</li>
<li>動きカテゴリ<span style="color: #4c97ff;"><b>「(-120)歩動かす」</b></span>ブロック</li>
<li>動きカテゴリ<span style="color: #4c97ff;"><b>「(30)度回す」</b></span>ブロック</li>
</ol>
<p>何歩動かすかは、お好みで調整してください。</p>
<p><span style="color: #2abd90;"><b>「スタンプ」</b></span>ブロックは、スプライトの見た目をハンコみたいにはりつける命令です。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock05.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6854" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock05.png" alt="Scratch 文字盤のプログラム" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock05.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock05-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock05-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock05-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock05-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock05-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock05-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>「アナとエルサとコードを書く」という<a rel="noopener" target="_blank" href="https://hourofcode.com/jp/learn">アワーオブコード<span class="fa fa-external-link external-icon anchor-icon"></span></a>のアクティビティでは、プログラムを使って美しいもようを<ruby>描<rt>えが</rt></ruby>く<ruby>方法<rt>ほうほう</rt></ruby>を学べます。プログラムでもようを<ruby>描<rt>えが</rt></ruby>くのが楽しかった方は、ぜひこちらもチェックしてみてください。</p>
<div class="blogcard-type bct-detail">

<a rel="noopener" target="_self" href="https://living-maou.com/hoc-frozen/" title="アワーオブコード「アナとエルサとコードを書く」答えを導くためのヒント" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2023/10/eyecatch-hoc-frozen-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2023/10/eyecatch-hoc-frozen-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2023/10/eyecatch-hoc-frozen-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2023/10/eyecatch-hoc-frozen-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2023/10/eyecatch-hoc-frozen-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2023/10/eyecatch-hoc-frozen-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2023/10/eyecatch-hoc-frozen-320x180.jpg 320w, https://living-maou.com/wp-content/uploads/2023/10/eyecatch-hoc-frozen.jpg 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">アワーオブコード「アナとエルサとコードを書く」答えを導くためのヒント</div><div class="blogcard-snippet internal-blogcard-snippet">アワーオブコード「アナとエルサとコードを書く」を解くヒント。【リビングの魔王】では難易度が高いと感じるお子さん向けに、課題を解く考え方を紹介します。答えは公開しませんので、ぜひ自分の力で美しい氷の模様を作ってみましょう！</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
<p>&nbsp;</p>
<h2><span id="toc12">作品の完成</span></h2>
<p>アナログ時計が完成しました！</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock18.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6867" src="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock18.png" alt="Scratch アナログ時計" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock18.png 800w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock18-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock18-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock18-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock18-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock18-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/07/scratch-analog-clock18-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>このままでは<ruby>飾<rt>かざ</rt></ruby>り<ruby>気<rt>け</rt></ruby>のない時計なので、好きなようにアレンジしてみましょう。</p>
<p>例えば、</p>
<ul>
<li><ruby>針<rt>はり</rt></ruby>のデザインを変える</li>
<li>決まった時間に音を鳴らす</li>
<li>時間帯で<ruby>背景<rt>はいけい</rt></ruby>が変わる</li>
</ul>
<p>など、自分だけのオリジナル時計を作ってみてくださいね！</p>
<p>&nbsp;</p>
<h2><span id="toc13">まとめ</span></h2>
<p>この記事では、Scratchを使った「アナログ時計」の作り方を<ruby>紹介<rt>しょうかい</rt></ruby>しました。自分だけのオリジナル時計を作ることができたでしょうか？</p>
<p>また、算数でつまづきがちな「時計算」の<ruby>基本的<rt>きほんてき</rt></ruby>な考え方も学ぶことができましたね。</p>
<div class="blank-box bb-blue">
<ul>
<li><ruby>秒針<rt>びょうしん</rt></ruby>：60秒で360度進むので、1秒で6度（360度÷60秒）進む。</li>
<li><ruby>長針<rt>ちょうしん</rt></ruby>：60分で360度進むので、1分で6度（360度÷60分）進む。</li>
<li><ruby>短針<rt>たんしん</rt></ruby>：12時間で360度進むので、1分で0.5度（360度÷(12時間×60分)）進む。</li>
</ul>
</div>
<p>当ブログでは「デジタル時計」の作り方も<ruby>紹介<rt>しょうかい</rt></ruby>しています。ぜひチャレンジしてみてくださいね！</p>
<div class="blogcard-type bct-next">

<a rel="noopener" target="_self" href="https://living-maou.com/scratch-digital-clock/" title="【Scratch】デジタル時計をプログラミングしよう！" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-digital-clock-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-digital-clock-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-digital-clock-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-digital-clock-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-digital-clock-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-digital-clock-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-digital-clock-320x180.jpg 320w, https://living-maou.com/wp-content/uploads/2024/07/eyecatch-scratch-digital-clock.jpg 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">【Scratch】デジタル時計をプログラミングしよう！</div><div class="blogcard-snippet internal-blogcard-snippet">スクラッチ(Scratch)を使った「デジタル時計」の作り方を紹介。【リビングの魔王】では図やコード例を交えながら分かりやすく解説します。自分だけのオリジナル時計を作ってみましょう！</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
<p>&nbsp;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://living-maou.com/scratch-analog-clock/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【Raspberry Pi】Scratchでマインクラフトパイリボーンを動かす方法</title>
		<link>https://living-maou.com/raspberrypi4-jibunpc03/</link>
					<comments>https://living-maou.com/raspberrypi4-jibunpc03/#respond</comments>
		
		<dc:creator><![CDATA[メソ]]></dc:creator>
		<pubDate>Thu, 20 Jun 2024 01:03:43 +0000</pubDate>
				<category><![CDATA[Raspberry Pi]]></category>
		<category><![CDATA[Minecraft]]></category>
		<category><![CDATA[RaspberryPi]]></category>
		<category><![CDATA[Scratch]]></category>
		<guid isPermaLink="false">https://living-maou.com/?p=6744</guid>

					<description><![CDATA[前回は、ラズベリーパイに「マインクラフトパイリボーン（Minecraft Pi Reborn）」をインストールしました。 今回は、スクラッチ(Scratch)を使ってマインクラフトパイリボーンを動かす方法を紹介します。  [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/06/eyecatch-raspberrypi4-jibunpc03.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6745" src="https://living-maou.com/wp-content/uploads/2024/06/eyecatch-raspberrypi4-jibunpc03.png" alt="" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/06/eyecatch-raspberrypi4-jibunpc03.png 800w, https://living-maou.com/wp-content/uploads/2024/06/eyecatch-raspberrypi4-jibunpc03-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/06/eyecatch-raspberrypi4-jibunpc03-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/06/eyecatch-raspberrypi4-jibunpc03-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/06/eyecatch-raspberrypi4-jibunpc03-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/06/eyecatch-raspberrypi4-jibunpc03-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/06/eyecatch-raspberrypi4-jibunpc03-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>前回は、ラズベリーパイに「<a rel="noopener" target="_self" href="https://living-maou.com/raspberrypi4-jibunpc02/">マインクラフトパイリボーン（Minecraft Pi Reborn）」をインストール<span class="fa fa-external-link internal-icon anchor-icon"></span></a>しました。</p>
<p>今回は、<a rel="noopener" target="_self" href="https://living-maou.com/scratch-start/">スクラッチ(Scratch)<span class="fa fa-external-link internal-icon anchor-icon"></span></a>を使ってマインクラフトパイリボーンを動かす方法を紹介します。</p>
<p>スクラッチとマインクラフトパイリボーンの橋渡しをしてくれるソフト「Scratch2MCPI」のインストール方法と、プログラミングできるようにする手順を詳しく説明していきますので、ぜひお子様と一緒にトライしてみてください。</p>
<p>人気ゲーム「マインクラフト（Minecraft）」を通じて、楽しくプログラミングを学びましょう！</p>
<p>この作業は、子供の科学「<a rel="noopener" target="_blank" href="https://www.kodomonokagaku.com/wp-content/uploads/2024/03/%E7%AC%AC84%E5%9B%9E-%E3%82%B8%E3%83%96%E3%83%B3%E5%B0%82%E7%94%A8%E3%83%91%E3%82%BD%E3%82%B3%E3%83%B3.pdf">マイクラをプログラミングして球をつくろう<span class="fa fa-external-link external-icon anchor-icon"></span></a>」の記事を参考にしています。</p>
<p>&nbsp;</p>
<p>ラズベリーパイの組み立て方と、マイクロビットリボーンのインストール方法は、下の記事でくわしく解説しています。</p>
<div class="blank-box bb-blue">
<ol>
<li><a rel="noopener" target="_self" href="https://living-maou.com/raspberrypi4-jibunpc01/">【Raspberry Pi】ラズベリーパイでジブン専用パソコン作ってみた（子供の科学）<span class="fa fa-external-link internal-icon anchor-icon"></span></a></li>
<li><a rel="noopener" target="_self" href="https://living-maou.com/raspberrypi4-jibunpc02/">【Minecraft Pi Reborn】マイクラをラズパイで遊ぼう！インストール手順<span class="fa fa-external-link internal-icon anchor-icon"></span></a></li>
</ol>
</div>
<h2><span id="toc1">「マインクラフトパイリボーン」をインストールする</span></h2>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-02.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6720" src="https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-02.jpg" alt="マインクラフトパイリボーン" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-02.jpg 800w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-02-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-02-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-02-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-02-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-02-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-02-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>まだ「マインクラフトパイリボーン」を入れていない場合は、インストールしましょう。</p>
<p>手順は「<a rel="noopener" target="_self" href="https://living-maou.com/raspberrypi4-jibunpc02/">【Raspberry Pi】ラズベリーパイにマインクラフトパイリボーンを入れる方法<span class="fa fa-external-link internal-icon anchor-icon"></span></a>」をご覧ください。</p>
<div class="blogcard-type bct-detail">

<a rel="noopener" target="_self" href="https://living-maou.com/raspberrypi4-jibunpc02/" title="【Minecraft Pi Reborn】マイクラをラズパイで遊ぼう！インストール手順" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2024/05/eyecatch-raspberrypi4-jibunpc02-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2024/05/eyecatch-raspberrypi4-jibunpc02-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2024/05/eyecatch-raspberrypi4-jibunpc02-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2024/05/eyecatch-raspberrypi4-jibunpc02-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2024/05/eyecatch-raspberrypi4-jibunpc02-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2024/05/eyecatch-raspberrypi4-jibunpc02-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2024/05/eyecatch-raspberrypi4-jibunpc02-320x180.jpg 320w, https://living-maou.com/wp-content/uploads/2024/05/eyecatch-raspberrypi4-jibunpc02.jpg 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">【Minecraft Pi Reborn】マイクラをラズパイで遊ぼう！インストール手順</div><div class="blogcard-snippet internal-blogcard-snippet">ラズベリーパイ向けに作られた「マインクラフトパイ」の後継版「マインクラフトパイリボーン」について紹介。【リビングの魔王】ではマインクラフトパイリボーンをインストールする方法と、遊び方を初心者向けに詳しく解説します。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
<p>&nbsp;</p>
<h2><span id="toc2">「Scratch2MCPI」をインストールする</span></h2>
<p>次に「Scratch2MCPI」をインストールします。</p>
<p>「Scratch2MCPI」は、Scratchとマインクラフトパイリボーンを連携させるソフトウェアです。</p>
<h3><span id="toc3">ブラウザからコマンドをコピー</span></h3>
<p>1.ラズベリーパイのブラウザを起動する</p>
<p>スタートメニュー → インターネット → Chromium ウェブ・ブラウザ で起動します。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-01.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6746" src="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-01.png" alt="スタートメニュー → インターネット → Chromium ウェブ・ブラウザ" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-01.png 800w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-01-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-01-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-01-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-01-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-01-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-01-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>2.「scratch2mcpi」を検索する</p>
<p>ブラウザのアドレスバーに「scratch2mcpi」と入力し、「Enter」キーをおします。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-02.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6747" src="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-02.png" alt="アドレスバーに「scratch2mcpi」と入力し「Enter」キーをおす" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-02.png 800w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-02-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-02-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-02-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-02-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-02-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-02-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>3.「Scratch2MCPI」のページを開く</p>
<p>検索結果から「Scratch2MCPI」（<a rel="noopener" target="_blank" href="https://scratch2mcpi.github.io">https://scratch2mcpi.github.io<span class="fa fa-external-link external-icon anchor-icon"></span></a>）をクリックして開きます。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-03.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6748" src="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-03.png" alt="検索結果から「Scratch2MCPI」を開く" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-03.png 800w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-03-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-03-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-03-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-03-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-03-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-03-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>4.「Raspberry Pi OS Bullseyeでのインストール方法」をクリック</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-04.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6749" src="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-04.png" alt="「Raspberry Pi OS Bullseyeでのインストール方法」をクリック" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-04.png 800w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-04-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-04-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-04-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-04-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-04-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-04-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>5.コマンドをコピーする</p>
<p>「Scratch2MCPIのインストール」に書かれている「https://scratch2mcpi.github.io/bullseye/install.sh | sh」をドラッグして右クリックし、コピーを選びます。先頭にある「%」は不要です。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-05.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6750" src="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-05.png" alt="コマンドをコピー" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-05.png 800w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-05-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-05-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-05-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-05-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-05-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-05-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<h3><span id="toc4">LXTerminal</span></h3>
<p>1.ターミナル（LXTerminal）を起動する</p>
<p>タスクバーのアイコンまたは、スタートメニュー → アクセサリ → LXTerminal で起動します。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-06.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6751" src="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-06.png" alt="スタートメニュー → アクセサリ → LXTerminal で起動" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-06.png 800w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-06-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-06-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-06-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-06-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-06-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-06-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>2.コマンドを貼り付け実行する</p>
<p>編集 → 貼り付け を選び、さっきコピーした「https://scratch2mcpi.github.io/bullseye/install.sh | sh」を貼り付けます。</p>
<p>「Enter」キーをおすと、ダウンロードとインストールが始まります。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-07.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6752" src="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-07.png" alt="コマンドを貼り付ける" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-07.png 800w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-07-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-07-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-07-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-07-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-07-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-07-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>3.インストールが完了したらブラウザとターミナルを閉じる</p>
<p>しばらく待って「Installation of scratch2mcpi is completed.」が表示されたらインストール完了です。</p>
<p>ブラウザとターミナルは「×」をクリックして閉じてOKです。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-08.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6753" src="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-08.png" alt="「Installation of scratch2mcpi is completed.」が表示されたらインストール完了" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-08.png 800w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-08-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-08-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-08-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-08-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-08-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-08-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<div class="ad-area no-icon ad-shortcode ad-rectangle ad-label-visible cf" itemscope itemtype="https://schema.org/WPAdBlock">
  <div class="ad-label" itemprop="name" data-nosnippet>スポンサーリンク</div>
  <div class="ad-wrap">
    <div class="ad-responsive ad-usual"><!-- レスポンシブコード -->
<ins class="adsbygoogle"
  style="display:block"
  data-ad-client="ca-pub-9126458450711382"
  data-ad-slot="2965068638"
  data-ad-format="rectangle"
  data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></div>
          </div>

</div>

<h2><span id="toc5">マインクラフトパイリボーンをプログラミングで動かそう</span></h2>
<p>マインクラフトパイリボーンとScratch2MCPIを起動して、プログラミングできるようにします。</p>
<h3><span id="toc6">マインクラフトパイリボーンを起動</span></h3>
<p>1.マインクラフトパイリボーンを起動する</p>
<p>スタートメニュー → ゲーム → Minecraft: Pi Edition: Reborn で起動します。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-11.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6729" src="https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-11.png" alt="「Minecraft: Pi Edition: Reborn」が追加された" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-11.png 800w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-11-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-11-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-11-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-11-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-11-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-11-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>オプション選択画面はそのまま「OK」をクリックで進めて大丈夫です。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-12.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6730" src="https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-12.png" alt="オプション選択画面1" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-12.png 800w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-12-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-12-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-12-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-12-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-12-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-12-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>ユーザーネームもそのままでOK。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-13.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6731" src="https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-13.png" alt="オプション選択画面2" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-13.png 800w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-13-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-13-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-13-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-13-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-13-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-13-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>2.クリエイティブモードのワールドを作る</p>
<p>「Start Game」をクリックします。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-14.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6732" src="https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-14.jpg" alt="「Start Game」をクリック" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-14.jpg 800w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-14-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-14-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-14-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-14-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-14-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-14-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>「Create new」をクリックします。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-15.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6733" src="https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-15.png" alt="「Create new」をクリック" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-15.png 800w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-15-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-15-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-15-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-15-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-15-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-15-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>「Creative mode」を選び、クリエイティブモードのワールドを作ります。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-16.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6734" src="https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-16.jpg" alt="モードを選択する" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-16.jpg 800w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-16-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-16-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-16-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-16-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-16-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2024/05/raspberrypi4-jibunpc02-16-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>3.ウィンドウを右下に移動する</p>
<p>マイクラのウィンドウは邪魔にならないように画面の右下に移動しておきましょう。</p>
<p>「Tab」キーをおすと、マウスカーソルをマイクラのウィンドウの外に移動できます。</p>
<p>ウィンドウのタイトルバーをドラッグすると移動できます。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-09.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6754" src="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-09.jpg" alt="ウィンドウを右下に移動" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-09.jpg 800w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-09-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-09-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-09-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-09-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-09-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-09-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<h3><span id="toc7">Scratch2MCPIを起動</span></h3>
<p>1.「Scratch2MCPI」を起動する</p>
<p>デスクトップにある「Scratch2MCPI」のアイコンをダブルクリックして起動します。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-10.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6755" src="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-10.png" alt="「Scratch2MCPI」のアイコンをダブルクリック" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-10.png 800w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-10-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-10-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-10-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-10-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-10-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-10-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>「ファイルを実行する」の表示が出たら「実行」をクリックします。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-11.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6756" src="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-11.png" alt="「実行」をクリック" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-11.png 800w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-11-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-11-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-11-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-11-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-11-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-11-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>タスクバーにある「Scratch2MCPI」をクリックして「Scratch2MCPI Terminal」をかくします。</p>
<p>「遠隔センサ接続が有効になりました」は「OK」で閉じます。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-12.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6757" src="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-12.png" alt="「Scratch2MCPI Terminal」をかくす" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-12.png 800w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-12-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-12-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-12-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-12-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-12-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-12-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>2.ウィンドウを左に移動する</p>
<p>スクラッチのウィンドウは左に移動してスクリプトエリアが見えるようにしましょう。</p>
<p>緑の旗をクリックして、マイクラに「&lt;StevePi&gt;hello minecraft」と表示されたら準備完了です。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-13.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6758" src="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-13.png" alt="緑の旗をクリックしてマイクラに「&lt;StevePi&gt;hello minecraft」と表示されたら準備完了" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-13.png 800w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-13-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-13-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-13-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-13-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-13-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-13-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>これでスクラッチでマイクラを動かせるようになりました！</p>
<p>&nbsp;</p>
<h3><span id="toc8">整地する</span></h3>
<p>地形がフラットな方がプログラミングしやすいと思います。</p>
<p>最初からスクリプトエリアにある「[hello_minecraft▼]を送る」の「▼」をクリックし、「reset」を選びます。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-14.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6759" src="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-14.png" alt="resetを送る" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-14.png 800w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-14-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-14-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-14-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-14-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-14-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-14-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>緑の旗をおすと、地形がフラットな状態になります。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-15.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6760" src="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-15.png" alt="緑の旗をおす" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-15.png 800w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-15-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-15-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-15-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-15-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-15-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-15-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<h2><span id="toc9">プログラムの保存</span></h2>
<p>スクラッチで作ったプログラムは「ファイル」→「名前をつけて保存&#8230;」から保存できます。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-16.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6762" src="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-16.png" alt="「ファイル」→「名前をつけて保存...」" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-16.png 800w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-16-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-16-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-16-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-16-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-16-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-16-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>新しいファイル名で名前をつけて「OK」をクリックしましょう。「mcpi_templete」は上書きしないように気をつけてください。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-17.png"><img loading="lazy" decoding="async" class="aligncenter wp-image-6761 size-full" src="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-17.png" alt="ファイル名をつけてOK" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-17.png 800w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-17-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-17-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-17-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-17-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-17-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-17-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>保存したファイルは「ファイル」→「開く&#8230;」から開けます。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-18.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6763" src="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-18.png" alt="「ファイル」→「開く...」" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-18.png 800w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-18-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-18-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-18-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-18-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-18-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-18-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>開きたいファイル名を選んで「OK」をクリックします。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-19.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6764" src="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-19.png" alt="ファイル名を選んでOK" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-19.png 800w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-19-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-19-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-19-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-19-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-19-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-19-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<h2><span id="toc10">終了する方法</span></h2>
<p>マイクラを終了するときは、キーボードの左上にある「Esc」キーをおして「Quit to title（タイトルにもどる）」を選びます。</p>
<p>タイトル画面にもどったら、ウィンドウ右上の「×」をおして閉じましょう。</p>
<p>スクラッチもウィンドウ右上の「×」をおして閉じます。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-20.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6765" src="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-20.png" alt="×でアプリを閉じる" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-20.png 800w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-20-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-20-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-20-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-20-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-20-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc03-20-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<h2><span id="toc11">まとめ</span></h2>
<p>「Scratch2MCPI」を使って、マインクラフトをスクラッチでプログラミングして動かす方法を紹介しました。</p>
<p>これで『子供の科学』に連載中の「<a rel="noopener" target="_blank" href="https://www.kodomonokagaku.com/experience/programming/7234/">はじめようジブン専用パソコン<span class="fa fa-external-link external-icon anchor-icon"></span></a>」の記事で紹介されていることができるようになったのではないでしょうか。</p>
<p>また、テキストプログラミングに興味がある人は、ぜひPythonに挑戦してみてください！<br />
<a rel="noopener" target="_self" href="https://living-maou.com/raspberrypi4-jibunpc04/">環境構築の方法をわかりやすく解説した記事<span class="fa fa-external-link internal-icon anchor-icon"></span></a>がありますので、ぜひそちらも参考にしてみてくださいね。</p>
<div class="blogcard-type bct-detail">

<a rel="noopener" target="_self" href="https://living-maou.com/raspberrypi4-jibunpc04/" title="【Raspberry Pi】Pythonでマインクラフトパイリボーンを楽しむための環境設定ガイド" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2024/11/eyecatch-raspberrypi4-jibunpc04-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2024/11/eyecatch-raspberrypi4-jibunpc04-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2024/11/eyecatch-raspberrypi4-jibunpc04-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2024/11/eyecatch-raspberrypi4-jibunpc04-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2024/11/eyecatch-raspberrypi4-jibunpc04-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2024/11/eyecatch-raspberrypi4-jibunpc04-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2024/11/eyecatch-raspberrypi4-jibunpc04-320x180.jpg 320w, https://living-maou.com/wp-content/uploads/2024/11/eyecatch-raspberrypi4-jibunpc04.jpg 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">【Raspberry Pi】Pythonでマインクラフトパイリボーンを楽しむための環境設定ガイド</div><div class="blogcard-snippet internal-blogcard-snippet">マインクラフトでPythonプログラミングに挑戦！【リビングの魔王】では初心者にも分かりやすいようスクリーンショットを使いつつ、環境構築の方法を丁寧に紹介します。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
<p>&nbsp;</p>
<h3><span id="toc12">【PR】小中学生向けのラズベリーパイ入門書</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc02-20.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6769" src="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc02-20.jpg" alt="ジブン専用パソコン Raspberry Piでプログラミング" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc02-20.jpg 800w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc02-20-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc02-20-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc02-20-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc02-20-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc02-20-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2024/06/raspberrypi4-jibunpc02-20-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>最後に、小中学生向けのラズベリーパイ入門書を紹介します。</p>
<p>『<a rel="nofollow noopener" target="_blank" href="//af.moshimo.com/af/c/click?a_id=1826192&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062&amp;url=https%3A%2F%2Fwww.amazon.co.jp%2Fdp%2F4416719191">ジブン専用パソコン Raspberry Piでプログラミング<span class="fa fa-external-link external-icon anchor-icon"></span></a><img loading="lazy" decoding="async" style="border: none;" src="//i.moshimo.com/af/i/impression?a_id=1826192&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062" alt="" width="1" height="1" />』は、ラズベリーパイを使って、パソコンのしくみや文書作成、プログラミングの基本を学べる本です。</p>
<p>この本は2019年11月に発行され、「Raspberry Pi 3 Model B+」を本体とした「ジブン専用パソコン2」を使って解説しています。</p>
<p>そのため、最新の<span style="color: #ff6600;">「ジブン専用パソコン4」や「ジブン専用パソコン3.5S」では、一部の内容が実践できない場合があります</span>。</p>
<p>しかし、以前のバージョンを元にした解説内容も参考になるため、読んで損はないと思います。</p>
<p><a rel="noopener" target="_blank" href="https://jp.mercari.com/search?afid=2355148725&amp;keyword=%E3%82%B8%E3%83%96%E3%83%B3%E5%B0%82%E7%94%A8%E3%83%91%E3%82%BD%E3%82%B3%E3%83%B3+Raspberry+Pi%E3%81%A7%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0">メルカリ<span class="fa fa-external-link external-icon anchor-icon"></span></a>でも出品があるので、探してみてはいかがでしょうか。</p>
<p><!-- START MoshimoAffiliateEasyLink --><br />
<script type="text/javascript">
(function(b,c,f,g,a,d,e){b.MoshimoAffiliateObject=a;
b[a]=b[a]||function(){arguments.currentScript=c.currentScript
||c.scripts[c.scripts.length-2];(b[a].q=b[a].q||[]).push(arguments)};
c.getElementById(a)||(d=c.createElement(f),d.src=g,
d.id=a,e=c.getElementsByTagName("body")[0],e.appendChild(d))})
(window,document,"script","//dn.msmstatic.com/site/cardlink/bundle.js?20220329","msmaflink");
msmaflink({"n":"ジブン専用パソコン Raspberry Piでプログラミング: ゲームづくりから自由研究までなんだってできる! (子供の科学★ミライクリエイティブ)","b":"誠文堂新光社","t":"","d":"https:\/\/m.media-amazon.com","c_p":"\/images\/I","p":["\/51nTdzbE15L._SL500_.jpg","\/51Em8TuwsYL._SL500_.jpg","\/51SwovkyiuL._SL500_.jpg","\/514eq3MR4+L._SL500_.jpg","\/51rapLI0hLL._SL500_.jpg","\/513C-wzS+cL._SL500_.jpg","\/51h1oBmkF0L._SL500_.jpg","\/51JQ3oC3tiL._SL500_.jpg"],"u":{"u":"https:\/\/www.amazon.co.jp\/dp\/4416719191","t":"amazon","r_v":""},"v":"2.1","b_l":[{"id":1,"u_tx":"Amazonで見る","u_bc":"#f79256","u_url":"https:\/\/www.amazon.co.jp\/dp\/4416719191","a_id":1826192,"p_id":170,"pl_id":27060,"pc_id":185,"s_n":"amazon","u_so":1},{"id":29,"u_tx":"楽天市場で見る","u_bc":"#f76956","u_url":"https:\/\/search.rakuten.co.jp\/search\/mall\/%E3%82%B8%E3%83%96%E3%83%B3%E5%B0%82%E7%94%A8%E3%83%91%E3%82%BD%E3%82%B3%E3%83%B3%20Raspberry%20Pi%E3%81%A7%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0%3A%20%E3%82%B2%E3%83%BC%E3%83%A0%E3%81%A5%E3%81%8F%E3%82%8A%E3%81%8B%E3%82%89%E8%87%AA%E7%94%B1%E7%A0%94%E7%A9%B6%E3%81%BE%E3%81%A7%E3%81%AA%E3%82%93%E3%81%A0%E3%81%A3%E3%81%A6%E3%81%A7%E3%81%8D%E3%82%8B!%20(%E5%AD%90%E4%BE%9B%E3%81%AE%E7%A7%91%E5%AD%A6%E2%98%85%E3%83%9F%E3%83%A9%E3%82%A4%E3%82%AF%E3%83%AA%E3%82%A8%E3%82%A4%E3%83%86%E3%82%A3%E3%83%96)\/","a_id":1820957,"p_id":54,"pl_id":27059,"pc_id":54,"s_n":"rakuten","u_so":2},{"id":30,"u_tx":"Yahoo!ショッピングで見る","u_bc":"#66a7ff","u_url":"https:\/\/shopping.yahoo.co.jp\/search?first=1\u0026p=%E3%82%B8%E3%83%96%E3%83%B3%E5%B0%82%E7%94%A8%E3%83%91%E3%82%BD%E3%82%B3%E3%83%B3%20Raspberry%20Pi%E3%81%A7%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0%3A%20%E3%82%B2%E3%83%BC%E3%83%A0%E3%81%A5%E3%81%8F%E3%82%8A%E3%81%8B%E3%82%89%E8%87%AA%E7%94%B1%E7%A0%94%E7%A9%B6%E3%81%BE%E3%81%A7%E3%81%AA%E3%82%93%E3%81%A0%E3%81%A3%E3%81%A6%E3%81%A7%E3%81%8D%E3%82%8B!%20(%E5%AD%90%E4%BE%9B%E3%81%AE%E7%A7%91%E5%AD%A6%E2%98%85%E3%83%9F%E3%83%A9%E3%82%A4%E3%82%AF%E3%83%AA%E3%82%A8%E3%82%A4%E3%83%86%E3%82%A3%E3%83%96)","a_id":1832853,"p_id":1225,"pl_id":27061,"pc_id":1925,"s_n":"yahoo","u_so":3}],"eid":"U7mqe","s":"s"});
</script></p>
<div id="msmaflink-U7mqe">リンク</div>
]]></content:encoded>
					
					<wfw:commentRss>https://living-maou.com/raspberrypi4-jibunpc03/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【Scratch】秘密のお手紙作り！スクラッチで暗号文を書こう！</title>
		<link>https://living-maou.com/scratch-secret-letter/</link>
					<comments>https://living-maou.com/scratch-secret-letter/#respond</comments>
		
		<dc:creator><![CDATA[メソ]]></dc:creator>
		<pubDate>Mon, 20 May 2024 01:25:34 +0000</pubDate>
				<category><![CDATA[Scratch]]></category>
		<category><![CDATA[作品例]]></category>
		<guid isPermaLink="false">https://living-maou.com/?p=6654</guid>

					<description><![CDATA[上のアイキャッチ画像はAIによって生成されました。 お友達ともだちと手紙のやりとり、楽しいですよね！ でも、もし手紙を落としてしまったり、だれかに見られてしまったら一大事…！ 特に好きな人のことや、なやみなんか、絶対ぜっ [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/05/eyecatch-scratch-secret-letter.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6655" src="https://living-maou.com/wp-content/uploads/2024/05/eyecatch-scratch-secret-letter.jpg" alt="" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/05/eyecatch-scratch-secret-letter.jpg 800w, https://living-maou.com/wp-content/uploads/2024/05/eyecatch-scratch-secret-letter-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2024/05/eyecatch-scratch-secret-letter-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2024/05/eyecatch-scratch-secret-letter-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2024/05/eyecatch-scratch-secret-letter-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2024/05/eyecatch-scratch-secret-letter-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2024/05/eyecatch-scratch-secret-letter-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p style="text-align: right;"><span class="fz-14px">上のアイキャッチ画像はAIによって生成されました。</span></p>
<p>お<ruby>友達<rt>ともだち</rt></ruby>と手紙のやりとり、楽しいですよね！</p>
<p>でも、もし手紙を落としてしまったり、だれかに見られてしまったら一大事…！</p>
<p>特に好きな人のことや、なやみなんか、<ruby>絶対<rt>ぜったい</rt></ruby>に見られたくないですよね。</p>
<p>そこで、この記事ではScratchを使って<b>「暗号文を作ったりもどしたりするプログラム」</b>の作り方を<ruby>紹介<rt>しょうかい</rt></ruby>します。</p>
<p>このプログラムがあれば、手紙の<ruby>内容<rt>ないよう</rt></ruby>をだれにも読めない<ruby>秘密<rt>ひみつ</rt></ruby>の言葉に変えることができます。</p>
<p><ruby>秘密<rt>ひみつ</rt></ruby>の言葉で手紙を書けば、安心して大切な話もできますね！</p>
<p>&nbsp;</p>
<div class="blank-box bb-tab bb-ng bb-red">このプログラムを使って、人の悪口を書いたり、いじめをしたりするのは<ruby>絶対<rt>ぜったい</rt></ruby>にダメ！<br />
約束してくださいね。</div>
<p>&nbsp;</p>
<p>Scratchはインターネットにつながるパソコンから無料で利用できます。</p>
<p>Scratch公式サイト: <a rel="noopener" target="_blank" href="https://scratch.mit.edu/">https://scratch.mit.edu/<span class="fa fa-external-link external-icon anchor-icon"></span></a></p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/scratch-start/">Scratchのアカウントの作り方と基本的な使い方<span class="fa fa-external-link internal-icon anchor-icon"></span></a>は、下の記事で<ruby>紹介<rt>しょうかい</rt></ruby>しています。</p>
<div class="blogcard-type bct-detail">

<a rel="noopener" target="_self" href="https://living-maou.com/scratch-start/" title="子ども向けプログラミング言語「スクラッチ(Scratch)」の始め方" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2020/03/eyecatch_scratch-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2020/03/eyecatch_scratch-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2020/03/eyecatch_scratch-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2020/03/eyecatch_scratch.jpg 800w, https://living-maou.com/wp-content/uploads/2020/03/eyecatch_scratch-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2020/03/eyecatch_scratch-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2020/03/eyecatch_scratch-1536x864.jpg 1536w, https://living-maou.com/wp-content/uploads/2020/03/eyecatch_scratch-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2020/03/eyecatch_scratch-320x180.jpg 320w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">子ども向けプログラミング言語「スクラッチ(Scratch)」の始め方</div><div class="blogcard-snippet internal-blogcard-snippet">子供向けプログラミング言語Scratch（スクラッチ）。プログラミング教育の教材として多くの小学校で使われています。【リビングの魔王】では、おうちでもスクラッチを使いたい方のために、アカウントの作成方法と基本的な使い方を紹介します。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
<p>&nbsp;</p>
<h2><span id="toc1">2つのリストを使って暗号文を作る</span></h2>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter07.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6656" src="https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter07.png" alt="2つのリストを使って暗号文を作る" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter07.png 800w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter07-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter07-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter07-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter07-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter07-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter07-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>暗号文を作る方法はいろいろありますが、今回は<b>2つのリストを使った方法</b>を<ruby>紹介<rt>しょうかい</rt></ruby>します。</p>
<p>あいうえお順にならんだ「かなリスト」と、順番がバラバラな「カナリスト」を作り、<ruby>対応<rt>たいおう</rt></ruby>する文字に変える仕組みです。</p>
<p>&nbsp;</p>
<h2><span id="toc2">完成プログラム</span></h2>
<p>完成したソースコードは下の通りです。</p>
<h3><span id="toc3">暗号にするプログラム</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter01.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6657" src="https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter01.png" alt="暗号にするプログラム" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter01.png 800w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter01-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter01-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter01-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter01-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter01-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter01-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>ひらがなで文字列（ならんだ文字の集まり）を入力すると、暗号にしてくれるプログラムです。</p>
<p>ひらがな以外の文字はそのまま出力されます。</p>
<p>&nbsp;</p>
<h3><span id="toc4">暗号をもどすプログラム</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter02.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6658" src="https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter02.png" alt="暗号をもどすプログラム" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter02.png 800w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter02-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter02-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter02-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter02-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter02-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter02-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>暗号文を元にもどせないと意味がありませんね。</p>
<p>カタカナで暗号文を入力すると、もとの文字列にもどしてくれるプログラムも作ります。</p>
<p>&nbsp;</p>
<h3><span id="toc5">リストから文字を探すプログラム</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter03.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6659" src="https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter03.png" alt="リスト検索（ブロック定義）" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter03.png 800w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter03-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter03-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter03-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter03-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter03-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter03-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>リストから文字を<ruby>探<rt>さが</rt></ruby>すプログラム。ブロック<ruby>定義<rt>ていぎ</rt></ruby>にしなくてもOKです。</p>
<p>&nbsp;</p>
<div class="ad-area no-icon ad-shortcode ad-rectangle ad-label-visible cf" itemscope itemtype="https://schema.org/WPAdBlock">
  <div class="ad-label" itemprop="name" data-nosnippet>スポンサーリンク</div>
  <div class="ad-wrap">
    <div class="ad-responsive ad-usual"><!-- レスポンシブコード -->
<ins class="adsbygoogle"
  style="display:block"
  data-ad-client="ca-pub-9126458450711382"
  data-ad-slot="2965068638"
  data-ad-format="rectangle"
  data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></div>
          </div>

</div>

<h2><span id="toc6">プログラム解説</span></h2>
<p>このプログラムは、<b>変数</b>・<b>リスト</b>・<b>ブロック<ruby>定義<rt>ていぎ</rt></ruby></b>を使います。</p>
<div class="blank-box bb-blue">
<ul>
<li><span style="color: #ff6600;"><b>変　数</b></span>：データを一時的に覚えておくための入れ物</li>
<li><span style="color: #ff6600;"><b>リスト</b></span>：たくさんのデータを順番にならべ管理できるようにしたもの</li>
<li><span style="color: #ff6600;"><b>ブロック<ruby>定義<rt>ていぎ</rt></ruby></b></span>：ある<ruby>処理<rt>しょり</rt></ruby>をまとめたもの</li>
</ul>
</div>
<p>&nbsp;</p>
<p>下の記事でくわしく<ruby>解説<rt>かいせつ</rt></ruby>しています。使い方がよく分からない人は読んでみてくださいね。</p>
<div class="blank-box bb-blue">
<ul>
<li><a rel="noopener" target="_self" href="https://living-maou.com/scratch-variable/">変数とは？スクラッチ（Scratch）を使ってわかりやすく<ruby>解説<rt>かいせつ</rt></ruby><span class="fa fa-external-link internal-icon anchor-icon"></span></a></li>
<li><a rel="noopener" target="_self" href="https://living-maou.com/scratch-list/">配列・リストとは？スクラッチ（Scratch）を使ってわかりやすく<ruby>解説<rt>かいせつ</rt></ruby><span class="fa fa-external-link internal-icon anchor-icon"></span></a></li>
<li><a rel="noopener" target="_self" href="https://living-maou.com/scratch-function/">関数とは？スクラッチ(Scratch)を使ってわかりやすく<ruby>解説<rt>かいせつ</rt></ruby><span class="fa fa-external-link internal-icon anchor-icon"></span></a></li>
</ul>
</div>
<p>&nbsp;</p>
<h3><span id="toc7">スプライトを準備する</span></h3>
<p>スプライトをひとつ<ruby>準備<rt>じゅんび</rt></ruby>します。</p>
<p>暗号をもどすプログラムは、暗号にするプログラムを作ってからスプライトをコピーして作るので、最初はひとつでOKです。</p>
<p>スプライトの見た目や<ruby>背景<rt>はいけい</rt></ruby>は好きなモノを選んでください。</p>
<p>&nbsp;</p>
<h3><span id="toc8">変数・リスト・ブロック定義を作成</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter04.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6660" src="https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter04.png" alt="変数・リスト・ブロック定義" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter04.png 800w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter04-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter04-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter04-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter04-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter04-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter04-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>必要な変数・リスト・ブロック<ruby>定義<rt>ていぎ</rt></ruby>を作成します。</p>
<p>&nbsp;</p>
<h4>変数</h4>
<p>変数カテゴリ→「変数を作る」から、変数を4つ作ります。</p>
<div class="blank-box bb-blue">
<ul>
<li>入力：入力した文字列</li>
<li>出力：出力する文字列</li>
<li>in：入力した文字列の何番目の文字か</li>
<li>list：リストの何番目か</li>
</ul>
</div>
<p>&nbsp;</p>
<h4>リスト</h4>
<p>変数カテゴリ→「リストを作る」から、リスト2つを作ります。</p>
<div class="blank-box bb-blue">
<ul>
<li>かなリスト：あいうえお順にならんでいる</li>
<li>カナリスト：順番がバラバラになっている</li>
</ul>
</div>
<p>メモ帳などにデータを作ってから読み込むと、楽ですよ。</p>
<p>&nbsp;</p>
<h4>ブロック定義</h4>
<p>ブロック<ruby>定義<rt>ていぎ</rt></ruby>も2つ用意します。</p>
<p>ブロック<ruby>定義<rt>ていぎ</rt></ruby>カテゴリ→「ブロックを作る」で作れます。</p>
<div class="blank-box bb-blue">
<ul>
<li>かなリスト<ruby>検索<rt>けんさく</rt></ruby></li>
<li>カナリスト<ruby>検索<rt>けんさく</rt></ruby></li>
</ul>
</div>
<p>中の<ruby>処理<rt>しょり</rt></ruby>は、後で<ruby>解説<rt>かいせつ</rt></ruby>します。</p>
<p>&nbsp;</p>
<h3><span id="toc9">暗号にするプログラム</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter05.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6661" src="https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter05.png" alt="暗号にするプログラム解説" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter05.png 800w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter05-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter05-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter05-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter05-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter05-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter05-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>スプライトをクリックした時に、実行します。<span style="color: #ffd500;"><b>「このスプライトが<ruby>押<rt>お</rt></ruby>されたとき」</b></span>を出しましょう。</p>
<p><span style="color: #ff8c1a;"><b>「（出力）を（　）にする」</b></span>で、変数「出力」を初期化します。</p>
<p><span style="color: #4cbfe6;"><b>「（暗号に<ruby>変換<rt>へんかん</rt></ruby>したい文字列を入力してください）と聞いて待つ」</b></span>と<span style="color: #ff8c1a;"><b>「（入力）を（答え）にする」</b></span>で、入力された文字列を変数「入力」に<ruby>格納<rt>かくのう</rt></ruby>します。</p>
<p>入力した文字列を1文字ずつ取り出して、かなリストにあるか<ruby>検索<rt>けんさく</rt></ruby>します。</p>
<p><span style="color: #ff8c1a;"><b>「（in）を（1）にする」</b></span>で、変数「in」の初期<ruby>値<rt>ち</rt></ruby>を<ruby>設定<rt>せってい</rt></ruby>します。1文字目から順番にみるので、初期<ruby>値<rt>ち</rt></ruby>は1です。</p>
<p><span style="color: #ffab19;"><b>「（入力の長さ）回<ruby>繰<rt>く</rt></ruby>り<ruby>返<rt>かえ</rt></ruby>す」</b></span>で、入力した文字数分くり返しましょう。</p>
<p>ブロック<ruby>定義<rt>ていぎ</rt></ruby><span style="color: #ff6680;"><b>「かなリスト<ruby>検索<rt>けんさく</rt></ruby>」</b></span>で、かなリストの何番目の文字か<ruby>検索<rt>けんさく</rt></ruby>します。変数「list」には、かなリストの何番目か<ruby>格納<rt>かくのう</rt></ruby>されます。</p>
<p>&nbsp;</p>
<p>かなリストにあった場合と、なかった場合で<ruby>処理<rt>しょり</rt></ruby>を分けます。</p>
<p><span style="color: #ffab19;"><b>「もし （list） &gt; かなの長さ なら」</b></span>の中には、<b>リストになかった場合</b>の<ruby>処理<rt>しょり</rt></ruby>を入れます。</p>
<p><span style="color: #ff8c1a;"><b>「（出力）を（出力と入力のin<ruby>番目<rt>ばんめ</rt></ruby>の文字）にする」</b></span>で入力した文字をそのまま出力しましょう。</p>
<p><span style="color: #ffab19;"><b>「でなければ」</b></span>の中には、<b>リストにあった場合</b>の<ruby>処理<rt>しょり</rt></ruby>を入れます。</p>
<p><span style="color: #ff8c1a;"><b>「（出力）を（出力とカナのlist<ruby>番目<rt>ばんめ</rt></ruby>の文字）にする」</b></span>で、カナリストの<ruby>対応<rt>たいおう</rt></ruby>する文字を出力しましょう。</p>
<p><span style="color: #ff8c1a;"><b>「（in）を（1）ずつ変える」</b></span>で、入力した文字列の次の文字をみるようにし、くり返しの最初の<ruby>処理<rt>しょり</rt></ruby>へもどります。</p>
<p>&nbsp;</p>
<p>くり返しをぬけたら<span style="color: #9966ff;"><b>「（出力）と（5）秒言う」</b></span>で<ruby>変換<rt>へんかん</rt></ruby>後の文字列を<ruby>表示<rt>ひょうじ</rt></ruby>しましょう。</p>
<p>&nbsp;</p>
<h3><span id="toc10">かなリスト検索</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter06.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6662" src="https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter06.png" alt="かなリスト検索解説" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter06.png 800w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter06-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter06-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter06-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter06-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter06-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/05/scratch-secret-letter06-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>入力した文字が、かなリストの何番目の文字か<ruby>検索<rt>けんさく</rt></ruby>するブロック<ruby>定義<rt>ていぎ</rt></ruby>を作ります。</p>
<p><span style="color: #ff8c1a;"><b>「（list）を（1）にする」</b></span>で変数「list」の初期<ruby>値<rt>ち</rt></ruby>を<ruby>設定<rt>せってい</rt></ruby>します。1番目の<ruby>要素<rt>ようそ</rt></ruby>から順番にみるので、初期<ruby>値<rt>ち</rt></ruby>は1です。</p>
<p>以下の<ruby>条件<rt>じょうけん</rt></ruby>をどちらか満たすまで<span style="color: #ff8c1a;"><b>「（list）を（1）ずつ変える」</b></span>を実行します。</p>
<ul>
<li><b>入力のin<ruby>番目<rt>ばんめ</rt></ruby>の文字 = かなのlist<ruby>番目<rt>ばんめ</rt></ruby></b> → リストにあった</li>
<li><b>list &gt; かなの長さ</b> → 最後までみたけれどリストになかった</li>
</ul>
<p>&nbsp;</p>
<h3><span id="toc11">暗号をもどすプログラム</span></h3>
<p>暗号にするプログラムでは、入力した文字がかなリストの何番目の文字か<ruby>探<rt>さが</rt></ruby>し、<ruby>対応<rt>たいおう</rt></ruby>するカナリストの文字に<ruby>変換<rt>へんかん</rt></ruby>しました。</p>
<p>暗号をもどすプログラムではその<ruby>逆<rt>ぎゃく</rt></ruby>を行います。</p>
<div class="blank-box bb-blue">
<ul>
<li style="list-style-type: none;">
<ul>
<li>暗号にする　：かな → カナ</li>
<li>暗号をもどす：カナ → かな</li>
</ul>
</li>
</ul>
</div>
<p>暗号にするプログラムのスプライトをコピーして、どこを直せばいいか自分で考えてみてくださいね。</p>
<p>&nbsp;</p>
<h2><span id="toc12">まとめ</span></h2>
<p>「暗号文を作ったりもどしたりするプログラム」の作り方を<ruby>紹介<rt>しょうかい</rt></ruby>しました。</p>
<p>約束を守って、みんなと仲良く楽しい手紙の<ruby>交換<rt>こうかん</rt></ruby>を楽しんでくださいね！</p>
<p>&nbsp;</p>
<div class="blogcard-type bct-related">

<a rel="noopener" target="_self" href="https://living-maou.com/scratch-braille/" title="【Scratch】点字のしくみの調べ学習にプログラミングをプラス！小学生向け自由研究" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2023/08/eyecatch-scratch-braille-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2023/08/eyecatch-scratch-braille-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2023/08/eyecatch-scratch-braille-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2023/08/eyecatch-scratch-braille-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2023/08/eyecatch-scratch-braille-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2023/08/eyecatch-scratch-braille-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2023/08/eyecatch-scratch-braille-320x180.jpg 320w, https://living-maou.com/wp-content/uploads/2023/08/eyecatch-scratch-braille.jpg 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">【Scratch】点字のしくみの調べ学習にプログラミングをプラス！小学生向け自由研究</div><div class="blogcard-snippet internal-blogcard-snippet">自由研究におすすめ！Scratch（スクラッチ）を使って、アルファベットを点字に変換するプログラムの作り方を紹介。点字をテーマに調べ学習をしたときにチャレンジしてみてください！【リビングの魔王】ではプログラムの作り方を分かりやすく解説します。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://living-maou.com/scratch-secret-letter/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【エラーで学ぶScratch】バグを自分で解決！デバッグの基礎を学ぼう</title>
		<link>https://living-maou.com/scratch-err/</link>
					<comments>https://living-maou.com/scratch-err/#respond</comments>
		
		<dc:creator><![CDATA[メソ]]></dc:creator>
		<pubDate>Wed, 20 Mar 2024 04:49:52 +0000</pubDate>
				<category><![CDATA[Scratch]]></category>
		<category><![CDATA[本]]></category>
		<guid isPermaLink="false">https://living-maou.com/?p=6561</guid>

					<description><![CDATA[本などを見ながらプログラミングを勉強している時、エラーをお手本とのまちがい探しで修正していませんか？ エラーの原因を見つけて修正する力は、プログラミングで不可欠な要素です。 本記事では『エラーで学ぶScratch まちが [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/03/eyecatch-scratch-error.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6562" src="https://living-maou.com/wp-content/uploads/2024/03/eyecatch-scratch-error.jpg" alt="" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/03/eyecatch-scratch-error.jpg 800w, https://living-maou.com/wp-content/uploads/2024/03/eyecatch-scratch-error-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2024/03/eyecatch-scratch-error-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2024/03/eyecatch-scratch-error-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2024/03/eyecatch-scratch-error-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2024/03/eyecatch-scratch-error-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2024/03/eyecatch-scratch-error-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<div class="information-box common-icon-box"><span class="fz-14px">このページにはアフィリエイトリンクが含まれています。</span></div>
<p><!-- リンクを介して商品を購入した場合、当ブログに報酬が支払われることがあります。またリンクから購入しても読者様のご負担はございません。 --></p>

<p>本などを見ながらプログラミングを勉強している時、エラーをお手本とのまちがい探しで修正していませんか？</p>
<p><span class="marker-under-red"><b>エラーの原因を見つけて修正する力</b>は、プログラミングで不可欠な要素</span>です。</p>
<p>本記事では『<a rel="nofollow noopener" target="_blank" href="//af.moshimo.com/af/c/click?a_id=1826192&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062&amp;url=https%3A%2F%2Fwww.amazon.co.jp%2Fdp%2F4296070436">エラーで学ぶScratch まちがいを見つけてプログラミング初心者から抜け出そう<span class="fa fa-external-link external-icon anchor-icon"></span></a><img loading="lazy" decoding="async" style="border: none;" src="//i.moshimo.com/af/i/impression?a_id=1826192&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062" alt="" width="1" height="1" />』という本を紹介します。</p>
<p>この本は、Scratchでよくあるエラーを見つけて修正することで、プログラミング力を高めるための問題集です。</p>
<p>問題を解くことで、以下の力が身につきます。</p>
<div class="blank-box bb-blue">
<ul>
<li>エラーを見つける力</li>
<li>エラーを修正する力</li>
<li>プログラムを読む力</li>
<li>論理的思考力</li>
<li>問題解決能力</li>
</ul>
</div>
<p>Scratch経験のある小学校高学年以上の子や、プログラミング初心者の大人の方におすすめの一冊です。</p>
<p>&nbsp;</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/scratch-bookmatome/">Scratchがはじめての子向けの本<span class="fa fa-external-link internal-icon anchor-icon"></span></a>は、以下の記事で紹介しています。</p>
<div class="blogcard-type bct-related">

<a rel="noopener" target="_self" href="https://living-maou.com/scratch-bookmatome/" title="初心者向けおすすめ Scratch（スクラッチ）本3選 小学生のはじめてのプログラミング学習に" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2020/10/eyecatch-scratch-book2206-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2020/10/eyecatch-scratch-book2206-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2020/10/eyecatch-scratch-book2206-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2020/10/eyecatch-scratch-book2206-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2020/10/eyecatch-scratch-book2206-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2020/10/eyecatch-scratch-book2206-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2020/10/eyecatch-scratch-book2206-320x180.jpg 320w, https://living-maou.com/wp-content/uploads/2020/10/eyecatch-scratch-book2206.jpg 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">初心者向けおすすめ Scratch（スクラッチ）本3選 小学生のはじめてのプログラミング学習に</div><div class="blogcard-snippet internal-blogcard-snippet">子どもとScratchに挑戦したいけれど、どんな本を選んでいいか分からないと困っていませんか？この記事では小学生のはじめてのプログラミング学習にオススメのScratch本を紹介します。お子さんの興味や目的にあった本が見つかりますよ。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
<h2><span id="toc1">エラーを見つけて解決することで思考力を鍛えられる</span></h2>
<p>今回紹介するのは、</p>
<div class="blank-box bb-blue">『<a rel="nofollow noopener" target="_blank" href="//af.moshimo.com/af/c/click?a_id=1826192&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062&amp;url=https%3A%2F%2Fwww.amazon.co.jp%2Fdp%2F4296070436">エラーで学ぶScratch まちがいを見つけてプログラミング初心者から抜け出そう<span class="fa fa-external-link external-icon anchor-icon"></span></a><img loading="lazy" decoding="async" style="border: none;" src="//i.moshimo.com/af/i/impression?a_id=1826192&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062" alt="" width="1" height="1" />』<br />
（著者：中野 博幸　解説：堀田 龍也　監修：阿部 和広）</div>
<p>という本です。<br />
<!-- START MoshimoAffiliateEasyLink --><br />
<script type="text/javascript">
(function(b,c,f,g,a,d,e){b.MoshimoAffiliateObject=a;
b[a]=b[a]||function(){arguments.currentScript=c.currentScript
||c.scripts[c.scripts.length-2];(b[a].q=b[a].q||[]).push(arguments)};
c.getElementById(a)||(d=c.createElement(f),d.src=g,
d.id=a,e=c.getElementsByTagName("body")[0],e.appendChild(d))})
(window,document,"script","//dn.msmstatic.com/site/cardlink/bundle.js?20220329","msmaflink");
msmaflink({"n":"エラーで学ぶScratch まちがいを見つけてプログラミング初心者から抜け出そう","b":"日経BP","t":"","d":"https:\/\/m.media-amazon.com","c_p":"","p":["\/images\/I\/51xNiyYGXDL._SL500_.jpg"],"u":{"u":"https:\/\/www.amazon.co.jp\/dp\/4296070436","t":"amazon","r_v":""},"v":"2.1","b_l":[{"id":1,"u_tx":"Amazonで見る","u_bc":"#f79256","u_url":"https:\/\/www.amazon.co.jp\/dp\/4296070436","a_id":1826192,"p_id":170,"pl_id":27060,"pc_id":185,"s_n":"amazon","u_so":1},{"id":29,"u_tx":"楽天市場で見る","u_bc":"#f76956","u_url":"https:\/\/search.rakuten.co.jp\/search\/mall\/%E3%82%A8%E3%83%A9%E3%83%BC%E3%81%A7%E5%AD%A6%E3%81%B6Scratch%20%E3%81%BE%E3%81%A1%E3%81%8C%E3%81%84%E3%82%92%E8%A6%8B%E3%81%A4%E3%81%91%E3%81%A6%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0%E5%88%9D%E5%BF%83%E8%80%85%E3%81%8B%E3%82%89%E6%8A%9C%E3%81%91%E5%87%BA%E3%81%9D%E3%81%86\/","a_id":1820957,"p_id":54,"pl_id":27059,"pc_id":54,"s_n":"rakuten","u_so":2},{"id":30,"u_tx":"Yahoo!ショッピングで見る","u_bc":"#66a7ff","u_url":"https:\/\/shopping.yahoo.co.jp\/search?first=1\u0026p=%E3%82%A8%E3%83%A9%E3%83%BC%E3%81%A7%E5%AD%A6%E3%81%B6Scratch%20%E3%81%BE%E3%81%A1%E3%81%8C%E3%81%84%E3%82%92%E8%A6%8B%E3%81%A4%E3%81%91%E3%81%A6%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0%E5%88%9D%E5%BF%83%E8%80%85%E3%81%8B%E3%82%89%E6%8A%9C%E3%81%91%E5%87%BA%E3%81%9D%E3%81%86","a_id":1832853,"p_id":1225,"pl_id":27061,"pc_id":1925,"s_n":"yahoo","u_so":3}],"eid":"p5t2f","s":"s"});
</script></p>
<div id="msmaflink-p5t2f">リンク</div>
<p><span class="marker-under-red">エラーをわざと入れたプログラムを解読し、なぜエラーが発生したのか、そしてどのように修正すればよいのかを考えることで、より深くプログラミングを学ぶ</span>ことができます。</p>
<p>また、エラーを見つけて修正方法を考える過程は、プログラミング学習だけでなく、<span class="marker-under-red"><b>論理的思考力</b>と<b>問題解決能力</b>を鍛える絶好の機会</span>です。</p>
<p>課題や問題に直面した時に、冷静に分析して解決策を見つけ出す力は、プログラミングだけでなく、日常生活や仕事など様々な場面で役立ちます。</p>
<p>&nbsp;</p>
<h2><span id="toc2">Scratchだから論理エラーの解決に集中できる</span></h2>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/03/scratch-error01.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6563" src="https://living-maou.com/wp-content/uploads/2024/03/scratch-error01.png" alt="構文エラーと論理エラー" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/03/scratch-error01.png 800w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error01-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error01-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error01-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error01-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error01-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error01-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>プログラミングのエラーには、大きく分けて2種類あります。</p>
<div class="blank-box bb-blue">
<ul>
<li>構文エラー：プログラミング言語のルールが守られていない</li>
<li>論理エラー：ルールは守っているのに、思った通りに動かない</li>
</ul>
</div>
<p>プログラミング言語にはルールがあり、そのルールを守らないと、コンピュータは理解できません。</p>
<p><span style="color: #ff6600;"><b>構文エラー</b></span>は、スペルミスや文法的な間違いなど、<span class="marker-under-red">プログラミング言語のルールを守っていない</span>コードがあると発生します。</p>
<p><span style="color: #ff6600;"><b>論理エラー</b></span>は、コード自体は<span class="marker-under-red">文法的に正しく書かれているのに、思った通りに動かない</span>場合に発生します。例えば、計算式や条件分岐が間違っている時に発生します。</p>
<p>論理エラーを特定するには、コードをていねいに読み解き、ロジックに誤りがないかを検証する必要があるため、よく考える練習にピッタリです。</p>
<p>ビジュアルプログラミング言語の<b>Scratch（スクラッチ）</b>は、ブロックを組み合わせてプログラムを作成するので、構文エラーが発生しにくいのが特徴。</p>
<p>そのため、<span class="marker-under-red">論理エラーの解決に集中できる</span>のがとてもいいと思いました。</p>
<p>&nbsp;</p>
<p><span class="badge badge-blue">関連記事</span> <a rel="noopener" target="_self" href="https://living-maou.com/scratch-start/">子ども向けプログラミング言語「スクラッチ(Scratch)」の始め方<span class="fa fa-external-link internal-icon anchor-icon"></span></a></p>
<h2><span id="toc3">Scratch経験のある小学校高学年以上の人におすすめ</span></h2>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/03/scratch-error02.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6564" src="https://living-maou.com/wp-content/uploads/2024/03/scratch-error02.jpg" alt="エラーで学ぶScratch" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/03/scratch-error02.jpg 800w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error02-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error02-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error02-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error02-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error02-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error02-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>『<a rel="nofollow noopener" target="_blank" href="//af.moshimo.com/af/c/click?a_id=1826192&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062&amp;url=https%3A%2F%2Fwww.amazon.co.jp%2Fdp%2F4296070436">エラーで学ぶScratch<span class="fa fa-external-link external-icon anchor-icon"></span></a><img loading="lazy" decoding="async" style="border: none;" src="//i.moshimo.com/af/i/impression?a_id=1826192&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062" alt="" width="1" height="1" />』では、変数の初期化や条件のまちがいなど、プログラミングでよくあるエラーが出題されます。</p>
<p>5つのパートに分かれており、少しずつ難易度が上がっていきます。</p>
<div class="blank-box bb-blue">
<ul>
<li>パート1：変数と演算（7問）</li>
<li>パート2：繰り返し（15問）</li>
<li>パート3：条件分岐（15問）</li>
<li>パート4：ペン・リスト（9問）</li>
<li>パート5：難問に挑戦しよう（4問）</li>
</ul>
</div>
<p>パート1～4では基本的な問題を扱っており、小学生にもおすすめです。</p>
<p>パート5のチャレンジ問題は、複数のエラーがあるなど、難しい問題に挑戦できます。</p>
<p>しかし、ふりがなが振られていないため、小学校低学年の子どもには読みづらいと感じました。</p>
<p>さらに、Scratchのブロックの仕様をある程度理解している必要があります。文字列や<a rel="noopener" target="_self" href="https://living-maou.com/scratch-variable/">変数<span class="fa fa-external-link internal-icon anchor-icon"></span></a>、<a rel="noopener" target="_self" href="https://living-maou.com/scratch-list/">リスト<span class="fa fa-external-link internal-icon anchor-icon"></span></a>などの用語や概念にも理解が必要です。</p>
<p>そのため、この問題集は<span class="marker-under-red">Scratch経験のある小学校高学年以上の子や、プログラミング初心者の大人の方におすすめ</span>します。</p>
<p>&nbsp;</p>
<h2><span id="toc4">問題を解く手順</span></h2>
<p>『<a rel="nofollow noopener" target="_blank" href="//af.moshimo.com/af/c/click?a_id=1826192&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062&amp;url=https%3A%2F%2Fwww.amazon.co.jp%2Fdp%2F4296070436">エラーで学ぶScratch<span class="fa fa-external-link external-icon anchor-icon"></span></a><img loading="lazy" decoding="async" style="border: none;" src="//i.moshimo.com/af/i/impression?a_id=1826192&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062" alt="" width="1" height="1" />』の問題を解く手順を紹介します。</p>
<div class="blank-box bb-blue">
<ol>
<li><a href="#step1">正しい結果を確認する</a></li>
<li><a href="#step2">問題のプログラムを動かして結果を見る</a></li>
<li><a href="#step3">問題のプログラムを見て、間違っている場所を特定する</a></li>
<li><a href="#step4">解決案を考える</a></li>
<li><a href="#step5">プログラムを直して動かしてみる</a></li>
</ol>
</div>
<p>&nbsp;</p>
<h3 id="step1"><span id="toc5">1. 正しい結果を確認する</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/03/scratch-error03.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6565" src="https://living-maou.com/wp-content/uploads/2024/03/scratch-error03.png" alt="正しい結果を確認する" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/03/scratch-error03.png 800w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error03-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error03-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error03-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error03-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error03-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error03-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>問題文に記載されている正しい結果を確認しましょう。</p>
<p><span class="marker-under-red">どのような動きをするプログラムなのかを理解する</span>ことが重要です。</p>
<p>&nbsp;</p>
<h3 id="step2"><span id="toc6">2. 問題のプログラムを動かして結果を見る</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/03/scratch-error04.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6566" src="https://living-maou.com/wp-content/uploads/2024/03/scratch-error04.png" alt="プログラムを動かして結果を見る" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/03/scratch-error04.png 800w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error04-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error04-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error04-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error04-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error04-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error04-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>問題ページの下にあるScratchのサイトURLまたはQRコードからプロジェクトにアクセスし、プログラムを動かしてみましょう。</p>
<p>実際に動かしてみることで、問題がある場所を見つけやすくなります。</p>
<p>&nbsp;</p>
<h3 id="step3"><span id="toc7">3. 問題のプログラムを見て間違っている場所を特定する</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/03/scratch-error05.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6567" src="https://living-maou.com/wp-content/uploads/2024/03/scratch-error05.png" alt="間違っている場所を特定する" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/03/scratch-error05.png 800w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error05-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error05-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error05-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error05-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error05-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error05-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>正しい結果と実際の結果を比べて、プログラムのどこが間違っているのかを特定しましょう。</p>
<p>ブロックの順番や、判定条件、変数がどう変わるのかなどを確認します。</p>
<p>&nbsp;</p>
<h3 id="step4"><span id="toc8">4. 解決案を考える</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/03/scratch-error06.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6568" src="https://living-maou.com/wp-content/uploads/2024/03/scratch-error06.png" alt="解決案を考える" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/03/scratch-error06.png 800w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error06-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error06-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error06-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error06-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error06-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error06-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>間違っている場所を特定したら、どのように修正すれば正しい結果になるのか考えましょう。</p>
<p>解決策がひとつとは限りません。いくつか方法を考えてみてください。</p>
<p>&nbsp;</p>
<h3 id="step5"><span id="toc9">5. プログラムを直して動かしてみる</span></h3>
<p>考えた解決策を、プログラムに反映させます。</p>
<p>解決策が複数ある場合は、分かりやすさや修正のしやすさなどを考えて選んでみてください。</p>
<p>修正後プログラムを動かして、正しい結果になるかどうかを確認しましょう。</p>
<p>&nbsp;</p>
<h3><span id="toc10">さらにチャレンジ</span></h3>
<p>自信のある人は、本に掲載されている<span class="marker-under-red">プログラムだけを見て、間違っている場所を見つけてみる</span>のもおすすめです。</p>
<p>コードを一文ずつていねいに読み解く必要があるので、より思考力を鍛えられます。</p>
<p>&nbsp;</p>
<h2><span id="toc11">エラーを特定するコツ</span></h2>
<p>プログラムでエラーが発生したとき、初心者にとって原因を特定するのは難しい場合があります。</p>
<p>『<a rel="nofollow noopener" target="_blank" href="//af.moshimo.com/af/c/click?a_id=1826192&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062&amp;url=https%3A%2F%2Fwww.amazon.co.jp%2Fdp%2F4296070436">エラーで学ぶScratch<span class="fa fa-external-link external-icon anchor-icon"></span></a><img loading="lazy" decoding="async" style="border: none;" src="//i.moshimo.com/af/i/impression?a_id=1826192&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062" alt="" width="1" height="1" />』では、エラーを特定するためのいくつかのコツが紹介されています。</p>
<div class="blank-box bb-blue">
<ul>
<li>思い込みを疑う</li>
<li>変数を表示する</li>
<li>長いプログラムは分割する</li>
<li>条件分岐は境目の値で確認する</li>
<li>乱数を使う場合には範囲を狭めて確認する</li>
</ul>
</div>
<p>&nbsp;</p>
<p>上記のポイントに加えて、以下の2つの方法を紹介します。</p>
<div class="blank-box bb-blue">
<ul>
<li><a href="#point1">ルートを確認する</a></li>
<li><a href="#point2">コメントを入れる</a></li>
</ul>
</div>
<p>&nbsp;</p>
<h3 id="point1"><span id="toc12">ルートの確認</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/03/scratch-error07.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6569" src="https://living-maou.com/wp-content/uploads/2024/03/scratch-error07.png" alt="ルートを確認する" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/03/scratch-error07.png 800w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error07-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error07-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error07-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error07-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error07-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error07-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>分岐の多いプログラムでは、どのルートを通っているのか分かりにくいことがあります。</p>
<p><span class="marker-under-red">「〇〇と言う」ブロックを追加する</span>ことで、どのルートを通っているのか確認しやすくなります。</p>
<p>&nbsp;</p>
<h3 id="point2"><span id="toc13">コメントを入れる</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/03/scratch-error08.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6570" src="https://living-maou.com/wp-content/uploads/2024/03/scratch-error08.png" alt="コメントを入れる" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/03/scratch-error08.png 800w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error08-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error08-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error08-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error08-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error08-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/03/scratch-error08-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>長いプログラムを読んでいると、どこで何が起こっているか分かりにくくなります。</p>
<p><span class="marker-under-red">処理のまとまりごとにコメントを追加する</span>ことで、プログラムの流れを理解しやすくなり、問題を見つけやすくなります。</p>
<p>原因特定には時間がかかる場合もあります。諦めずに粘り強く調査を続けましょう。</p>
<p>&nbsp;</p>
<h2><span id="toc14">まとめ</span></h2>
<p>『<a rel="nofollow noopener" target="_blank" href="//af.moshimo.com/af/c/click?a_id=1826192&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062&amp;url=https%3A%2F%2Fwww.amazon.co.jp%2Fdp%2F4296070436">エラーで学ぶScratch まちがいを見つけてプログラミング初心者から抜け出そう<span class="fa fa-external-link external-icon anchor-icon"></span></a><img loading="lazy" decoding="async" style="border: none;" src="//i.moshimo.com/af/i/impression?a_id=1826192&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062" alt="" width="1" height="1" />』を紹介しました。</p>
<p><span class="marker-under-red">プログラムのまちがいを見つけて修正する作業</span>を<span style="color: #ff6600;"><b>デバッグ</b></span>といいます。</p>
<p><span class="marker-under-red">プログラムのまちがい</span>のことを<span style="color: #ff6600;"><b>バグ(bug)</b></span>といいます。それを取り除く作業（de）なので、デバッグ(debug)と呼ばれています。</p>
<p>デバッグは、プログラミング学習で不可欠な要素です。</p>
<p>デバッグを通して、プログラミングの理解を深め、論理的思考力と問題解決能力を鍛えましょう！</p>
<p>&nbsp;</p>
<p>下の記事では、<a rel="noopener" target="_self" href="https://living-maou.com/scratch-test/">プログラムのテスト方法<span class="fa fa-external-link internal-icon anchor-icon"></span></a>を簡単な形に小学生向けにアレンジして紹介しています。テストをすることで、プログラムの間違いを見つけることができます。ぜひ参考にしてみてください。</p>
<div class="blogcard-type bct-together">

<a rel="noopener" target="_self" href="https://living-maou.com/scratch-test/" title="【子ども向け】プログラムもテストするって本当？バグを見つけよう！" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2024/08/eyecatch-scratch-test-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2024/08/eyecatch-scratch-test-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2024/08/eyecatch-scratch-test-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2024/08/eyecatch-scratch-test-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2024/08/eyecatch-scratch-test-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2024/08/eyecatch-scratch-test-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2024/08/eyecatch-scratch-test-320x180.jpg 320w, https://living-maou.com/wp-content/uploads/2024/08/eyecatch-scratch-test.jpg 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">【子ども向け】プログラムもテストするって本当？バグを見つけよう！</div><div class="blogcard-snippet internal-blogcard-snippet">プログラムが正しく動くか確認するためのテスト方法をわかりやすく解説。【リビングの魔王】では小学生向けにテストの準備から実行、結果の評価まで丁寧に紹介します。プログラミング学習だけでなく、論理的思考力と問題解決能力を鍛えられます。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
<p><!-- START MoshimoAffiliateEasyLink --><br />
<script type="text/javascript">
(function(b,c,f,g,a,d,e){b.MoshimoAffiliateObject=a;
b[a]=b[a]||function(){arguments.currentScript=c.currentScript
||c.scripts[c.scripts.length-2];(b[a].q=b[a].q||[]).push(arguments)};
c.getElementById(a)||(d=c.createElement(f),d.src=g,
d.id=a,e=c.getElementsByTagName("body")[0],e.appendChild(d))})
(window,document,"script","//dn.msmstatic.com/site/cardlink/bundle.js?20220329","msmaflink");
msmaflink({"n":"エラーで学ぶScratch まちがいを見つけてプログラミング初心者から抜け出そう","b":"日経BP","t":"","d":"https:\/\/m.media-amazon.com","c_p":"","p":["\/images\/I\/51xNiyYGXDL._SL500_.jpg"],"u":{"u":"https:\/\/www.amazon.co.jp\/dp\/4296070436","t":"amazon","r_v":""},"v":"2.1","b_l":[{"id":1,"u_tx":"Amazonで見る","u_bc":"#f79256","u_url":"https:\/\/www.amazon.co.jp\/dp\/4296070436","a_id":1826192,"p_id":170,"pl_id":27060,"pc_id":185,"s_n":"amazon","u_so":1},{"id":29,"u_tx":"楽天市場で見る","u_bc":"#f76956","u_url":"https:\/\/search.rakuten.co.jp\/search\/mall\/%E3%82%A8%E3%83%A9%E3%83%BC%E3%81%A7%E5%AD%A6%E3%81%B6Scratch%20%E3%81%BE%E3%81%A1%E3%81%8C%E3%81%84%E3%82%92%E8%A6%8B%E3%81%A4%E3%81%91%E3%81%A6%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0%E5%88%9D%E5%BF%83%E8%80%85%E3%81%8B%E3%82%89%E6%8A%9C%E3%81%91%E5%87%BA%E3%81%9D%E3%81%86\/","a_id":1820957,"p_id":54,"pl_id":27059,"pc_id":54,"s_n":"rakuten","u_so":2},{"id":30,"u_tx":"Yahoo!ショッピングで見る","u_bc":"#66a7ff","u_url":"https:\/\/shopping.yahoo.co.jp\/search?first=1\u0026p=%E3%82%A8%E3%83%A9%E3%83%BC%E3%81%A7%E5%AD%A6%E3%81%B6Scratch%20%E3%81%BE%E3%81%A1%E3%81%8C%E3%81%84%E3%82%92%E8%A6%8B%E3%81%A4%E3%81%91%E3%81%A6%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0%E5%88%9D%E5%BF%83%E8%80%85%E3%81%8B%E3%82%89%E6%8A%9C%E3%81%91%E5%87%BA%E3%81%9D%E3%81%86","a_id":1832853,"p_id":1225,"pl_id":27061,"pc_id":1925,"s_n":"yahoo","u_so":3}],"eid":"p5t2f","s":"s"});
</script></p>
<div id="msmaflink-p5t2f">リンク</div>
]]></content:encoded>
					
					<wfw:commentRss>https://living-maou.com/scratch-err/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>ビジュアルプログラミングで楽しく学ぶ！おすすめ小学生向け教材9選</title>
		<link>https://living-maou.com/teaching-material-visual/</link>
					<comments>https://living-maou.com/teaching-material-visual/#respond</comments>
		
		<dc:creator><![CDATA[メソ]]></dc:creator>
		<pubDate>Tue, 06 Feb 2024 01:28:24 +0000</pubDate>
				<category><![CDATA[ビジュアルプログラミング]]></category>
		<category><![CDATA[CodeMonkey]]></category>
		<category><![CDATA[GLICODE]]></category>
		<category><![CDATA[Minecraft]]></category>
		<category><![CDATA[Scratch]]></category>
		<category><![CDATA[Springin]]></category>
		<category><![CDATA[Viscuit]]></category>
		<category><![CDATA[はじめてゲームプログラミング]]></category>
		<category><![CDATA[アルゴロジック]]></category>
		<category><![CDATA[アワーオブコード]]></category>
		<category><![CDATA[ゲーム]]></category>
		<category><![CDATA[プログラミング教材]]></category>
		<guid isPermaLink="false">https://living-maou.com/?p=6434</guid>

					<description><![CDATA[ビジュアルプログラミングは、ブロックやタイルの形をした命令を組み合わせてプログラミングを行う方法です。 文字や記号を覚える必要がなく、直感的にプログラミングを学べるのが特徴。 無料で利用できる教材も多いので、家庭のパソコ [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/02/eyecatch-teaching-material-visual.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6435" src="https://living-maou.com/wp-content/uploads/2024/02/eyecatch-teaching-material-visual.png" alt="" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/02/eyecatch-teaching-material-visual.png 800w, https://living-maou.com/wp-content/uploads/2024/02/eyecatch-teaching-material-visual-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/02/eyecatch-teaching-material-visual-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/02/eyecatch-teaching-material-visual-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/02/eyecatch-teaching-material-visual-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/02/eyecatch-teaching-material-visual-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/02/eyecatch-teaching-material-visual-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p><b>ビジュアルプログラミング</b>は、<span class="marker-under-red">ブロックやタイルの形をした命令を組み合わせてプログラミングを行う方法</span>です。</p>
<p>文字や記号を覚える必要がなく、直感的にプログラミングを学べるのが特徴。</p>
<p>無料で利用できる教材も多いので、家庭のパソコンやタブレットで気軽に始められますよ。</p>
<p>一方、種類が多いので、子どもの年齢や興味に合った教材を選びたいけれど、<b>どれを選べばいいか分からない</b>と悩みませんか？</p>
<p>この記事では、おすすめのビジュアルプログラミング教材を紹介します。</p>
<p>ビジュアルプログラミングの教材を<a href="#type1">プログラミングツール</a>、<a href="#type2">ドリル型教材</a>、<a href="#type3">ゲーム</a>、3つのタイプに分け、各タイプの特徴とメリット・デメリットを紹介します。</p>
<p>ぜひ、お子さんのプログラミング学習の参考にしてみてください。</p>
<div class="blogcard-type bct-related">

<a rel="noopener" target="_self" href="https://living-maou.com/teaching-material/" title="学び好きな子に育つ！考えて作る楽しさを味わえるプログラミング玩具7選" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2020/02/eyecatch-teaching-material02-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2020/02/eyecatch-teaching-material02-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-teaching-material02-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-teaching-material02-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-teaching-material02-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-teaching-material02-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-teaching-material02-320x180.jpg 320w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-teaching-material02.jpg 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">学び好きな子に育つ！考えて作る楽しさを味わえるプログラミング玩具7選</div><div class="blogcard-snippet internal-blogcard-snippet">子ども向けのプログラミング教材やおもちゃは種類や難易度がさまざま。どれを選べばいいのか迷ってしまいませんか？【リビングの魔王】では年齢や興味関心に合わせて選ぶポイントや、おすすめの教材・おもちゃを紹介。プログラミング学習の参考にしてみてください。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
<h2><span id="toc1">ビジュアルプログラミングの教材3つのタイプ</span></h2>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2024/02/teaching-material-visual.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6436" src="https://living-maou.com/wp-content/uploads/2024/02/teaching-material-visual.png" alt="" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2024/02/teaching-material-visual.png 800w, https://living-maou.com/wp-content/uploads/2024/02/teaching-material-visual-500x281.png 500w, https://living-maou.com/wp-content/uploads/2024/02/teaching-material-visual-300x169.png 300w, https://living-maou.com/wp-content/uploads/2024/02/teaching-material-visual-768x432.png 768w, https://living-maou.com/wp-content/uploads/2024/02/teaching-material-visual-120x68.png 120w, https://living-maou.com/wp-content/uploads/2024/02/teaching-material-visual-160x90.png 160w, https://living-maou.com/wp-content/uploads/2024/02/teaching-material-visual-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>ビジュアルプログラミングの教材は、大きく3つのタイプに分けられます。</p>
<div class="blank-box bb-blue">
<ul>
<li>自由に作品を作れる<a href="#type1">プログラミングツール</a></li>
<li>問題を解く<a href="#type2">ドリル型の教材</a></li>
<li>プログラミングを学べる<a href="#type3">ゲーム</a></li>
</ul>
</div>
<p>各タイプの特徴とメリット・デメリットを紹介します。</p>
<p>&nbsp;</p>
<h3 id="type1"><span id="toc2">プログラミングツール</span></h3>
<p><b>プログラミングツール</b>は、命令ブロックをなど組み合わせて、<span class="marker-under-red">自由にゲームやアニメーション、音楽などを作って楽しめる教材</span>です。</p>
<p>プログラミング初心者でも直感的に理解しやすいため、自由な発想でプログラミングを学ぶことができます。</p>
<p>また、子どもの創造性や表現力を育むことにも期待できます。ただし、作品を作りあげるためには、ある程度の集中力が必要です。</p>
<p><a href="#tool">↓おすすめのプログラミングツールをみる</a></p>
<p>&nbsp;</p>
<h3 id="type2"><span id="toc3">ドリル型の教材</span></h3>
<p><b>ドリル型の教材</b>は、<span class="marker-under-red">問題を解きながら、順を追ってプログラミングの基礎を学ぶ</span>ことができます。</p>
<p>問題解決力や論理的思考力を向上させ、手順やアルゴリズムの理解を強化できます。</p>
<p>また、短時間で効率的に学べる反面、創造性や表現力を育むのに向いていません。</p>
<p><a href="#drill">↓おすすめのドリル型教材をみる</a></p>
<p>&nbsp;</p>
<h3 id="type3"><span id="toc4">プログラミングを学べるゲーム</span></h3>
<p>プログラミングの基礎を学べる<b>ゲーム</b>も数多くあります。</p>
<p>ゲームにハマれば、プログラミングへの興味や関心が高まりますが、ゲームの難易度によっては、挫折してしまう場合も。</p>
<p>子どものレベルに合った難易度のゲームを選ぶとよいでしょう。</p>
<p><a href="#game">↓おすすめのプログラミングゲームをみる</a></p>
<p>&nbsp;</p>
<h2 id="tool"><span id="toc5">おすすめプログラミングツール</span></h2>
<p>おすすめのプログラミングツールを3つ紹介します。</p>
<div class="scrollable-table"><table>
<tbody>
<tr>
<th>プログラミング教材</th>
<th>対象年齢</th>
<th>特徴</th>
</tr>
<tr>
<td><a href="#viscuit">Viscuit</a></td>
<td align="center">4歳～</td>
<td>メガネというしくみで絵を動かす</td>
</tr>
<tr>
<td><a href="#springin">Springin&#8217;</a></td>
<td align="center">6歳～</td>
<td>属性を組み合わせ絵に動きをつける</td>
</tr>
<tr>
<td><a href="#scratch">Scratch</a></td>
<td align="center">8歳～</td>
<td>ブロックを組み合わせてプログラミング</td>
</tr>
</tbody>
</table></div>
<p>&nbsp;</p>
<h3 id="viscuit"><span id="toc6">Viscuit（ビスケット）</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2025/02/viscuit2025-howto01.png"><img loading="lazy" decoding="async" src="https://living-maou.com/wp-content/uploads/2025/02/viscuit2025-howto01.png" alt="あたらしいビスケット" width="800" height="450" class="aligncenter size-full wp-image-7259" srcset="https://living-maou.com/wp-content/uploads/2025/02/viscuit2025-howto01.png 800w, https://living-maou.com/wp-content/uploads/2025/02/viscuit2025-howto01-500x281.png 500w, https://living-maou.com/wp-content/uploads/2025/02/viscuit2025-howto01-300x169.png 300w, https://living-maou.com/wp-content/uploads/2025/02/viscuit2025-howto01-768x432.png 768w, https://living-maou.com/wp-content/uploads/2025/02/viscuit2025-howto01-120x68.png 120w, https://living-maou.com/wp-content/uploads/2025/02/viscuit2025-howto01-160x90.png 160w, https://living-maou.com/wp-content/uploads/2025/02/viscuit2025-howto01-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a><br />
<a rel="noopener" target="_blank" href="https://www.viscuit.com/">Viscuit（ビスケット）<span class="fa fa-external-link external-icon anchor-icon"></span></a>は、「<b>めがね</b>」というしくみを使って、自分で描いた絵を動かすプログラミング言語です。パソコンやタブレットから無料で利用できます。</p>
<p>プログラミングは、絵を描いて左右のメガネに入れるだけ。<span class="marker-under-red">覚えることが少ないので、字が読めない小さな子でも使いこなせます。</span></p>
<p>小さな子どもでも使えるレベルだと、大したことができないように思われるかもしれません。</p>
<p>しかし、組み合わせしだいでアニメーションから複雑なゲームまで、さまざまな作品を作ることができます。とても奥が深いプログラミング言語です。</p>
<div class="blogcard-type bct-detail">

<a rel="noopener" target="_self" href="https://living-maou.com/viscuit2025-matome/" title="【最新版】あたらしいビスケットの使い方まとめ！プログラミングで遊ぼう" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2025/02/eyecatch-viscuit2025-howto01-160x90.png" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2025/02/eyecatch-viscuit2025-howto01-160x90.png 160w, https://living-maou.com/wp-content/uploads/2025/02/eyecatch-viscuit2025-howto01-500x281.png 500w, https://living-maou.com/wp-content/uploads/2025/02/eyecatch-viscuit2025-howto01-300x169.png 300w, https://living-maou.com/wp-content/uploads/2025/02/eyecatch-viscuit2025-howto01-768x432.png 768w, https://living-maou.com/wp-content/uploads/2025/02/eyecatch-viscuit2025-howto01-120x68.png 120w, https://living-maou.com/wp-content/uploads/2025/02/eyecatch-viscuit2025-howto01-320x180.png 320w, https://living-maou.com/wp-content/uploads/2025/02/eyecatch-viscuit2025-howto01.png 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">【最新版】あたらしいビスケットの使い方まとめ！プログラミングで遊ぼう</div><div class="blogcard-snippet internal-blogcard-snippet">ビスケット（Viscuit）は かんたんにプログラミングができる楽しいアプリです。「めがね」のしくみを使って絵を動かしたりゲームを作ったりできます。この記事では基本の使い方から便利なテクニックまでをわかりやすくまとめました。最新アップデートにも対応！</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
<p>&nbsp;</p>
<h3 id="springin"><span id="toc7">Springin’（スプリンギン）</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2021/05/Springin_springin01.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-2539" src="https://living-maou.com/wp-content/uploads/2021/05/Springin_springin01.jpg" alt="Springin'" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2021/05/Springin_springin01.jpg 800w, https://living-maou.com/wp-content/uploads/2021/05/Springin_springin01-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2021/05/Springin_springin01-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2021/05/Springin_springin01-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2021/05/Springin_springin01-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2021/05/Springin_springin01-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2021/05/Springin_springin01-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/springin-start/">Springin’（スプリンギン）<span class="fa fa-external-link internal-icon anchor-icon"></span></a>は、<b>属性アイコン</b>を組み合わせてゲームや絵本を作るプログラミングアプリです。スマホ・タブレットから利用できます。</p>
<p>かんたんな操作で、さまざまな仕組みを作ることができます。</p>
<p><span class="marker-under-red">絵を描いたり、ピタゴラ装置を作ったりすることが好きな子におすすめ</span>です。</p>
<p>また、企業や団体とコラボレーションしたコンテストをよく開催しています。作った作品を披露することで、プログラミングへの熱意を高めることができます。</p>
<div class="blogcard-type bct-detail">

<a rel="noopener" target="_self" href="https://living-maou.com/springin-start/" title="【基本無料】プログラミングアプリ「Springin&#039;（スプリンギン）」の使い方" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2021/09/eyecatch_springin_start-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2021/09/eyecatch_springin_start-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2021/09/eyecatch_springin_start-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2021/09/eyecatch_springin_start.jpg 800w, https://living-maou.com/wp-content/uploads/2021/09/eyecatch_springin_start-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2021/09/eyecatch_springin_start-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2021/09/eyecatch_springin_start-1536x864.jpg 1536w, https://living-maou.com/wp-content/uploads/2021/09/eyecatch_springin_start-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2021/09/eyecatch_springin_start-320x180.jpg 320w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">【基本無料】プログラミングアプリ「Springin'（スプリンギン）」の使い方</div><div class="blogcard-snippet internal-blogcard-snippet">Springin&#039;（スプリンギン）は絵や写真に音や動きをつけられる属性を組み合わせるだけでゲームや絵本を作ることができるプログラミングアプリ。【リビングの魔王】では初めてのSpringin&#039;を使う人に向けて基本的な使い方を紹介します。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
<p>&nbsp;</p>
<h3 id="scratch"><span id="toc8">Scratch（スクラッチ）</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2020/05/viscuit_shapes_scratch01.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-527" src="https://living-maou.com/wp-content/uploads/2020/05/viscuit_shapes_scratch01.png" alt="スクラッチで正五角形を描く" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2020/05/viscuit_shapes_scratch01.png 800w, https://living-maou.com/wp-content/uploads/2020/05/viscuit_shapes_scratch01-500x281.png 500w, https://living-maou.com/wp-content/uploads/2020/05/viscuit_shapes_scratch01-300x169.png 300w, https://living-maou.com/wp-content/uploads/2020/05/viscuit_shapes_scratch01-768x432.png 768w, https://living-maou.com/wp-content/uploads/2020/05/viscuit_shapes_scratch01-120x68.png 120w, https://living-maou.com/wp-content/uploads/2020/05/viscuit_shapes_scratch01-160x90.png 160w, https://living-maou.com/wp-content/uploads/2020/05/viscuit_shapes_scratch01-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/scratch-start/">Scratch（スクラッチ）<span class="fa fa-external-link internal-icon anchor-icon"></span></a>は、アメリカのマサチューセッツ工科大学（MIT）メディアラボが、8～16歳の子ども向けに開発したプログラミング言語です。</p>
<p>命令ブロックを組み合わせてアニメーションやゲームを作ることができます。</p>
<p><span class="marker-under-red">小学生のプログラミングの教材に迷ったら、Scratchから始めれば間違いありません。</span></p>
<p>理由は3つあります。</p>
<div class="blank-box bb-blue">
<ul>
<li>多くの小学校の授業で利用されている</li>
<li>情報が多い（本、インターネット）</li>
<li>学んだことをほかの教材でも活かせる</li>
</ul>
</div>
<p>分からないことがあったらすぐ調べられることと、Scratchが分かれば他の教材もすぐに使いこなすことができることが強みです。</p>
<p>下の記事では<a rel="noopener" target="_self" href="https://living-maou.com/scratch-bookmatome/">おすすめのScratch本<span class="fa fa-external-link internal-icon anchor-icon"></span></a>を紹介しています。よかったら参考にしてみてください。</p>
<div class="blogcard-type bct-detail">

<a rel="noopener" target="_self" href="https://living-maou.com/scratch-bookmatome/" title="初心者向けおすすめ Scratch（スクラッチ）本3選 小学生のはじめてのプログラミング学習に" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2020/10/eyecatch-scratch-book2206-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2020/10/eyecatch-scratch-book2206-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2020/10/eyecatch-scratch-book2206-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2020/10/eyecatch-scratch-book2206-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2020/10/eyecatch-scratch-book2206-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2020/10/eyecatch-scratch-book2206-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2020/10/eyecatch-scratch-book2206-320x180.jpg 320w, https://living-maou.com/wp-content/uploads/2020/10/eyecatch-scratch-book2206.jpg 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">初心者向けおすすめ Scratch（スクラッチ）本3選 小学生のはじめてのプログラミング学習に</div><div class="blogcard-snippet internal-blogcard-snippet">子どもとScratchに挑戦したいけれど、どんな本を選んでいいか分からないと困っていませんか？この記事では小学生のはじめてのプログラミング学習にオススメのScratch本を紹介します。お子さんの興味や目的にあった本が見つかりますよ。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
<p>&nbsp;</p>
<h2 id="drill"><span id="toc9">おすすめのドリル型教材</span></h2>
<p>おすすめのドリル型教材を3つ紹介します。</p>
<div class="scrollable-table"><table>
<tbody>
<tr>
<th>プログラミング教材</th>
<th>対象年齢</th>
<th>特徴</th>
</tr>
<tr>
<td><a href="#cmjr">コードモンキーJr.</a></td>
<td align="center">4歳～</td>
<td>おサルさんをバナナや宝箱まで行けるようにお手伝い</td>
</tr>
<tr>
<td><a href="#hoc">Hour of Code</a></td>
<td align="center">6歳～</td>
<td>1時間でプログラミングを体験できるアクティビティ</td>
</tr>
<tr>
<td><a href="#algo">アルゴロジック</a></td>
<td align="center">6歳～</td>
<td>全部のハタを取るようにロボットへ指示を出す</td>
</tr>
</tbody>
</table></div>
<p>&nbsp;</p>
<h3 id="cmjr"><span id="toc10">コードモンキーJr.</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2021/04/codeMonkeyJr_01.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1862" src="https://living-maou.com/wp-content/uploads/2021/04/codeMonkeyJr_01.png" alt="コードモンキーJr." width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2021/04/codeMonkeyJr_01.png 800w, https://living-maou.com/wp-content/uploads/2021/04/codeMonkeyJr_01-500x281.png 500w, https://living-maou.com/wp-content/uploads/2021/04/codeMonkeyJr_01-300x169.png 300w, https://living-maou.com/wp-content/uploads/2021/04/codeMonkeyJr_01-768x432.png 768w, https://living-maou.com/wp-content/uploads/2021/04/codeMonkeyJr_01-120x68.png 120w, https://living-maou.com/wp-content/uploads/2021/04/codeMonkeyJr_01-160x90.png 160w, https://living-maou.com/wp-content/uploads/2021/04/codeMonkeyJr_01-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>コードモンキー（CodeMonkey）は、イスラエル生まれのプログラミング学習教材。</p>
<p>「<a rel="noopener" target="_self" href="https://living-maou.com/codemonkey-jr/">コードモンキーJr.<span class="fa fa-external-link internal-icon anchor-icon"></span></a>」は未就学児～小学校低学年向けのコースで、一部を無料体験できます。</p>
<p>矢じるしのアイコンブロックをならべるだけでプログラミングできるので、<span class="marker-under-red">読み書きができない子でも感覚的に理解できます</span>。</p>
<p>子どもが自習形式で学ぶことができるので、親にプログラミングの知識がなくても大丈夫です。</p>
<div class="blogcard-type bct-detail">

<a rel="noopener" target="_self" href="https://living-maou.com/codemonkey-jr/" title="【コードモンキー無料体験】4～6歳の子ども向けプログラミング教材「コードモンキーJr.」" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2021/04/eyecatch_codemonkeyjr-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2021/04/eyecatch_codemonkeyjr-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2021/04/eyecatch_codemonkeyjr-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2021/04/eyecatch_codemonkeyjr.jpg 800w, https://living-maou.com/wp-content/uploads/2021/04/eyecatch_codemonkeyjr-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2021/04/eyecatch_codemonkeyjr-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2021/04/eyecatch_codemonkeyjr-1536x864.jpg 1536w, https://living-maou.com/wp-content/uploads/2021/04/eyecatch_codemonkeyjr-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2021/04/eyecatch_codemonkeyjr-320x180.jpg 320w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">【コードモンキー無料体験】4～6歳の子ども向けプログラミング教材「コードモンキーJr.」</div><div class="blogcard-snippet internal-blogcard-snippet">コードモンキーはイスラエル生まれのプログラミング教材。世界中で様々な年齢の方に利用されています。「コードモンキーJr.」は小学校就学前から学べるコース。【リビングの魔王】ではコードモンキーJr.を無料体験する方法や基本的な使い方を紹介します。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
<p>&nbsp;</p>
<h3 id="hoc"><span id="toc11">Hour of Code（アワーオブコード）</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/10/hoc-frozen01.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6033" src="https://living-maou.com/wp-content/uploads/2023/10/hoc-frozen01.png" alt="アワーオブコード（アナ雪）lesson1" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/10/hoc-frozen01.png 800w, https://living-maou.com/wp-content/uploads/2023/10/hoc-frozen01-500x281.png 500w, https://living-maou.com/wp-content/uploads/2023/10/hoc-frozen01-300x169.png 300w, https://living-maou.com/wp-content/uploads/2023/10/hoc-frozen01-768x432.png 768w, https://living-maou.com/wp-content/uploads/2023/10/hoc-frozen01-120x68.png 120w, https://living-maou.com/wp-content/uploads/2023/10/hoc-frozen01-160x90.png 160w, https://living-maou.com/wp-content/uploads/2023/10/hoc-frozen01-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/hourofcode-howto/">Hour of Code（アワーオブコード）<span class="fa fa-external-link internal-icon anchor-icon"></span></a>は、段階的にプログラミングの基本を学べる学習サイトです。</p>
<p>ディズニーやマインクラフトなどの人気キャラクターと楽しみながら学べます。</p>
<p>また、<span class="marker-under-red">ひとつのコースにつき約1時間で終わるように設計</span>されています。</p>
<div class="blogcard-type bct-detail">

<a rel="noopener" target="_self" href="https://living-maou.com/hourofcode-howto/" title="マイクラやアナ雪のキャラとプログラミング「アワーオブコード」の使い方" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2021/01/eyecatch_HourOfCode-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2021/01/eyecatch_HourOfCode-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2021/01/eyecatch_HourOfCode-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2021/01/eyecatch_HourOfCode-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2021/01/eyecatch_HourOfCode-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2021/01/eyecatch_HourOfCode-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2021/01/eyecatch_HourOfCode-320x180.jpg 320w, https://living-maou.com/wp-content/uploads/2021/01/eyecatch_HourOfCode.jpg 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">マイクラやアナ雪のキャラとプログラミング「アワーオブコード」の使い方</div><div class="blogcard-snippet internal-blogcard-snippet">「アワーオブコード(Hour of Code)」は、1時間のプログラミング学習を目的にしたサイトです。アナ雪やマイクラなどの人気キャラクターとプログラミングを学ぶことができます。【リビングの魔王】では、アワーオブコードの使い方を分かりやすく紹介します。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
<p>&nbsp;</p>
<h3 id="algo"><span id="toc12">アルゴロジック</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2021/03/algoLogic01.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1794" src="https://living-maou.com/wp-content/uploads/2021/03/algoLogic01.png" alt="アルゴロジック" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2021/03/algoLogic01.png 800w, https://living-maou.com/wp-content/uploads/2021/03/algoLogic01-500x281.png 500w, https://living-maou.com/wp-content/uploads/2021/03/algoLogic01-300x169.png 300w, https://living-maou.com/wp-content/uploads/2021/03/algoLogic01-768x432.png 768w, https://living-maou.com/wp-content/uploads/2021/03/algoLogic01-120x68.png 120w, https://living-maou.com/wp-content/uploads/2021/03/algoLogic01-160x90.png 160w, https://living-maou.com/wp-content/uploads/2021/03/algoLogic01-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/algologic/">アルゴロジック<span class="fa fa-external-link internal-icon anchor-icon"></span></a>は、課題解決型のゲームを通して、プログラミングの基本的な考え方を学ぶ教材です。</p>
<p>コマンドブロックを組み合わせてロボットに指示を出し、全部のハタを取るまたは線をなぞることができたらクリアです。</p>
<p><span class="marker-under-red">パズルゲームで遊ぶ感覚で、プログラミングを学べます</span>。</p>
<div class="blogcard-type bct-detail">

<a rel="noopener" target="_self" href="https://living-maou.com/algologic/" title="【無料】ゲーム感覚でプログラミングを体験できる「アルゴロジック」" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2021/03/eyecatch_algoLogic1-160x90.png" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2021/03/eyecatch_algoLogic1-160x90.png 160w, https://living-maou.com/wp-content/uploads/2021/03/eyecatch_algoLogic1-500x281.png 500w, https://living-maou.com/wp-content/uploads/2021/03/eyecatch_algoLogic1-300x169.png 300w, https://living-maou.com/wp-content/uploads/2021/03/eyecatch_algoLogic1-768x432.png 768w, https://living-maou.com/wp-content/uploads/2021/03/eyecatch_algoLogic1-120x68.png 120w, https://living-maou.com/wp-content/uploads/2021/03/eyecatch_algoLogic1-320x180.png 320w, https://living-maou.com/wp-content/uploads/2021/03/eyecatch_algoLogic1.png 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">【無料】ゲーム感覚でプログラミングを体験できる「アルゴロジック」</div><div class="blogcard-snippet internal-blogcard-snippet">「アルゴロジック」は子どもから大人まで楽しめるプログラミング体験ゲーム。プログラミングの基本的な考え方である順次処理、くり返し処理、分岐処理を学ぶことができます。【リビングの魔王】ではアルゴロジックの遊び方やルールなどを紹介します。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
<p>&nbsp;</p>
<h2 id="game"><span id="toc13">おすすめのプログラミングゲーム</span></h2>
<p>おすすめのプログラミングゲームを3つ紹介します。</p>
<div class="scrollable-table"><table>
<tbody>
<tr>
<th>ゲーム</th>
<th>PF</th>
<th>対象年齢</th>
<th>特徴</th>
</tr>
<tr>
<td><a href="#glicode">GLICODE</a></td>
<td align="center">iOS/Android/<br />
ChromeOS</td>
<td align="center">3歳～</td>
<td>ポッキーをならべてプログラミング</td>
</tr>
<tr>
<td><a href="#navituku">ナビつき！つくってわかるはじめてゲームプログラミング</a></td>
<td align="center">Switch</td>
<td align="center">6歳～</td>
<td>任天堂から生まれたゲームづくりを体験できるソフト</td>
</tr>
<tr>
<td><a href="#minecraft">Minecraft</a></td>
<td align="center">PC、Switch<br />
など</td>
<td align="center">全年齢</td>
<td>建築したり冒険したりできるサンドボックスゲーム</td>
</tr>
</tbody>
</table></div>
<p>&nbsp;</p>
<h3 id="glicode"><span id="toc14">GLICODE（グリコ―ド）</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2021/04/glicode04.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1890" src="https://living-maou.com/wp-content/uploads/2021/04/glicode04.jpg" alt="グリコ―ド　プレイをおす" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2021/04/glicode04.jpg 800w, https://living-maou.com/wp-content/uploads/2021/04/glicode04-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2021/04/glicode04-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2021/04/glicode04-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2021/04/glicode04-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2021/04/glicode04-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2021/04/glicode04-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/glicode/">GLICODE(グリコ―ド)<span class="fa fa-external-link internal-icon anchor-icon"></span></a>とは、お菓子メーカーのグリコが開発した子ども向けのプログラミング学習アプリ。無料で利用できます。</p>
<p>オリジナルキャラクターのハグハグを泣いている子どものところまでプログラミングでつれていき、ハグで笑顔にするゲームです。</p>
<p><span class="marker-under-red">プログラミングの方法は、なんとポッキーをならべてカメラで撮るだけ！</span></p>
<p>おやつタイムをプログラミングの時間にしてみませんか？</p>
<div class="blogcard-type bct-detail">

<a rel="noopener" target="_self" href="https://living-maou.com/glicode/" title="【無料】ポッキーでプログラミングを学べるアプリ「グリコ―ド(GLICODE)」" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2021/04/eyecatch_glicode02-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2021/04/eyecatch_glicode02-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2021/04/eyecatch_glicode02-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2021/04/eyecatch_glicode02-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2021/04/eyecatch_glicode02-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2021/04/eyecatch_glicode02-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2021/04/eyecatch_glicode02-320x180.jpg 320w, https://living-maou.com/wp-content/uploads/2021/04/eyecatch_glicode02.jpg 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">【無料】ポッキーでプログラミングを学べるアプリ「グリコ―ド(GLICODE)」</div><div class="blogcard-snippet internal-blogcard-snippet">グリコ―ド（GLICODE）はお菓子メーカーのグリコが開発した子ども向けのプログラミング学習アプリ。ポッキーを使って誰でも楽しくプログラミングを学べます。【リビングの魔王】ではグリコ―ドの遊び方や考え方のポイントを紹介します。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
<p>&nbsp;</p>
<h3 id="navituku"><span id="toc15">ナビつき！つくってわかるはじめてゲームプログラミング</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2021/06/switch_hajipro03.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-2144" src="https://living-maou.com/wp-content/uploads/2021/06/switch_hajipro03.jpg" alt="ナビつきレッスン　プログラミング画面" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2021/06/switch_hajipro03.jpg 800w, https://living-maou.com/wp-content/uploads/2021/06/switch_hajipro03-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2021/06/switch_hajipro03-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2021/06/switch_hajipro03-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2021/06/switch_hajipro03-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2021/06/switch_hajipro03-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2021/06/switch_hajipro03-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/hajipro-review/">ナビつき！つくってわかるはじめてゲームプログラミング<span class="fa fa-external-link internal-icon anchor-icon"></span></a>は、<span class="marker-under-red">任天堂の開発室から生まれたプログラミングソフト</span>です。</p>
<p>Nintendo Switchの中に暮らす不思議な生き物ノードンを組み合わせて、ゲームづくりを体験できます。</p>
<p>自分で作った料理が不思議と美味しく感じるように、ゲームも自分で作ったものだとより面白く感じます。</p>
<p>ぜひ、親子でゲームを作って一緒に遊んでみてください。</p>
<div class="blogcard-type bct-detail">

<a rel="noopener" target="_self" href="https://living-maou.com/hajipro-review/" title="【Switch】小学生でもできる？カードは必要？「ナビつき！つくってわかるはじめてゲームプログラミング」レビュー" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2021/06/eyecatch_switch_hajipro-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2021/06/eyecatch_switch_hajipro-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2021/06/eyecatch_switch_hajipro-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2021/06/eyecatch_switch_hajipro-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2021/06/eyecatch_switch_hajipro-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2021/06/eyecatch_switch_hajipro-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2021/06/eyecatch_switch_hajipro-320x180.jpg 320w, https://living-maou.com/wp-content/uploads/2021/06/eyecatch_switch_hajipro.jpg 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">【Switch】小学生でもできる？カードは必要？「ナビつき！つくってわかるはじめてゲームプログラミング」レビュー</div><div class="blogcard-snippet internal-blogcard-snippet">この記事では、Nintendo Switch用ソフト「ナビつき！つくってわかるはじめてゲームプログラミング」について紹介します。「小学生にもできるの？」「カードつきの方を買った方がいい？」と気になっている方の参考になればと嬉しいです。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
<p>&nbsp;</p>
<h3 id="minecraft"><span id="toc16">Minecraft（マインクラフト）</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2021/06/Minecraft_MakeCode05.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-2118" src="https://living-maou.com/wp-content/uploads/2021/06/Minecraft_MakeCode05.jpg" alt="マイクラ　Agent（エージェント）" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2021/06/Minecraft_MakeCode05.jpg 800w, https://living-maou.com/wp-content/uploads/2021/06/Minecraft_MakeCode05-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2021/06/Minecraft_MakeCode05-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2021/06/Minecraft_MakeCode05-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2021/06/Minecraft_MakeCode05-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2021/06/Minecraft_MakeCode05-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2021/06/Minecraft_MakeCode05-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/minecraft-tutorial_matome/">Minecraft（マインクラフト）<span class="fa fa-external-link internal-icon anchor-icon"></span></a>は、立方体のブロックで建物を作ったり、冒険へ出かけたりするサンドボックスゲームです。</p>
<p>最近では、子どもがプログラミングを学ぶための教材としても注目されています。</p>
<p>コマンドブロックで色々な仕掛けを作ったり、プログラミングをしたりすることができるので、<span class="marker-under-red">ゲームで遊びながら創造性や問題解決力、論理的思考力を養うことができます</span>。</p>
<p>マイクラが好きな子であれば、最初からモチベーションが高い状態で学習をはじめられるのが強み。</p>
<p>マイクラは、ゲーム機やPCなどさまざまなプラットフォームでプレイできますが、プログラミングの学習をするのであれば、PC版がおすすめです（<a rel="noopener" target="_self" href="https://living-maou.com/minecraft-howtobuy/">PC版の購入方法はこちら<span class="fa fa-external-link internal-icon anchor-icon"></span></a>）</p>
<div class="blogcard-type bct-detail">

<a rel="noopener" target="_self" href="https://living-maou.com/minecraft-tutorial_matome/" title="【統合版／Java版】マインクラフトでプログラミングする方法まとめ" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2021/08/eyecatch_MineCraft_Matome2206-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2021/08/eyecatch_MineCraft_Matome2206-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2021/08/eyecatch_MineCraft_Matome2206-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2021/08/eyecatch_MineCraft_Matome2206-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2021/08/eyecatch_MineCraft_Matome2206-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2021/08/eyecatch_MineCraft_Matome2206-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2021/08/eyecatch_MineCraft_Matome2206-320x180.jpg 320w, https://living-maou.com/wp-content/uploads/2021/08/eyecatch_MineCraft_Matome2206.jpg 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">【統合版／Java版】マインクラフトでプログラミングする方法まとめ</div><div class="blogcard-snippet internal-blogcard-snippet">大人気ゲーム「マインクラフト」は、子供がプログラミングを学ぶための教材としても注目されています。挑戦してみたいけれどやり方が分からない…という人のために、この記事ではマインクラフトでプログラミングを始める方法を分かりやすくまとめました。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
<p>&nbsp;</p>
<h2><span id="toc17">まとめ</span></h2>
<p>小学生におすすめのビジュアルプログラミング教材を紹介しました。</p>
<p>タイピングができない子でも、かんたんにプログラミングを行うことができます。スペルミスによるエラーがないので、プログラミングの楽しさや可能性を体験しやすいのがメリット。</p>
<p>ただし、複雑な処理を行うにはコードが長くなってしまい、検索や修正がやりにくいことがあります。</p>
<p>ビジュアルプログラミングに慣れてきて、やりにくさを感じてきたら、テキストプログラミングにもチャレンジしてみるとよいでしょう。</p>
<p>ぜひお子さんと一緒に遊ぶことからはじめて、プログラミングの楽しさや面白さを実感してみてくださいね。</p>
<p>&nbsp;</p>
<p>……と言っても、</p>
<div class="blank-box bb-blue">
<ul>
<li>子どもと一緒にプログラミングをする時間がない</li>
<li>パソコンが苦手で子どもをフォローできない</li>
</ul>
</div>
<p>こんなことで悩みませんか？</p>
<p>しかも、2025年から<span style="color: #ff6600;"><b>大学入学共通テストの教科に「情報」</b></span>が新設されます。</p>
<p>早くから子どもにプログラミングを経験させた方がいいのではないか…と不安になりますよね。</p>
<p>そんな方は、プログラミング教室を検討してみてはいかがでしょうか。</p>
<p>こちらの記事では<a rel="noopener" target="_self" href="https://living-maou.com/programming-school/">プログラミング教室の選び方とおすすめの教室<span class="fa fa-external-link internal-icon anchor-icon"></span></a>を紹介しています。</p>
<div class="blogcard-type bct-detail">

<a rel="noopener" target="_self" href="https://living-maou.com/programming-school/" title="動画ばかりで集中できない子に。「見る」から「創る」へ変える小学生向けプログラミング教室4選" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2020/02/eyecatch-prgschool05-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2020/02/eyecatch-prgschool05-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-prgschool05-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-prgschool05-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-prgschool05-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-prgschool05-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-prgschool05-320x180.jpg 320w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-prgschool05.jpg 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">動画ばかりで集中できない子に。「見る」から「創る」へ変える小学生向けプログラミング教室4選</div><div class="blogcard-snippet internal-blogcard-snippet">「子どもにプログラミングを学ばせたいけれど教えてあげられない…」と悩みませんか？教室に通わせてもすぐやめたいと言われたら困りますし、時間もお金もかかるからこそ慎重に選びたいですよね。この記事では「教室を選ぶポイント」と「おすすめの教室」を紹介します。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
<p>ほとんどの教室で<b>無料体験授業</b>を開催しています。</p>
<p>まずは体験授業で雰囲気を確認して、お子さんにあった教室を探してみてくださいね。</p>

]]></content:encoded>
					
					<wfw:commentRss>https://living-maou.com/teaching-material-visual/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【子ども向け】プログラミングの基本構造とは？順次、分岐、反復について学ぼう！</title>
		<link>https://living-maou.com/control-structure/</link>
					<comments>https://living-maou.com/control-structure/#respond</comments>
		
		<dc:creator><![CDATA[メソ]]></dc:creator>
		<pubDate>Fri, 19 Jan 2024 23:16:01 +0000</pubDate>
				<category><![CDATA[用語解説]]></category>
		<category><![CDATA[Scratch]]></category>
		<category><![CDATA[用語]]></category>
		<guid isPermaLink="false">https://living-maou.com/?p=6318</guid>

					<description><![CDATA[プログラミングの基本きほん構造こうぞうとは、プログラミングの流ながれを決きめる3つの考かんがえ方かたです。 順次じゅんじ：順番じゅんばんに命令めいれいを実行じっこうすること 分岐ぶんき：条件じょうけんによって処理しょりを [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/12/eyecatch-basic-structure.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6319" src="https://living-maou.com/wp-content/uploads/2023/12/eyecatch-basic-structure.jpg" alt="" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/12/eyecatch-basic-structure.jpg 800w, https://living-maou.com/wp-content/uploads/2023/12/eyecatch-basic-structure-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2023/12/eyecatch-basic-structure-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2023/12/eyecatch-basic-structure-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2023/12/eyecatch-basic-structure-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2023/12/eyecatch-basic-structure-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2023/12/eyecatch-basic-structure-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p><span style="color: #ff6600;"><b>プログラミングの<ruby>基本<rt>きほん</rt></ruby><ruby>構造<rt>こうぞう</rt></ruby></b></span>とは、プログラミングの<ruby>流<rt>なが</rt></ruby>れを<ruby>決<rt>き</rt></ruby>める3つの<ruby>考<rt>かんが</rt></ruby>え<ruby>方<rt>かた</rt></ruby>です。</p>
<div class="blank-box bb-blue">
<ul>
<li><a href="#sequential"><ruby>順次<rt>じゅんじ</rt></ruby>：<ruby>順番<rt>じゅんばん</rt></ruby>に<ruby>命令<rt>めいれい</rt></ruby>を<ruby>実行<rt>じっこう</rt></ruby>すること</a></li>
<li><a href="#conditional"><ruby>分岐<rt>ぶんき</rt></ruby>：<ruby>条件<rt>じょうけん</rt></ruby>によって<ruby>処理<rt>しょり</rt></ruby>を<ruby>変<rt>か</rt></ruby>えること</a></li>
<li><a href="#iterative"><ruby>反復<rt>はんぷく</rt></ruby>：<ruby>同<rt>おな</rt></ruby>じ<ruby>処理<rt>しょり</rt></ruby>をくり<ruby>返<rt>かえ</rt></ruby>すこと</a></li>
</ul>
</div>
<p>これらの<ruby>基本<rt>きほん</rt></ruby><ruby>構造<rt>こうぞう</rt></ruby>を<ruby>組<rt>く</rt></ruby>み<ruby>合<rt>あ</rt></ruby>わせることで、さまざまなプログラムを<ruby>作<rt>つく</rt></ruby>ることができます。</p>
<p>この<ruby>記事<rt>きじ</rt></ruby>では、<ruby>順次<rt>じゅんじ</rt></ruby>・<ruby>分岐<rt>ぶんき</rt></ruby>・<ruby>反復<rt>はんぷく</rt></ruby>の3つの<ruby>構造<rt>こうぞう</rt></ruby>について、<ruby>子<rt>こ</rt></ruby>ども<ruby>向<rt>む</rt></ruby>けに<ruby>身近<rt>みぢか</rt></ruby>な<ruby>例<rt>れい</rt></ruby>を<ruby>交<rt>まじ</rt></ruby>えて<ruby>解説<rt>かいせつ</rt></ruby>します。</p>
<p>&nbsp;</p>
<h2><span id="toc1">プログラミングとは</span></h2>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-01.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6320" src="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-01.png" alt="プログラミングとは" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-01.png 800w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-01-500x281.png 500w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-01-300x169.png 300w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-01-768x432.png 768w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-01-120x68.png 120w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-01-160x90.png 160w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-01-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p><span style="color: #ff6600;"><b>プログラミング</b></span>とは、<span class="marker-under-red">コンピュータに「<ruby>何<rt>なに</rt></ruby>をすればいいのか」を<ruby>教<rt>おし</rt></ruby>えるための<ruby>手順<rt>てじゅん</rt></ruby>を<ruby>作<rt>つく</rt></ruby>る</span>ことです。</p>
<p><span>スマホ</span><span>や</span><span>パソコン</span><span>、</span><ruby>多<rt>おお</rt></ruby><span>く</span><span>の</span><ruby>家電<rt>かでん</rt></ruby><ruby>製品<rt>せいひん</rt></ruby><span>など</span><span>は</span><span>、</span><ruby>人間<rt>にんげん</rt></ruby><span>が</span><ruby>書<rt>か</rt></ruby><span>い</span><span>た</span><span>プログラム</span><ruby>通<rt>どお</rt></ruby><span>り</span><span>に</span><ruby>動<rt>うご</rt></ruby><span>い</span><span>て</span><span>い</span><span>ます</span><span>。</span></p>
<p>たとえば、パソコンでゲームをすると、ゲーム<ruby>画面<rt>がめん</rt></ruby>が<ruby>動<rt>うご</rt></ruby>いたり、<ruby>音<rt>おと</rt></ruby>が<ruby>鳴<rt>な</rt></ruby>ったりしますね。</p>
<p>これは、ゲームのプログラムがパソコンに<ruby>命令<rt>めいれい</rt></ruby>を<ruby>送<rt>おく</rt></ruby>っているからです。</p>
<p>&nbsp;</p>
<h2><span id="toc2">プログラミングの基本構造とは</span></h2>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-02.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6321" src="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-02.png" alt="プログラミングの基本構造" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-02.png 800w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-02-500x281.png 500w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-02-300x169.png 300w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-02-768x432.png 768w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-02-120x68.png 120w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-02-160x90.png 160w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-02-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>プログラミングにはプログラムの<ruby>流<rt>なが</rt></ruby>れを<ruby>決<rt>き</rt></ruby>める3つの<ruby>考<rt>かんが</rt></ruby>え<ruby>方<rt>かた</rt></ruby>（<ruby>基本<rt>きほん</rt></ruby><ruby>構造<rt>こうぞう</rt></ruby>）があります。</p>
<div class="blank-box bb-blue">
<ul>
<li><a href="#sequential"><ruby>順次<rt>じゅんじ</rt></ruby>：<ruby>順番<rt>じゅんばん</rt></ruby>に<ruby>命令<rt>めいれい</rt></ruby>を<ruby>実行<rt>じっこう</rt></ruby>すること</a></li>
<li><a href="#conditional"><ruby>分岐<rt>ぶんき</rt></ruby>：<ruby>条件<rt>じょうけん</rt></ruby>によって<ruby>処理<rt>しょり</rt></ruby>を<ruby>変<rt>か</rt></ruby>えること</a></li>
<li><a href="#iterative"><ruby>反復<rt>はんぷく</rt></ruby>：<ruby>同<rt>おな</rt></ruby>じ<ruby>処理<rt>しょり</rt></ruby>をくり<ruby>返<rt>かえ</rt></ruby>すこと</a></li>
</ul>
</div>
<p>どんなに<ruby>複雑<rt>ふくざつ</rt></ruby>なプログラムも、<span class="marker-under-red"><ruby>基本的<rt>きほんてき</rt></ruby>に<ruby>順次<rt>じゅんじ</rt></ruby>・<ruby>分岐<rt>ぶんき</rt></ruby>・<ruby>反復<rt>はんぷく</rt></ruby>の<ruby>組<rt>く</rt></ruby>み<ruby>合<rt>あ</rt></ruby>わせで<ruby>作<rt>つく</rt></ruby>られています</span>。</p>
<p>これらをうまく<ruby>組<rt>く</rt></ruby>み<ruby>合<rt>あ</rt></ruby>わせて、コンピュータにさまざまな<ruby>動<rt>うご</rt></ruby>きや<ruby>作業<rt>さぎょう</rt></ruby>をさせているのです。</p>
<p>これらの3つの<ruby>考<rt>かんが</rt></ruby>え<ruby>方<rt>かた</rt></ruby>を<ruby>理解<rt>りかい</rt></ruby>することは、プログラミングの<ruby>基本<rt>きほん</rt></ruby>を<ruby>学<rt>まな</rt></ruby>ぶうえでとても<ruby>大切<rt>たいせつ</rt></ruby>です。</p>
<p>&nbsp;</p>
<h2 id="sequential"><span id="toc3">順次</span></h2>
<h3><span id="toc4">順次とは順番に命令を実行すること</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-03.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6322" src="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-03.png" alt="順次" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-03.png 800w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-03-500x281.png 500w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-03-300x169.png 300w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-03-768x432.png 768w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-03-120x68.png 120w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-03-160x90.png 160w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-03-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p><span style="color: #ff6600;"><b><ruby>順次<rt>じゅんじ</rt></ruby></b></span>とは、コンピュータが<ruby>受<rt>う</rt></ruby>けた<ruby>指示<rt>しじ</rt></ruby>や<ruby>命令<rt>めいれい</rt></ruby>を、<span class="marker-under-red">書かれた<ruby>順番<rt>じゅんばん</rt></ruby>どおりに<ruby>一<rt>ひと</rt></ruby>つずつ<ruby>実行<rt>じっこう</rt></ruby>する</span>ことです。</p>
<p>たとえば、カップラーメンを<ruby>作<rt>つく</rt></ruby>る<ruby>手順<rt>てじゅん</rt></ruby>をプログラムするなら、</p>
<div class="blank-box bb-blue">
<ol>
<li>お<ruby>湯<rt>ゆ</rt></ruby>をわかす</li>
<li>カップラーメンにお<ruby>湯<rt>ゆ</rt></ruby>を<ruby>注<rt>そそ</rt></ruby>ぐ</li>
<li>3<ruby>分<rt>ぷん</rt></ruby><ruby>待<rt>ま</rt></ruby>つ</li>
</ol>
</div>
<p>というように、<ruby>順番<rt>じゅんばん</rt></ruby>に<ruby>命令<rt>めいれい</rt></ruby>を<ruby>実行<rt>じっこう</rt></ruby>します。</p>
<p>&nbsp;</p>
<h3><span id="toc5">順次のプログラムを作ってみよう！</span></h3>
<p><ruby>順次<rt>じゅんじ</rt></ruby>のプログラムを<ruby>作<rt>つく</rt></ruby>ってみましょう。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-06.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6323" src="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-06.png" alt="順次のプログラム" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-06.png 800w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-06-500x281.png 500w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-06-300x169.png 300w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-06-768x432.png 768w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-06-120x68.png 120w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-06-160x90.png 160w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-06-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<div class="blank-box bb-blue">
<ol>
<li>ハタが<ruby>押<rt>お</rt></ruby>されたとき</li>
<li>50<ruby>歩<rt>ぽ</rt></ruby><ruby>動<rt>うご</rt></ruby>かす</li>
<li>1<ruby>秒<rt>びょう</rt></ruby><ruby>待<rt>ま</rt></ruby>つ</li>
<li>こんにちは! と2<ruby>秒<rt>びょう</rt></ruby><ruby>言<rt>い</rt></ruby>う</li>
<li>1<ruby>秒<rt>びょう</rt></ruby><ruby>待<rt>ま</rt></ruby>つ</li>
<li>ニャーの<ruby>音<rt>おと</rt></ruby>を<ruby>鳴<rt>な</rt></ruby>らす</li>
</ol>
</div>
<p>ハタをおして<ruby>実行<rt>じっこう</rt></ruby>したとき、ネコが<ruby>右<rt>みぎ</rt></ruby>に<ruby>動<rt>うご</rt></ruby>いた<ruby>後<rt>あと</rt></ruby>、こんにちは!と<ruby>言<rt>い</rt></ruby>って、ニャーと<ruby>音<rt>おと</rt></ruby>が<ruby>鳴<rt>な</rt></ruby>るはずです。</p>
<p>このように、プログラムは<ruby>上<rt>うえ</rt></ruby>から<ruby>順番<rt>じゅんばん</rt></ruby>に<ruby>命令<rt>めいれい</rt></ruby>を<ruby>実行<rt>じっこう</rt></ruby>していることが<ruby>分<rt>わ</rt></ruby>かります。</p>
<p>&nbsp;</p>
<h2 id="conditional"><span id="toc6">分岐</span></h2>
<h3><span id="toc7">分岐とは条件によって処理を変えること</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-04.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6324" src="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-04.png" alt="分岐" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-04.png 800w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-04-500x281.png 500w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-04-300x169.png 300w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-04-768x432.png 768w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-04-120x68.png 120w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-04-160x90.png 160w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-04-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p><span style="color: #ff6600;"><b><ruby>分岐<rt>ぶんき</rt></ruby></b></span>とは、<span class="marker-under-red"><ruby>条件<rt>じょうけん</rt></ruby>によって、<ruby>実行<rt>じっこう</rt></ruby>する<ruby>処理<rt>しょり</rt></ruby>を<ruby>変<rt>か</rt></ruby>えること</span>です。</p>
<p>たとえば、<ruby>天気<rt>てんき</rt></ruby>によって、ぼうしをかぶるか、カサをさすかを<ruby>決<rt>き</rt></ruby>めるプログラムなら、</p>
<div class="blank-box bb-blue">
<ol>
<li><ruby>天気<rt>てんき</rt></ruby>をみる</li>
<li><ruby>雨<rt>あめ</rt></ruby>なら、カサをさす</li>
<li><ruby>雨<rt>あめ</rt></ruby>でなければ、ぼうしをかぶる</li>
</ol>
</div>
<p>というように、<ruby>条件<rt>じょうけん</rt></ruby>に<ruby>応<rt>おう</rt></ruby>じて、<ruby>実行<rt>じっこう</rt></ruby>する<ruby>処理<rt>しょり</rt></ruby>を<ruby>変<rt>か</rt></ruby>えます。</p>
<p>&nbsp;</p>
<h3><span id="toc8">分岐のプログラムを作ってみよう！</span></h3>
<p><ruby>分岐<rt>ぶんき</rt></ruby>のプログラムを<ruby>作<rt>つく</rt></ruby>ってみましょう。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-07.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6325" src="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-07.png" alt="分岐のプログラム1" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-07.png 800w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-07-500x281.png 500w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-07-300x169.png 300w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-07-768x432.png 768w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-07-120x68.png 120w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-07-160x90.png 160w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-07-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<div class="blank-box bb-blue">
<ol>
<li>ハタが<ruby>押<rt>お</rt></ruby>されたとき</li>
<li><ruby>現在<rt>げんざい</rt></ruby>の<ruby>秒<rt>びょう</rt></ruby>と<ruby>言<rt>い</rt></ruby>う</li>
<li>もし<ruby>現在<rt>げんざい</rt></ruby>の<ruby>秒<rt>びょう</rt></ruby> &gt; 30なら<br />
<em>　</em><ruby>色<rt>いろ</rt></ruby>の<ruby>効果<rt>こうか</rt></ruby>を25ずつ<ruby>変<rt>か</rt></ruby>える</li>
</ol>
</div>
<p><span style="color: #4cbfe6;"><b>「<ruby>現在<rt>げんざい</rt></ruby>の<ruby>秒<rt>びょう</rt></ruby>」</b></span>ブロックは<ruby>現在<rt>げんざい</rt></ruby>の<ruby>秒<rt>びょう</rt></ruby>を<ruby>調<rt>しら</rt></ruby>べるブロックです。<ruby>調<rt>しら</rt></ruby>べるカテゴリにある<span style="color: #4cbfe6;"><b>「<ruby>現在<rt>げんざい</rt></ruby>の<ruby>年<rt>とし</rt></ruby>」</b></span>ブロックを<ruby>出<rt>だ</rt></ruby>し、<ruby>年<rt>とし</rt></ruby>の<ruby>部分<rt>ぶぶん</rt></ruby>をクリックして、<ruby>秒<rt>びょう</rt></ruby>に<ruby>変<rt>か</rt></ruby>えましょう。</p>
<p><span style="color: #ffab19;"><b>「もし〇〇なら」</b></span>ブロックは、〇〇で<ruby>指定<rt>してい</rt></ruby>した<ruby>条件<rt>じょうけん</rt></ruby>を<ruby>満<rt>み</rt></ruby>たしている<ruby>場合<rt>ばあい</rt></ruby>に<ruby>中<rt>なか</rt></ruby>の<ruby>処理<rt>しょり</rt></ruby>を<ruby>実行<rt>じっこう</rt></ruby>します。</p>
<p>もし<ruby>現在<rt>げんざい</rt></ruby>の<ruby>秒<rt>びょう</rt></ruby>が30より<ruby>大<rt>おお</rt></ruby>きかった<ruby>場合<rt>ばあい</rt></ruby>、ネコの<ruby>色<rt>いろ</rt></ruby>が<ruby>変<rt>か</rt></ruby>わります。<br />
そうでない<ruby>場合<rt>ばあい</rt></ruby>（<ruby>現在<rt>げんざい</rt></ruby>の<ruby>秒<rt>びょう</rt></ruby>が30<ruby>以下<rt>いか</rt></ruby>）は<ruby>何<rt>なに</rt></ruby>もしません。</p>
<p>&nbsp;</p>
<p>もうひとつ<ruby>作<rt>つく</rt></ruby>ってみましょう。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-08.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6326" src="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-08.png" alt="分岐のプログラム2" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-08.png 800w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-08-500x281.png 500w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-08-300x169.png 300w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-08-768x432.png 768w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-08-120x68.png 120w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-08-160x90.png 160w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-08-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<div class="blank-box bb-blue">
<ol>
<li>ハタが<ruby>押<rt>お</rt></ruby>されたとき</li>
<li><ruby>現在<rt>げんざい</rt></ruby>の<ruby>秒<rt>びょう</rt></ruby>と<ruby>言<rt>い</rt></ruby>う</li>
<li>もし<ruby>現在<rt>げんざい</rt></ruby>の<ruby>秒<rt>びょう</rt></ruby> &gt; 30なら<br />
<em>　</em><ruby>色<rt>いろ</rt></ruby>の<ruby>効果<rt>こうか</rt></ruby>を25ずつ<ruby>変<rt>か</rt></ruby>える</li>
<li>でなければ<br />
<em>　</em><ruby>右<rt>みぎ</rt></ruby>に90<ruby>度<rt>ど</rt></ruby><ruby>回<rt>まわ</rt></ruby>す</li>
</ol>
</div>
<p><span style="color: #ffab19;"><b>「もし〇〇なら／でなければ」</b></span>ブロックは、<ruby>条件<rt>じょうけん</rt></ruby>を<ruby>満<rt>み</rt></ruby>たしている<ruby>場合<rt>ばあい</rt></ruby>とそれ<ruby>以外<rt>いがい</rt></ruby>の<ruby>場合<rt>ばあい</rt></ruby>で、<ruby>処理<rt>しょり</rt></ruby>を<ruby>分<rt>わ</rt></ruby>ける<ruby>時<rt>とき</rt></ruby>に<ruby>使<rt>つか</rt></ruby>います。</p>
<p>もし<ruby>現在<rt>げんざい</rt></ruby>の<ruby>秒<rt>びょう</rt></ruby>が30より<ruby>大<rt>おお</rt></ruby>きかった<ruby>場合<rt>ばあい</rt></ruby>、ネコの<ruby>色<rt>いろ</rt></ruby>が<ruby>変<rt>か</rt></ruby>わります。<br />
そうでない<ruby>場合<rt>ばあい</rt></ruby>（<ruby>現在<rt>げんざい</rt></ruby>の<ruby>秒<rt>びょう</rt></ruby>が30<ruby>以下<rt>いか</rt></ruby>）はネコが90<ruby>度<rt>ど</rt></ruby><ruby>回転<rt>かいてん</rt></ruby>します。</p>
<p>このように、<ruby>条件<rt>じょうけん</rt></ruby>によって<ruby>処理<rt>しょり</rt></ruby>を<ruby>変<rt>か</rt></ruby>えることができます。</p>
<p>&nbsp;</p>
<h2 id="iterative"><span id="toc9">反復（ループ）</span></h2>
<h3><span id="toc10">反復とは同じ処理をくり返すこと</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-05.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6327" src="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-05.png" alt="反復（ループ）" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-05.png 800w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-05-500x281.png 500w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-05-300x169.png 300w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-05-768x432.png 768w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-05-120x68.png 120w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-05-160x90.png 160w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-05-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p><span style="color: #ff6600;"><b><ruby>反復<rt>はんぷく</rt></ruby></b></span>とは、<span class="marker-under-red">同じ<ruby>処理<rt>しょり</rt></ruby>をくり<ruby>返<rt>かえ</rt></ruby>す</span>ことです。<span style="color: #ff6600;"><b>ループ</b></span>とも<ruby>言<rt>い</rt></ruby>います。</p>
<p>たとえば、1<ruby>時間<rt>じかん</rt></ruby>ゲームした<ruby>後<rt>あと</rt></ruby>、<ruby>勉強<rt>べんきょう</rt></ruby>をする<ruby>行動<rt>こうどう</rt></ruby>をプログラムするなら、</p>
<div class="blank-box bb-blue">
<ol>
<li>ゲームをする</li>
<li>プレイした<ruby>時間<rt>じかん</rt></ruby>をみる</li>
<li>プレイ<ruby>時間<rt>じかん</rt></ruby>が1<ruby>時間<rt>じかん</rt></ruby><ruby>以上<rt>いじょう</rt></ruby>なら、ループをぬけて4へ<br />
プレイ<ruby>時間<rt>じかん</rt></ruby>が1<ruby>時間<rt>じかん</rt></ruby><ruby>未満<rt>みまん</rt></ruby>なら、1にもどる</li>
<li><ruby>勉強<rt>べんきょう</rt></ruby>をする</li>
</ol>
</div>
<p><ruby>同<rt>おな</rt></ruby>じ<ruby>行動<rt>こうどう</rt></ruby>（ゲームをする）を、<ruby>条件<rt>じょうけん</rt></ruby>（プレイ<ruby>時間<rt>じかん</rt></ruby>が1<ruby>時間<rt>じかん</rt></ruby><ruby>以上<rt>いじょう</rt></ruby>なら）を<ruby>満<rt>み</rt></ruby>たすまでくり<ruby>返<rt>かえ</rt></ruby>します。</p>
<p>&nbsp;</p>
<h3><span id="toc11">反復のプログラムを作ってみよう！</span></h3>
<p><ruby>反復<rt>はんぷく</rt></ruby>のプログラムを<ruby>作<rt>つく</rt></ruby>ってみましょう。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-09.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6328" src="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-09.png" alt="反復のプログラム1" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-09.png 800w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-09-500x281.png 500w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-09-300x169.png 300w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-09-768x432.png 768w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-09-120x68.png 120w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-09-160x90.png 160w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-09-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<div class="blank-box bb-blue">
<ul>
<li>ハタが<ruby>押<rt>お</rt></ruby>されたとき</li>
<li>10<ruby>回<rt>かい</rt></ruby><ruby>繰<rt>く</rt></ruby>り<ruby>返<rt>かえ</rt></ruby>す</li>
<li><em>　</em>10<ruby>歩<rt>ぽ</rt></ruby><ruby>動<rt>うご</rt></ruby>かす</li>
<li><em>　</em>36<ruby>度<rt>ど</rt></ruby><ruby>回<rt>まわ</rt></ruby>す</li>
</ul>
</div>
<p>プログラムを<ruby>実行<rt>じっこう</rt></ruby>すると、「10<ruby>歩<rt>ぽ</rt></ruby><ruby>動<rt>うご</rt></ruby>かす」と「36<ruby>度<rt>ど</rt></ruby><ruby>回<rt>まわ</rt></ruby>す」<ruby>命令<rt>めいれい</rt></ruby>を10<ruby>回<rt>かい</rt></ruby>くり<ruby>返<rt>かえ</rt></ruby>して、ネコを1<ruby>回転<rt>かいてん</rt></ruby>させます。</p>
<p><span style="color: #ffab19;"><b>「10<ruby>回<rt>かい</rt></ruby><ruby>繰<rt>くり</rt></ruby>くり<ruby>返<rt>かえ</rt></ruby>かえす」</b></span>ブロックは、<ruby>中<rt>なか</rt></ruby>の<ruby>処理<rt>しょり</rt></ruby>を<ruby>指定<rt>してい</rt></ruby>した<ruby>回数<rt>かいすう</rt></ruby>くり<ruby>返<rt>かえ</rt></ruby>します。</p>
<p>&nbsp;</p>
<p>「10<ruby>歩<rt>ぽ</rt></ruby><ruby>動<rt>うご</rt></ruby>かす」と「36<ruby>度<rt>ど</rt></ruby><ruby>回<rt>まわ</rt></ruby>す」<ruby>命令<rt>めいれい</rt></ruby>を10<ruby>回<rt>かい</rt></ruby>つなげると、<ruby>下<rt>した</rt></ruby>の<ruby>画像<rt>がぞう</rt></ruby>（<ruby>右<rt>みぎ</rt></ruby>）のようになります。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-10.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6329" src="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-10.png" alt="ループを使わないと…" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-10.png 800w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-10-500x281.png 500w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-10-300x169.png 300w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-10-768x432.png 768w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-10-120x68.png 120w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-10-160x90.png 160w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-10-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p><ruby>繰<rt>く</rt></ruby>り<ruby>返<rt>かえ</rt></ruby>しブロックを<ruby>使<rt>つか</rt></ruby>った<ruby>方<rt>ほう</rt></ruby>が、<span class="marker-under-red"><ruby>同<rt>おな</rt></ruby>じブロックをたくさん<ruby>出<rt>だ</rt></ruby>す<ruby>手間<rt>てま</rt></ruby>が<ruby>省<rt>はぶ</rt></ruby>けます</span>し、<span class="marker-under-red"><ruby>内容<rt>ないよう</rt></ruby>が<ruby>分<rt>わ</rt></ruby>かりやすい</span>です。</p>
<p>また、10<ruby>歩<rt>ほ</rt></ruby><ruby>動<rt>うご</rt></ruby>かすを20<ruby>歩<rt>ほ</rt></ruby><ruby>動<rt>うご</rt></ruby>かすに<ruby>変<rt>か</rt></ruby>えたくなった<ruby>時<rt>とき</rt></ruby>、<ruby>繰<rt>く</rt></ruby>り<ruby>返<rt>かえ</rt></ruby>しブロックを<ruby>使<rt>つか</rt></ruby>わないプログラムは10か<ruby>所<rt>しょ</rt></ruby><ruby>変<rt>か</rt></ruby>える<ruby>必要<rt>ひつよう</rt></ruby>がありますが、<ruby>繰<rt>く</rt></ruby>り<ruby>返<rt>かえ</rt></ruby>しブロックを<ruby>使<rt>つか</rt></ruby>ったプログラムは1か<ruby>所<rt>しょ</rt></ruby>の<ruby>変更<rt>へんこう</rt></ruby>ですみます。</p>
<p>このように<ruby>繰<rt>く</rt></ruby>り<ruby>返<rt>かえ</rt></ruby>しブロックを<ruby>使<rt>つか</rt></ruby>うと、<span class="marker-under-red"><ruby>修正<rt>しゅうせい</rt></ruby>がかんたんになります</span>。</p>
<p>&nbsp;</p>
<p>もうひとつ<ruby>作<rt>つく</rt></ruby>ってみましょう。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-11.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6330" src="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-11.png" alt="反復のプログラム2" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-11.png 800w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-11-500x281.png 500w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-11-300x169.png 300w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-11-768x432.png 768w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-11-120x68.png 120w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-11-160x90.png 160w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-11-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<div class="blank-box bb-blue">
<ul>
<li>ハタが<ruby>押<rt>お</rt></ruby>されたとき</li>
<li>ずっと<br />
<em>　</em><ruby>現在<rt>げんざい</rt></ruby>の<ruby>時<rt>とき</rt></ruby>と<ruby>現在<rt>げんざい</rt></ruby>の<ruby>分<rt>ぶん</rt></ruby>と<ruby>言<rt>い</rt></ruby>う</li>
</ul>
</div>
<p><span style="color: #ffab19;"><b>「ずっと」</b></span>ブロックは、<ruby>中<rt>なか</rt></ruby>の<ruby>処理<rt>しょり</rt></ruby>をずっとくり<ruby>返<rt>かえ</rt></ruby>します。</p>
<p>ずーっとくり<ruby>返<rt>かえ</rt></ruby>しているので、<ruby>時刻<rt>じこく</rt></ruby>が<ruby>変<rt>か</rt></ruby>わると<ruby>自動的<rt>じどうてき</rt></ruby>にネコのセリフが<ruby>変<rt>か</rt></ruby>わります。</p>
<p>&nbsp;</p>
<h2><span id="toc12">順次、分岐、反復を組み合わせてみよう！</span></h2>
<p><ruby>順次<rt>じゅんじ</rt></ruby>、<ruby>分岐<rt>ぶんき</rt></ruby>、<ruby>反復<rt>はんぷく</rt></ruby>を<ruby>組<rt>く</rt></ruby>み<ruby>合<rt>あ</rt></ruby>わせると、さらに<ruby>複雑<rt>ふくざつ</rt></ruby>なプログラムを<ruby>作<rt>つく</rt></ruby>れます。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-12.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6331" src="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-12.png" alt="順次・分岐・反復 組み合わせ" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/12/basic-structure-12.png 800w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-12-500x281.png 500w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-12-300x169.png 300w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-12-768x432.png 768w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-12-120x68.png 120w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-12-160x90.png 160w, https://living-maou.com/wp-content/uploads/2023/12/basic-structure-12-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<div class="blank-box bb-blue">
<ul>
<li>ハタが<ruby>押<rt>お</rt></ruby>されたとき</li>
<li>ずっと<br />
<em>　</em><ruby>現在<rt>げんざい</rt></ruby>の<ruby>時<rt>とき</rt></ruby>と<ruby>現在<rt>げんざい</rt></ruby>の<ruby>分<rt>ぶん</rt></ruby>と<ruby>言<rt>い</rt></ruby>う</li>
<li><em>　</em>もし<ruby>現在<rt>げんざい</rt></ruby>の<ruby>秒<rt>びょう</rt></ruby> = 0 なら<br />
<em>　　</em><ruby>終<rt>お</rt></ruby>わるまでニャーの<ruby>音<rt>おと</rt></ruby>を<ruby>鳴<rt>な</rt></ruby>らす</li>
</ul>
</div>
<p>このプログラムは、ずっとネコが<ruby>何時<rt>なんじ</rt></ruby><ruby>何分<rt>なんぷん</rt></ruby>か<ruby>言<rt>い</rt></ruby>って、1<ruby>分<rt>ふん</rt></ruby>たつごとに（<ruby>秒<rt>びょう</rt></ruby>が0の<ruby>時<rt>とき</rt></ruby>）ニャーと<ruby>音<rt>おと</rt></ruby>を<ruby>鳴<rt>な</rt></ruby>らします。</p>
<p>ぜひ<ruby>処理<rt>しょり</rt></ruby>を<ruby>追加<rt>ついか</rt></ruby>して、もっと<ruby>便利<rt>べんり</rt></ruby>で<ruby>楽<rt>たの</rt></ruby>しいプログラムにしてみてくださいね。</p>
<p>&nbsp;</p>
<h2><span id="toc13">まとめ</span></h2>
<p><ruby>今回<rt>こんかい</rt></ruby>はプログラミングの<ruby>基本<rt>きほん</rt></ruby>である<ruby>順次<rt>じゅんじ</rt></ruby>、<ruby>分岐<rt>ぶんき</rt></ruby>、<ruby>反復<rt>はんぷく</rt></ruby>について<ruby>解説<rt>かいせつ</rt></ruby>しました。</p>
<div class="blank-box bb-blue">
<ul>
<li><a href="#sequential"><ruby>順次<rt>じゅんじ</rt></ruby>：<ruby>順番<rt>じゅんばん</rt></ruby>に<ruby>命令<rt>めいれい</rt></ruby>を<ruby>実行<rt>じっこう</rt></ruby>すること</a></li>
<li><a href="#conditional"><ruby>分岐<rt>ぶんき</rt></ruby>：<ruby>条件<rt>じょうけん</rt></ruby>によって<ruby>処理<rt>しょり</rt></ruby>を<ruby>変<rt>か</rt></ruby>えること</a></li>
<li><a href="#iterative"><ruby>反復<rt>はんぷく</rt></ruby>：<ruby>同<rt>おな</rt></ruby>じ<ruby>処理<rt>しょり</rt></ruby>をくり<ruby>返<rt>かえ</rt></ruby>すこと</a></li>
</ul>
</div>
<p>これらの<ruby>基本<rt>きほん</rt></ruby>を<ruby>組<rt>く</rt></ruby>み<ruby>合<rt>あ</rt></ruby>わせれば、さまざまなプログラムが<ruby>作<rt>つく</rt></ruby>れます。</p>
<p>プログラミングは<ruby>最初<rt>さいしょ</rt></ruby>は<ruby>難<rt>むずか</rt></ruby>しそうに<ruby>見<rt>み</rt></ruby>えるかもしれませんが、<ruby>子<rt>こ</rt></ruby>ども<ruby>向<rt>む</rt></ruby>けのプログラミング<ruby>言語<rt>げんご</rt></ruby>や<ruby>学習<rt>がくしゅう</rt></ruby>プラットフォームがたくさんあります。</p>
<p><ruby>下<rt>した</rt></ruby>の<ruby>記事<rt>きじ</rt></ruby>では、<ruby>小学生<rt>しょうがくせい</rt></ruby>の<a rel="noopener" target="_self" href="https://living-maou.com/teaching-material/">プログラミング<ruby>教材<rt>きょうざい</rt></ruby>を<ruby>選<rt>えら</rt></ruby>ぶポイントと、オススメの<ruby>教材<rt>きょうざい</rt></ruby><span class="fa fa-external-link internal-icon anchor-icon"></span></a>を<ruby>紹介<rt>しょうかい</rt></ruby>しています。<br />
ぜひあわせて<ruby>読<rt>よ</rt></ruby>んでみてください。</p>
<div class="blogcard-type bct-detail">

<a rel="noopener" target="_self" href="https://living-maou.com/teaching-material/" title="学び好きな子に育つ！考えて作る楽しさを味わえるプログラミング玩具7選" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2020/02/eyecatch-teaching-material02-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2020/02/eyecatch-teaching-material02-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-teaching-material02-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-teaching-material02-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-teaching-material02-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-teaching-material02-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-teaching-material02-320x180.jpg 320w, https://living-maou.com/wp-content/uploads/2020/02/eyecatch-teaching-material02.jpg 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">学び好きな子に育つ！考えて作る楽しさを味わえるプログラミング玩具7選</div><div class="blogcard-snippet internal-blogcard-snippet">子ども向けのプログラミング教材やおもちゃは種類や難易度がさまざま。どれを選べばいいのか迷ってしまいませんか？【リビングの魔王】では年齢や興味関心に合わせて選ぶポイントや、おすすめの教材・おもちゃを紹介。プログラミング学習の参考にしてみてください。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://living-maou.com/control-structure/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【Scratch】点字のしくみの調べ学習にプログラミングをプラス！小学生向け自由研究</title>
		<link>https://living-maou.com/scratch-braille/</link>
					<comments>https://living-maou.com/scratch-braille/#respond</comments>
		
		<dc:creator><![CDATA[メソ]]></dc:creator>
		<pubDate>Sun, 20 Aug 2023 01:59:44 +0000</pubDate>
				<category><![CDATA[Scratch]]></category>
		<category><![CDATA[作品例]]></category>
		<category><![CDATA[自由研究]]></category>
		<guid isPermaLink="false">https://living-maou.com/?p=5724</guid>

					<description><![CDATA[この記事では、子ども向けプログラミング言語Scratch（スクラッチ）を使って「アルファベットを点字に変換へんかんするプログラム」の作り方を紹介しょうかいします。 アルファベットを点字に変換へんかんするプログラムを作るこ [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/08/eyecatch-scratch-braille.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5725" src="https://living-maou.com/wp-content/uploads/2023/08/eyecatch-scratch-braille.jpg" alt="" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/08/eyecatch-scratch-braille.jpg 800w, https://living-maou.com/wp-content/uploads/2023/08/eyecatch-scratch-braille-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2023/08/eyecatch-scratch-braille-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2023/08/eyecatch-scratch-braille-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2023/08/eyecatch-scratch-braille-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2023/08/eyecatch-scratch-braille-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2023/08/eyecatch-scratch-braille-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>この記事では、子ども向けプログラミング言語<b>Scratch（スクラッチ）</b>を使って「アルファベットを点字に<ruby>変換<rt>へんかん</rt></ruby>するプログラム」の作り方を<ruby>紹介<rt>しょうかい</rt></ruby>します。</p>
<p>アルファベットを点字に<ruby>変換<rt>へんかん</rt></ruby>するプログラムを作ることで、<ruby>以下<rt>いか</rt></ruby>のことが学べます。</p>
<div class="blank-box bb-blue">
<ul>
<li>プログラミングの<ruby>基礎<rt>きそ</rt></ruby>「<ruby>変数<rt>へんすう</rt></ruby>」と「リスト」を学べる</li>
<li>点字のしくみについて<ruby>理解<rt>りかい</rt></ruby>が深まる</li>
<li><ruby>視覚<rt>しかく</rt></ruby><ruby>障害者<rt>しょうがいしゃ</rt></ruby>への<ruby>理解<rt>りかい</rt></ruby>が深まる</li>
</ul>
</div>
<p>夏休みの自由研究におすすめ。点字をテーマにした調べ学習に<ruby>追加<rt>ついか</rt></ruby>して、みんなと<ruby>差<rt>さ</rt></ruby>をつけちゃいましょう！</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/scratch-start/">Scratch（スクラッチ）の<ruby>基本的<rt>きほんてき</rt></ruby>な使い方<span class="fa fa-external-link internal-icon anchor-icon"></span></a>は、下の記事で<ruby>紹介<rt>しょうかい</rt></ruby>しています。</p>
<div class="blogcard-type bct-related">

<a rel="noopener" target="_self" href="https://living-maou.com/scratch-start/" title="子ども向けプログラミング言語「スクラッチ(Scratch)」の始め方" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2020/03/eyecatch_scratch-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2020/03/eyecatch_scratch-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2020/03/eyecatch_scratch-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2020/03/eyecatch_scratch.jpg 800w, https://living-maou.com/wp-content/uploads/2020/03/eyecatch_scratch-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2020/03/eyecatch_scratch-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2020/03/eyecatch_scratch-1536x864.jpg 1536w, https://living-maou.com/wp-content/uploads/2020/03/eyecatch_scratch-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2020/03/eyecatch_scratch-320x180.jpg 320w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">子ども向けプログラミング言語「スクラッチ(Scratch)」の始め方</div><div class="blogcard-snippet internal-blogcard-snippet">子供向けプログラミング言語Scratch（スクラッチ）。プログラミング教育の教材として多くの小学校で使われています。【リビングの魔王】では、おうちでもスクラッチを使いたい方のために、アカウントの作成方法と基本的な使い方を紹介します。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
<h2><span id="toc1">点字とは視覚障害者のための文字</span></h2>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille01.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5726" src="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille01.jpg" alt="点字とは" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille01.jpg 800w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille01-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille01-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille01-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille01-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille01-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille01-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p><b>点字</b>とは、<ruby>視覚<rt>しかく</rt></ruby><ruby>障害者<rt>しょうがいしゃ</rt></ruby>のための文字です。小さな点を使って文字や記号を<ruby>表現<rt>ひょうげん</rt></ruby>し、指で<ruby>触<rt>さわ</rt></ruby>って読むことができます。</p>
<p>フランスの<b>ルイ・ブライユ</b>によって発明されました。</p>
<p>点字は、<ruby>現在<rt>げんざい</rt></ruby>世界中で広く使われており、<ruby>視覚<rt>しかく</rt></ruby><ruby>障害者<rt>しょうがいしゃ</rt></ruby>にとって、文字を読むための<ruby>重要<rt>じゅうよう</rt></ruby>な<ruby>手段<rt>しゅだん</rt></ruby>です。点字で書かれた本、新聞、<ruby>雑誌<rt>ざっし</rt></ruby>、手紙、<ruby>標識<rt>ひょうしき</rt></ruby>など、さまざまなものが点字で作られています。</p>
<p>&nbsp;</p>
<h2><span id="toc2">点字のしくみ</span></h2>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille02.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5727" src="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille02.jpg" alt="点字のしくみ" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille02.jpg 800w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille02-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille02-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille02-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille02-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille02-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille02-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>点字は、<span class="marker-under-red">6つの点を組み合わせて文字や記号を<ruby>表現<rt>ひょうげん</rt></ruby></span>します。アルファベットの文字や記号ごとに<ruby>異<rt>こと</rt></ruby>なる点の<ruby>配置<rt>はいち</rt></ruby>があり、それを<ruby>覚<rt>おぼ</rt></ruby>えることで点字を読むことができるようになります。</p>
<div class="ad-area no-icon ad-shortcode ad-rectangle ad-label-visible cf" itemscope itemtype="https://schema.org/WPAdBlock">
  <div class="ad-label" itemprop="name" data-nosnippet>スポンサーリンク</div>
  <div class="ad-wrap">
    <div class="ad-responsive ad-usual"><!-- レスポンシブコード -->
<ins class="adsbygoogle"
  style="display:block"
  data-ad-client="ca-pub-9126458450711382"
  data-ad-slot="2965068638"
  data-ad-format="rectangle"
  data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></div>
          </div>

</div>

<h2><span id="toc3">点字変換プログラムを作ろう</span></h2>
<p>Scratchでアルファベットを点字に<ruby>変換<rt>へんかん</rt></ruby>するプログラムを作ってみましょう。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille03.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5728" src="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille03.png" alt="点字変換プログラム" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille03.png 800w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille03-500x281.png 500w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille03-300x169.png 300w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille03-768x432.png 768w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille03-120x68.png 120w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille03-160x90.png 160w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille03-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>下は<ruby>完成<rt>かんせい</rt></ruby>したプログラムです。</p>
<p><iframe loading="lazy" src="https://scratch.mit.edu/projects/879919584/embed" width="485" height="402" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen"></iframe><br />
アルファベットを左右の三角ボタンで<ruby>選択<rt>せんたく</rt></ruby>すると、それに<ruby>対応<rt>たいおう</rt></ruby>する点字が<ruby>表示<rt>ひょうじ</rt></ruby>されます。（点のある場所：●　ない場所：○）</p>
<p>&nbsp;</p>
<p>このプログラムは<span style="color: #ff0000;"><b><ruby>変数<rt>へんすう</rt></ruby></b></span>と<span style="color: #ff0000;"><b>リスト</b></span>を使います。</p>
<p><b><ruby>変数<rt>へんすう</rt></ruby></b>は、プログラムで使う<span class="marker-under-red">データを<ruby>一時的<rt>いちじてき</rt></ruby>に<ruby>保存<rt>ほぞん</rt></ruby>するための場所</span>。<b>リスト</b>は、<span class="marker-under-red"><ruby>複数<rt>ふくすう</rt></ruby>のデータをまとめて<ruby>管理<rt>かんり</rt></ruby>するためのしくみ</span>です。</p>
<p>下の記事でくわしく<ruby>解説<rt>かいせつ</rt></ruby>しています。よく分からない人は、あわせて読んでみてください。</p>
<div class="blank-box bb-blue">
<ul>
<li><a rel="noopener" target="_self" href="https://living-maou.com/scratch-variable/"><ruby>変数<rt>へんすう</rt></ruby>とは？スクラッチ（Scratch）を使ってわかりやすく<ruby>解説<rt>かいせつ</rt></ruby><span class="fa fa-external-link internal-icon anchor-icon"></span></a></li>
<li><a rel="noopener" target="_self" href="https://living-maou.com/scratch-list/">配列・リストとは？スクラッチ（Scratch）を使ってわかりやすく<ruby>解説<rt>かいせつ</rt></ruby><span class="fa fa-external-link internal-icon anchor-icon"></span></a></li>
</ul>
</div>
<p>&nbsp;</p>
<h3><span id="toc4">スプライトを準備する</span></h3>
<p>今回使うプログラムのスプライトを<ruby>準備<rt>じゅんび</rt></ruby>しましょう。</p>
<p>ネコのスプライト（スプライト1）は使わないので消してください。</p>
<h4>アルファベット</h4>
<p>アルファベットのスプライトを<ruby>追加<rt>ついか</rt></ruby>します。</p>
<ol>
<li>「スプライトを<ruby>追加<rt>ついか</rt></ruby>」→「スプライトを<ruby>選<rt>えら</rt></ruby>ぶ」を<ruby>選択<rt>せんたく</rt></ruby></li>
<li>Aのスプライトを<ruby>選<rt>えら</rt></ruby>ぶ</li>
</ol>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille04.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5729" src="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille04.png" alt="アルファベットのスプライト" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille04.png 800w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille04-500x281.png 500w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille04-300x169.png 300w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille04-768x432.png 768w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille04-120x68.png 120w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille04-160x90.png 160w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille04-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>AのスプライトにB～Zのコスチュームを<ruby>追加<rt>ついか</rt></ruby>します。</p>
<ol>
<li>コスチュームタブ→「コスチュームを<ruby>追加<rt>ついか</rt></ruby>」→「コスチュームを<ruby>選<rt>えら</rt></ruby>ぶ」を<ruby>選択<rt>せんたく</rt></ruby></li>
<li>Bのコスチュームを<ruby>選<rt>えら</rt></ruby>ぶ</li>
</ol>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille05.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5730" src="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille05.png" alt="B～Zのコスチュームを追加" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille05.png 800w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille05-500x281.png 500w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille05-300x169.png 300w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille05-768x432.png 768w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille05-120x68.png 120w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille05-160x90.png 160w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille05-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>同じ<ruby>手順<rt>てじゅん</rt></ruby>で、C<ruby>以降<rt>いこう</rt></ruby>のコスチュームも<ruby>追加<rt>ついか</rt></ruby>しましょう。</p>
<p>&nbsp;</p>
<h4>すすむボタン</h4>
<p>すすむボタンを作りましょう。</p>
<p>「スプライトを<ruby>追加<rt>ついか</rt></ruby>」→「<ruby>描<rt>えが</rt></ruby>く」を<ruby>選<rt>えら</rt></ruby>んで、三角形をかきます。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille06.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5731" src="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille06.png" alt="Scratchで三角形を描く" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille06.png 800w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille06-500x281.png 500w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille06-300x169.png 300w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille06-768x432.png 768w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille06-120x68.png 120w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille06-160x90.png 160w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille06-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>四角形をかいて、<ruby>頂点<rt>ちょうてん</rt></ruby>をひとつ消すと三角形になります。</p>
<p>ペイントエディターのくわしい使い方は「<a rel="noopener" target="_self" href="https://living-maou.com/scratch-paint-vector/">【スクラッチ（Scratch）】絵を<ruby>描<rt>か</rt></ruby>いてスプライトや<ruby>背景<rt>はいけい</rt></ruby>を作ろう（ベクター<ruby>編<rt>へん</rt></ruby>）<span class="fa fa-external-link internal-icon anchor-icon"></span></a>」で<ruby>解説<rt>かいせつ</rt></ruby>しています。</p>
<p>&nbsp;</p>
<h4>1の点</h4>
<p>1の点のスプライトを作りましょう。</p>
<ol>
<li>「スプライトを<ruby>追加<rt>ついか</rt></ruby>」→「<ruby>描<rt>えが</rt></ruby>く」を<ruby>選択<rt>せんたく</rt></ruby></li>
<li>〇をかく</li>
<li>〇を<ruby>複製<rt>ふくせい</rt></ruby>する（コスチューム1を右クリック→<ruby>複製<rt>ふくせい</rt></ruby>)</li>
<li>コスチューム2の<ruby>塗<rt>ぬ</rt></ruby>りつぶしの色を黒にして、●を作る</li>
</ol>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille07.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5732" src="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille07.png" alt="点のスプライト" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille07.png 800w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille07-500x281.png 500w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille07-300x169.png 300w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille07-768x432.png 768w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille07-120x68.png 120w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille07-160x90.png 160w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille07-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<div class="blank-box bb-tab bb-memo bb-blue">点のスプライトは1つでOKです。<ruby>他<rt>ほか</rt></ruby>の点は、プログラムを作ってからコピーして作ります。</div>
<div class="ad-area no-icon ad-shortcode ad-rectangle ad-label-visible cf" itemscope itemtype="https://schema.org/WPAdBlock">
  <div class="ad-label" itemprop="name" data-nosnippet>スポンサーリンク</div>
  <div class="ad-wrap">
    <div class="ad-responsive ad-usual"><!-- レスポンシブコード -->
<ins class="adsbygoogle"
  style="display:block"
  data-ad-client="ca-pub-9126458450711382"
  data-ad-slot="2965068638"
  data-ad-format="rectangle"
  data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></div>
          </div>

</div>

<h3><span id="toc5">アルファベットのプログラム</span></h3>
<p>すすむボタンをおすと、次のアルファベットが<ruby>表示<rt>ひょうじ</rt></ruby>されるプログラムを作りましょう。</p>
<h4>アルファベット</h4>
<p>何番目のアルファベットかを表す<ruby>変数<rt>へんすう</rt></ruby><span style="color: #ff8c1a;"><b>「アルファベット番号」</b></span>を作ります。</p>
<p><ruby>変数<rt>へんすう</rt></ruby>カテゴリから<span style="color: #ff8c1a;"><b>「<ruby>変数<rt>へんすう</rt></ruby>を<ruby>追加<rt>ついか</rt></ruby>する」</b></span>をクリックし、「アルファベット番号」という名前の<ruby>変数<rt>へんすう</rt></ruby>を作ります。すべてのスプライト用で作ってください。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille08.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5733" src="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille08.png" alt="変数を追加する" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille08.png 800w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille08-500x281.png 500w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille08-300x169.png 300w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille08-768x432.png 768w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille08-120x68.png 120w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille08-160x90.png 160w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille08-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p><ruby>変数<rt>へんすう</rt></ruby><span style="color: #ff8c1a;"><b>「アルファベット番号」</b></span>に<ruby>対応<rt>たいおう</rt></ruby>するコスチュームを<ruby>表示<rt>ひょうじ</rt></ruby>するプログラムを作ります。</p>
<ol>
<li>イベントカテゴリから<span style="color: #ffd500;"><b>「緑のハタが<ruby>押<rt>お</rt></ruby>されたとき」</b></span>をコードエリアに出す。</li>
<li><ruby>変数<rt>へんすう</rt></ruby>カテゴリから<span style="color: #ff8c1a;"><b>「アルファベット番号を(0)にする」</b></span>を出し、<span style="color: #ffd500;"><b>「緑のハタが<ruby>押<rt>お</rt></ruby>されたとき」</b></span>の下に<ruby>配置<rt>はいち</rt></ruby>する。</li>
<li><span style="color: #ff8c1a;"><b>「アルファベット番号を(0)にする」</b></span>の0を1に<ruby>変更<rt>へんこう</rt></ruby>する（<ruby>初期<rt>しょき</rt></ruby><ruby>値<rt>ち</rt></ruby>を<ruby>設定<rt>せってい</rt></ruby>）</li>
<li><ruby>制御<rt>せいぎょ</rt></ruby>カテゴリから<span style="color: #ffab19;"><b>「ずっと」</b></span>を出し、<span style="color: #ff8c1a;"><b>「アルファベット番号を1にする」</b></span>の下に<ruby>配置<rt>はいち</rt></ruby>する。</li>
<li>見た目カテゴリから<span style="color: #9966ff;"><b>「コスチュームを(Block-z)にする」</b></span>を出し、<span style="color: #ffab19;"><b>「ずっと」</b></span>の中に<ruby>配置<rt>はいち</rt></ruby>する。</li>
<li><ruby>変数<rt>へんすう</rt></ruby>カテゴリから<span style="color: #ff8c1a;"><b>「アルファベット番号」</b></span>を出し、<span style="color: #9966ff;"><b>「コスチュームを(Block-z)にする」</b></span>のBlock-zの部分に<ruby>配置<rt>はいち</rt></ruby>する。</li>
</ol>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille09.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5734" src="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille09.png" alt="アルファベットのプログラム" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille09.png 800w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille09-500x281.png 500w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille09-300x169.png 300w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille09-768x432.png 768w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille09-120x68.png 120w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille09-160x90.png 160w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille09-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>これで<span style="color: #ff8c1a;"><b>「アルファベット番号」</b></span>に<ruby>対応<rt>たいおう</rt></ruby>したコスチュームが<ruby>表示<rt>ひょうじ</rt></ruby>されるようになりました。</p>
<div class="blank-box bb-tab bb-memo bb-blue"><span style="color: #9966ff;"><b>「コスチュームを()にする」</b></span>ブロックで指定した<ruby>値<rt>あたい</rt></ruby>と同じコスチューム番号のコスチュームが表示されます。</div>
<p>&nbsp;</p>
<h4>すすむボタン</h4>
<p>すすむボタンをおすと、<ruby>変数<rt>へんすう</rt></ruby><span style="color: #ff8c1a;"><b>「アルファベット番号」</b></span>が1<ruby>増<rt>ふ</rt></ruby>えるプログラムを作ります。</p>
<ol>
<li>イベントカテゴリから<span style="color: #ffd500;"><b>「このスプライトが<ruby>押<rt>お</rt></ruby>されたとき」</b></span>をコードエリアに出す。</li>
<li><ruby>変数<rt>へんすう</rt></ruby>カテゴリから<span style="color: #ff8c1a;"><b>「アルファベット番号を(1)ずつ<ruby>変<rt>か</rt></ruby>える」</b></span>を出し、<span style="color: #ffd500;"><b>「このスプライトが<ruby>押<rt>お</rt></ruby>されたとき」</b></span>の下に<ruby>配置<rt>はいち</rt></ruby>する。</li>
</ol>
<p><ruby>変数<rt>へんすう</rt></ruby><span style="color: #ff8c1a;"><b>「アルファベット番号」</b></span>が26(Z)を<ruby>超<rt>こ</rt></ruby>えた時、1(A)にもどる<ruby>処理<rt>しょり</rt></ruby>を<ruby>追加<rt>ついか</rt></ruby>します。</p>
<ol>
<li><ruby>制御<rt>せいぎょ</rt></ruby>カテゴリから<span style="color: #ffab19;"><b>「もし なら」</b></span>を出し、<span style="color: #ff8c1a;"><b>「アルファベット番号を(1)ずつ<ruby>変<rt>か</rt></ruby>える」</b></span>の下に<ruby>配置<rt>はいち</rt></ruby>する。</li>
<li><ruby>演算<rt>えんざん</rt></ruby>カテゴリから<span style="color: #40bf4a;"><b>「()&gt;(50)」</b></span>を出し、<span style="color: #ffab19;"><b>「もし なら」</b></span>の中に<ruby>配置<rt>はいち</rt></ruby>する。</li>
<li><span style="color: #40bf4a;"><b>「()&gt;(50)」</b></span>を<span style="color: #40bf4a;"><b>「(アルファベット番号) &gt; (26)」</b></span>に<ruby>変更<rt>へんこう</rt></ruby>する。</li>
<li><ruby>変数<rt>へんすう</rt></ruby>カテゴリから<span style="color: #ff8c1a;"><b>「アルファベット番号を(0)にする」</b></span>を出し、<span style="color: #ffab19;"><b>「もし アルファベット番号 &gt; 26なら」</b></span>の下に<ruby>配置<rt>はいち</rt></ruby>する。</li>
<li><span style="color: #ff8c1a;"><b>「アルファベット番号を(0)にする」</b></span>の0を1に<ruby>変更<rt>へんこう</rt></ruby>する。</li>
</ol>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille10.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5735" src="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille10.png" alt="すすむボタンのプログラム" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille10.png 800w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille10-500x281.png 500w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille10-300x169.png 300w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille10-768x432.png 768w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille10-120x68.png 120w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille10-160x90.png 160w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille10-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>すすむボタンをおしてテストしてみましょう。アルファベット番号が<ruby>増<rt>ふ</rt></ruby>えて、アルファベットのスプライトが次のアルファベットに<ruby>変<rt>か</rt></ruby>わるはずです。</p>
<p>正しく動くことが<ruby>確認<rt>かくにん</rt></ruby>できたら、すすむボタンのスプライトを<ruby>複製<rt>ふくせい</rt></ruby>して、もどるボタンを作ってみましょう。どこを<ruby>変更<rt>へんこう</rt></ruby>すればいいか、自分で考えてみてください。</p>
<p>&nbsp;</p>
<h3><span id="toc6">点のプログラム</span></h3>
<p>アルファベットに<ruby>対応<rt>たいおう</rt></ruby>する点字が<ruby>表示<rt>ひょうじ</rt></ruby>されるプログラムを作りましょう。</p>
<p>6つの点のありなしを<ruby>管理<rt>かんり</rt></ruby>するしくみを考えます。</p>
<p><ruby>左側<rt>ひだりがわ</rt></ruby>を上から1の点、2の点、3の点、<ruby>右側<rt>みぎがわ</rt></ruby>を上から4の点、5の点、6の点、として点に番号をつけ、点のある場所を●、ない場所を○とします。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille11.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5736" src="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille11.png" alt="1の点～2の点" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille11.png 800w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille11-500x281.png 500w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille11-300x169.png 300w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille11-768x432.png 768w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille11-120x68.png 120w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille11-160x90.png 160w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille11-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>点のありなしを6けたの数字で<ruby>表現<rt>ひょうげん</rt></ruby>してみました。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille12.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5737" src="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille12.jpg" alt="点字リスト" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille12.jpg 800w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille12-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille12-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille12-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille12-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille12-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille12-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>1文字目は1の点、2文字目は2の点…といったふうにわりあて、点のある場所は1、ない場所を0にします。</p>
<p>Aは1の点だけなので「100000」になります。</p>
<p>&nbsp;</p>
<h4>点字リストを作る</h4>
<p>A～Zまでの6けたの数字が入ったリストを作ります。</p>
<p><ruby>変数<rt>へんすう</rt></ruby>カテゴリを<ruby>選<rt>えら</rt></ruby>んで<span style="color: #ff661a;"><b>「リストを作る」</b></span>をクリックし、「点字リスト」という名前のリストを作ります。すべてのスプライト用で作ってください。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille13.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5738" src="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille13.png" alt="点字リストを作る" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille13.png 800w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille13-500x281.png 500w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille13-300x169.png 300w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille13-768x432.png 768w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille13-120x68.png 120w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille13-160x90.png 160w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille13-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>ABC<ruby>順<rt>じゅん</rt></ruby>に26<ruby>個<rt>こ</rt></ruby>のデータを作りましょう。メモ帳などに<ruby>打<rt>う</rt></ruby>ち<ruby>込<rt>こ</rt></ruby>んで、<ruby>読<rt>よ</rt></ruby>み<ruby>込<rt>こ</rt></ruby>むと楽です。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille14.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5739" src="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille14.png" alt="リストにデータを読み込む" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille14.png 800w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille14-500x281.png 500w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille14-300x169.png 300w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille14-768x432.png 768w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille14-120x68.png 120w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille14-160x90.png 160w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille14-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<p>アルファベット番号、アルファベット、点字リストをまとめると<ruby>以下<rt>いか</rt></ruby>のとおりになります。</p>
<div class="scrollable-table"><table>
<tbody>
<tr>
<th>番号</th>
<th>アルファベット</th>
<th>点字テーブル</th>
</tr>
<tr>
<td align="center">1</td>
<td align="center">A</td>
<td align="center">100000</td>
</tr>
<tr>
<td align="center">2</td>
<td align="center">B</td>
<td align="center">110000</td>
</tr>
<tr>
<td align="center">3</td>
<td align="center">C</td>
<td align="center">100100</td>
</tr>
<tr>
<td align="center">4</td>
<td align="center">D</td>
<td align="center">100110</td>
</tr>
<tr>
<td align="center">5</td>
<td align="center">E</td>
<td align="center">100010</td>
</tr>
<tr>
<td align="center">6</td>
<td align="center">F</td>
<td align="center">110100</td>
</tr>
<tr>
<td align="center">7</td>
<td align="center">G</td>
<td align="center">110110</td>
</tr>
<tr>
<td align="center">8</td>
<td align="center">H</td>
<td align="center">110010</td>
</tr>
<tr>
<td align="center">9</td>
<td align="center">I</td>
<td align="center">010100</td>
</tr>
<tr>
<td align="center">10</td>
<td align="center">J</td>
<td align="center">101000</td>
</tr>
<tr>
<td align="center">11</td>
<td align="center">K</td>
<td align="center">111000</td>
</tr>
<tr>
<td align="center">12</td>
<td align="center">L</td>
<td align="center">101100</td>
</tr>
<tr>
<td align="center">13</td>
<td align="center">M</td>
<td align="center">101110</td>
</tr>
<tr>
<td align="center">14</td>
<td align="center">N</td>
<td align="center">101010</td>
</tr>
<tr>
<td align="center">15</td>
<td align="center">O</td>
<td align="center">111100</td>
</tr>
<tr>
<td align="center">16</td>
<td align="center">P</td>
<td align="center">111100</td>
</tr>
<tr>
<td align="center">17</td>
<td align="center">Q</td>
<td align="center">111110</td>
</tr>
<tr>
<td align="center">18</td>
<td align="center">R</td>
<td align="center">111010</td>
</tr>
<tr>
<td align="center">19</td>
<td align="center">S</td>
<td align="center">011100</td>
</tr>
<tr>
<td align="center">20</td>
<td align="center">T</td>
<td align="center">011110</td>
</tr>
<tr>
<td align="center">21</td>
<td align="center">U</td>
<td align="center">101001</td>
</tr>
<tr>
<td align="center">22</td>
<td align="center">V</td>
<td align="center">111001</td>
</tr>
<tr>
<td align="center">23</td>
<td align="center">W</td>
<td align="center">010111</td>
</tr>
<tr>
<td align="center">24</td>
<td align="center">X</td>
<td align="center">101101</td>
</tr>
<tr>
<td align="center">25</td>
<td align="center">Y</td>
<td align="center">101111</td>
</tr>
<tr>
<td align="center">26</td>
<td align="center">Z</td>
<td align="center">101011</td>
</tr>
</tbody>
</table></div>
<p><span class="marker-under-red">アルファベットのコスチュームと点字リストのならびは、ABC<ruby>順<rt>じゅん</rt></ruby>になるようにしてください。</span></p>
<p>&nbsp;</p>
<h4>1の点のプログラム</h4>
<p>点字リストの<span style="color: #ff8c1a;"><b>「アルファベット番号」</b></span>番目のデータをみて、1番目の文字が1だったら●、0だったら0を<ruby>表示<rt>ひょうじ</rt></ruby>するプログラムを作ります。</p>
<ol>
<li>イベントカテゴリから<span style="color: #ffd500;"><b>「緑のハタが<ruby>押<rt>お</rt></ruby>されたとき」</b></span>をコードエリアに出す。</li>
<li><ruby>制御<rt>せいぎょ</rt></ruby>カテゴリから<span style="color: #ffab19;"><b>「ずっと」</b></span>を出し、<span style="color: #ffd500;"><b>「緑のハタが<ruby>押<rt>お</rt></ruby>されたとき」</b></span>の下に<ruby>配置<rt>はいち</rt></ruby>する。</li>
<li><ruby>制御<rt>せいぎょ</rt></ruby>カテゴリから<span style="color: #ffab19;"><b>「もし なら／でなければ」</b></span>を出し、<span style="color: #ffab19;"><b>「ずっと」</b></span>の中に<ruby>配置<rt>はいち</rt></ruby>する。</li>
<li><ruby>演算<rt>えんざん</rt></ruby>カテゴリから<span style="color: #40bf4a;"><b>「()=(50)」</b></span>を出し、<span style="color: #ffab19;"><b>「もし なら」</b></span>の中に<ruby>配置<rt>はいち</rt></ruby>する。</li>
<li><ruby>演算<rt>えんざん</rt></ruby>カテゴリから<span style="color: #40bf4a;"><b>「(りんご)の(1)番目の文字」</b></span>を出し、<span style="color: #40bf4a;"><b>「()=(50)」</b></span>の<ruby>左側<rt>ひだりがわ</rt></ruby>に<ruby>配置<rt>はいち</rt></ruby>する。</li>
<li><ruby>変数<rt>へんすう</rt></ruby>カテゴリから<span style="color: #ff8c1a;"><b>「点字テーブルの(1)番目」</b></span>を出し、<span style="color: #40bf4a;"><b>「(りんご)の(1)番目の文字」</b></span>のりんごの部分に<ruby>配置<rt>はいち</rt></ruby>する。</li>
<li><span style="color: #ff8c1a;"><b>「点字テーブルの(1)番目」</b></span>の1を<ruby>変数<rt>へんすう</rt></ruby><span style="color: #ff8c1a;"><b>「アルファベット番号」</b></span>に<ruby>変更<rt>へんこう</rt></ruby>する。</li>
<li>1の点なので<span style="color: #40bf4a;"><b>「点字テーブル（アルファベット番号）番目の(1)番目の文字」</b></span>の1の部分はそのまま。</li>
<li><span style="color: #ffab19;"><b>「もし点字テーブルの(アルファベット番号)番目の(1)番目の文字=(50)なら」</b></span>の50を1に<ruby>変更<rt>へんこう</rt></ruby>する。</li>
<li>見た目カテゴリから<span style="color: #9966ff;"><b>「コスチュームを(コスチューム2)にする」</b></span>を出し、もしの下とでなければの下に<ruby>配置<rt>はいち</rt></ruby>する。</li>
<li>1だった場合、点がある場所なので<span style="color: #9966ff;"><b>「コスチュームを(コスチューム2)にする」</b></span>にする。</li>
<li>1でない場合は、点がない場所なので<span style="color: #9966ff;"><b>「コスチュームを(コスチューム1)にする」</b></span>にする。</li>
</ol>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille15.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5740" src="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille15.png" alt="1の点のプログラム" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2023/08/scratch-braille15.png 800w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille15-500x281.png 500w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille15-300x169.png 300w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille15-768x432.png 768w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille15-120x68.png 120w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille15-160x90.png 160w, https://living-maou.com/wp-content/uploads/2023/08/scratch-braille15-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>1の点のスプライトをコピーして、2の点～6の点も作りましょう。</p>
<p>どこを<ruby>変更<rt>へんこう</rt></ruby>すればいいか考えてみてください。</p>
<p>&nbsp;</p>
<h2><span id="toc7">まとめ</span></h2>
<p>アルファベットを点字に<ruby>変換<rt>へんかん</rt></ruby>するプログラムの作り方を<ruby>紹介<rt>しょうかい</rt></ruby>しました。</p>
<p>リストまわりは少し<ruby>複雑<rt>ふくざつ</rt></ruby>ですが、プログラムはなるべく短くなるようにしています。</p>
<p><ruby>変数<rt>へんすう</rt></ruby>「アルファベット」を使って、何番目のコスチュームを出すのかと、点字リストの何番目をみるのかを<ruby>管理<rt>かんり</rt></ruby>していることをおさえておきましょう。</p>
<p><ruby>余裕<rt>よゆう</rt></ruby>があったら、かなを点字に<ruby>変換<rt>へんかん</rt></ruby>するプログラミングも考えてみてください。</p>
<div class="blogcard-type bct-related">

<a rel="noopener" target="_self" href="https://living-maou.com/freestudy-theme/" title="【かんたん・すごい】小学生の自由研究に役立つプログラミング作品例18選" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2021/07/eyecatch_freestudy-theme-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2021/07/eyecatch_freestudy-theme-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2021/07/eyecatch_freestudy-theme-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2021/07/eyecatch_freestudy-theme-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2021/07/eyecatch_freestudy-theme-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2021/07/eyecatch_freestudy-theme-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2021/07/eyecatch_freestudy-theme-320x180.jpg 320w, https://living-maou.com/wp-content/uploads/2021/07/eyecatch_freestudy-theme.jpg 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">【かんたん・すごい】小学生の自由研究に役立つプログラミング作品例18選</div><div class="blogcard-snippet internal-blogcard-snippet">夏休みの宿題で一番やっかいな自由研究。テーマ選びに困りますよね。今年はプログラミングに挑戦してみてはいかがでしょうか。この記事では【リビングの魔王】で紹介しているプログラミング作品と参考になる本を紹介します。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://living-maou.com/scratch-braille/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【MaBeeeレビュー】お気に入りのおもちゃでプログラミングを学べる乾電池型IoT製品</title>
		<link>https://living-maou.com/mabeee-review/</link>
					<comments>https://living-maou.com/mabeee-review/#respond</comments>
		
		<dc:creator><![CDATA[メソ]]></dc:creator>
		<pubDate>Fri, 25 Nov 2022 02:01:20 +0000</pubDate>
				<category><![CDATA[フィジカルプログラミング]]></category>
		<category><![CDATA[MaBeee]]></category>
		<category><![CDATA[Scratch]]></category>
		<category><![CDATA[Scratch Link]]></category>
		<guid isPermaLink="false">https://living-maou.com/?p=4712</guid>

					<description><![CDATA[お気に入りのおもちゃでプログラミングを学べたら、楽しいと思いませんか？ 「MaBeee（マビー）」は、単3の乾電池で動くおもちゃやライトなどを、専用アプリでコントロールできる乾電池型IoT製品。 また、子ども向けプログラ [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2022/11/eyecatch-MaBeee.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-4713" src="https://living-maou.com/wp-content/uploads/2022/11/eyecatch-MaBeee.jpg" alt="" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2022/11/eyecatch-MaBeee.jpg 800w, https://living-maou.com/wp-content/uploads/2022/11/eyecatch-MaBeee-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2022/11/eyecatch-MaBeee-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2022/11/eyecatch-MaBeee-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2022/11/eyecatch-MaBeee-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2022/11/eyecatch-MaBeee-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2022/11/eyecatch-MaBeee-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<div class="information-box common-icon-box"><span class="fz-14px">このページにはアフィリエイトリンクが含まれています。</span></div>
<p><!-- リンクを介して商品を購入した場合、当ブログに報酬が支払われることがあります。またリンクから購入しても読者様のご負担はございません。 --></p>

<p>お気に入りのおもちゃでプログラミングを学べたら、楽しいと思いませんか？</p>
<p>「<a rel="nofollow noopener" target="_blank" href="//af.moshimo.com/af/c/click?a_id=1826192&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062&amp;url=https%3A%2F%2Fwww.amazon.co.jp%2Fdp%2FB074KC6Z7Y">MaBeee（マビー）<span class="fa fa-external-link external-icon anchor-icon"></span></a><img loading="lazy" decoding="async" style="border: 0px;" src="//i.moshimo.com/af/i/impression?a_id=1826192&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062" alt="" width="1" height="1" />」は、単3の乾電池で動くおもちゃやライトなどを、専用アプリでコントロールできる乾電池型IoT製品。</p>
<p>また、子ども向けプログラミング言語<b>Scratch（スクラッチ）</b>と接続することができるので、プログラミングの勉強にもなります。</p>
<p>この記事では、<a href="#howto">MaBeeeの基本的な使い方・遊び方</a>、<a href="#scratch">Scratchでプログラミングする方法</a>を初心者にも分かりやすいようていねいに紹介します。</p>
<!-- START MoshimoAffiliateEasyLink -->
<script type="text/javascript">
(function(b,c,f,g,a,d,e){b.MoshimoAffiliateObject=a;
b[a]=b[a]||function(){arguments.currentScript=c.currentScript
||c.scripts[c.scripts.length-2];(b[a].q=b[a].q||[]).push(arguments)};
c.getElementById(a)||(d=c.createElement(f),d.src=g,
d.id=a,e=c.getElementsByTagName("body")[0],e.appendChild(d))})
(window,document,"script","//dn.msmstatic.com/site/cardlink/bundle.js?20220329","msmaflink");
msmaflink({"n":"ノバルス 乾電池型IoT 《MaBeee》 単3電池形状 1本入 MB-3003WB1","b":"ノバルス","t":"MB-3003WB1","d":"https:\/\/m.media-amazon.com","c_p":"\/images\/I","p":["\/31JA945rh-L._SL500_.jpg","\/41A9T1TaV5L._SL500_.jpg","\/51f0AxjLWTL._SL500_.jpg","\/51Y09pT3+mL._SL500_.jpg","\/51msFAoTf5L._SL500_.jpg","\/51YGYbgFNKL._SL500_.jpg","\/51xLaWITpJL._SL500_.jpg"],"u":{"u":"https:\/\/www.amazon.co.jp\/dp\/B074KC6Z7Y","t":"amazon","r_v":""},"v":"2.1","b_l":[{"id":1,"u_tx":"Amazonで見る","u_bc":"#f79256","u_url":"https:\/\/www.amazon.co.jp\/dp\/B074KC6Z7Y","a_id":1826192,"p_id":170,"pl_id":27060,"pc_id":185,"s_n":"amazon","u_so":1},{"id":25,"u_tx":"楽天市場で見る","u_bc":"#f76956","u_url":"https:\/\/search.rakuten.co.jp\/search\/mall\/%E3%83%8E%E3%83%90%E3%83%AB%E3%82%B9%20%E4%B9%BE%E9%9B%BB%E6%B1%A0%E5%9E%8BIoT%20%E3%80%8AMaBeee%E3%80%8B%20%E5%8D%983%E9%9B%BB%E6%B1%A0%E5%BD%A2%E7%8A%B6%201%E6%9C%AC%E5%85%A5%20MB-3003WB1\/","a_id":1820957,"p_id":54,"pl_id":27059,"pc_id":54,"s_n":"rakuten","u_so":2},{"id":26,"u_tx":"Yahoo!ショッピングで見る","u_bc":"#66a7ff","u_url":"https:\/\/shopping.yahoo.co.jp\/search?first=1\u0026p=%E3%83%8E%E3%83%90%E3%83%AB%E3%82%B9%20%E4%B9%BE%E9%9B%BB%E6%B1%A0%E5%9E%8BIoT%20%E3%80%8AMaBeee%E3%80%8B%20%E5%8D%983%E9%9B%BB%E6%B1%A0%E5%BD%A2%E7%8A%B6%201%E6%9C%AC%E5%85%A5%20MB-3003WB1","a_id":1832853,"p_id":1225,"pl_id":27061,"pc_id":1925,"s_n":"yahoo","u_so":3}],"eid":"u4rGJ","s":"s"});
</script>
<div id="msmaflink-u4rGJ">リンク</div>
<!-- MoshimoAffiliateEasyLink END -->
<h2><span id="toc1">MaBeee（マビー）とは乾電池型のIoT製品</span></h2>
<p><iframe loading="lazy" title="通信する乾電池MaBeee （マビー）" width="1256" height="707" src="https://www.youtube.com/embed/gs6oVPBK_D4?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe></p>
<p style="text-align: right;"><span class="fz-14px">動画：YouTube「MaBeee」より</span></p>
<p><a rel="nofollow noopener" target="_blank" href="//af.moshimo.com/af/c/click?a_id=1826192&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062&amp;url=https%3A%2F%2Fwww.amazon.co.jp%2Fdp%2FB074KC6Z7Y">MaBeee（マビー）<span class="fa fa-external-link external-icon anchor-icon"></span></a><img loading="lazy" decoding="async" style="border: 0px;" src="//i.moshimo.com/af/i/impression?a_id=1826192&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062" alt="" width="1" height="1" />は、<span class="marker-under-red">単3の乾電池で動くおもちゃやライトなどを、専用アプリでコントロールできる乾電池型IoT製品</span>です。</p>
<p>MaBeeeの中に単4電池を入れ、単3電池で動く製品に入れるだけで、コントロール可能に。</p>
<p>ミニ四駆やプラレールなどモーターで動くおもちゃのスピードを変えたり、イルミネーションの光らせ方を自由に変化させたり、遊びの幅が広がりますよ。</p>
<p>また、<a rel="noopener" target="_self" href="https://living-maou.com/scratch-start/">Scratch（スクラッチ）<span class="fa fa-external-link internal-icon anchor-icon"></span></a>と接続することができるので、<span class="marker-under-red">プログラミングの勉強にもなります</span>。</p>
<p><span class="marker-under-red">Scratchに対応しているMaBeeeの型番は「<span style="color: #ff0000;"><b>MB-3003WB</b></span>」のみ</span>なので、購入する際は間違えないように気をつけてください。</p>
<!-- START MoshimoAffiliateEasyLink -->
<script type="text/javascript">
(function(b,c,f,g,a,d,e){b.MoshimoAffiliateObject=a;
b[a]=b[a]||function(){arguments.currentScript=c.currentScript
||c.scripts[c.scripts.length-2];(b[a].q=b[a].q||[]).push(arguments)};
c.getElementById(a)||(d=c.createElement(f),d.src=g,
d.id=a,e=c.getElementsByTagName("body")[0],e.appendChild(d))})
(window,document,"script","//dn.msmstatic.com/site/cardlink/bundle.js?20220329","msmaflink");
msmaflink({"n":"ノバルス 乾電池型IoT 《MaBeee》 単3電池形状 1本入 MB-3003WB1","b":"ノバルス","t":"MB-3003WB1","d":"https:\/\/m.media-amazon.com","c_p":"\/images\/I","p":["\/31JA945rh-L._SL500_.jpg","\/41A9T1TaV5L._SL500_.jpg","\/51f0AxjLWTL._SL500_.jpg","\/51Y09pT3+mL._SL500_.jpg","\/51msFAoTf5L._SL500_.jpg","\/51YGYbgFNKL._SL500_.jpg","\/51xLaWITpJL._SL500_.jpg"],"u":{"u":"https:\/\/www.amazon.co.jp\/dp\/B074KC6Z7Y","t":"amazon","r_v":""},"v":"2.1","b_l":[{"id":1,"u_tx":"Amazonで見る","u_bc":"#f79256","u_url":"https:\/\/www.amazon.co.jp\/dp\/B074KC6Z7Y","a_id":1826192,"p_id":170,"pl_id":27060,"pc_id":185,"s_n":"amazon","u_so":1},{"id":25,"u_tx":"楽天市場で見る","u_bc":"#f76956","u_url":"https:\/\/search.rakuten.co.jp\/search\/mall\/%E3%83%8E%E3%83%90%E3%83%AB%E3%82%B9%20%E4%B9%BE%E9%9B%BB%E6%B1%A0%E5%9E%8BIoT%20%E3%80%8AMaBeee%E3%80%8B%20%E5%8D%983%E9%9B%BB%E6%B1%A0%E5%BD%A2%E7%8A%B6%201%E6%9C%AC%E5%85%A5%20MB-3003WB1\/","a_id":1820957,"p_id":54,"pl_id":27059,"pc_id":54,"s_n":"rakuten","u_so":2},{"id":26,"u_tx":"Yahoo!ショッピングで見る","u_bc":"#66a7ff","u_url":"https:\/\/shopping.yahoo.co.jp\/search?first=1\u0026p=%E3%83%8E%E3%83%90%E3%83%AB%E3%82%B9%20%E4%B9%BE%E9%9B%BB%E6%B1%A0%E5%9E%8BIoT%20%E3%80%8AMaBeee%E3%80%8B%20%E5%8D%983%E9%9B%BB%E6%B1%A0%E5%BD%A2%E7%8A%B6%201%E6%9C%AC%E5%85%A5%20MB-3003WB1","a_id":1832853,"p_id":1225,"pl_id":27061,"pc_id":1925,"s_n":"yahoo","u_so":3}],"eid":"u4rGJ","s":"s"});
</script>
<div id="msmaflink-u4rGJ">リンク</div>
<!-- MoshimoAffiliateEasyLink END -->
<p>&nbsp;</p>
<h2 id="howto"><span id="toc2">MaBeeeの使い方・遊び方</span></h2>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2022/11/MaBeee01.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-4714" src="https://living-maou.com/wp-content/uploads/2022/11/MaBeee01.jpg" alt="MaBeeeの遊び方" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2022/11/MaBeee01.jpg 800w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee01-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee01-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee01-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee01-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee01-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee01-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<div class="blank-box bb-blue">
<ol>
<li>単4電池をセットしたMaBeeeをおもちゃに装着</li>
<li>おもちゃの電源を入れる</li>
<li>専用アプリとMaBeeeをBluetoothで接続</li>
<li>アプリからMaBeeeをコントロール</li>
</ol>
</div>
<div class="blank-box bb-tab bb-memo bb-red">電池を複数本使う製品でも<b>最大4本</b>までであれば、MaBeeeをひとつ入れるだけで使えます。</div>
<p>&nbsp;</p>
<p>専用アプリは4種類。振ったり、傾けたり、音量に反応したりすることで、乾電池の出力をコントロールできます。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2022/11/MaBeee03.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-4715" src="https://living-maou.com/wp-content/uploads/2022/11/MaBeee03.jpg" alt="MaBeee専用アプリ" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2022/11/MaBeee03.jpg 800w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee03-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee03-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee03-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee03-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee03-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee03-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<div class="blank-box bb-blue">
<ul>
<li>MaBeee &#8211; コントロール … 基本のアプリ</li>
<li>MaBeee &#8211; ライト … イルミネーション用</li>
<li>MaBeee &#8211; レーシング … 車レース型玩具用</li>
<li>MaBeee &#8211; トレイン … 電車型玩具用</li>
</ul>
</div>
<p>アプリは視覚的で分かりやすい作りになっているので、使い方に困ることはないと思います。</p>
<p>&nbsp;</p>
<h2 id="scratch"><span id="toc3">Scratch（スクラッチ）でプログラミングする方法</span></h2>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2022/11/MaBeee04.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-4717" src="https://living-maou.com/wp-content/uploads/2022/11/MaBeee04.png" alt="MaBeeeはScratchと接続してプログラミングできる" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2022/11/MaBeee04.png 800w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee04-500x281.png 500w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee04-300x169.png 300w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee04-768x432.png 768w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee04-120x68.png 120w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee04-160x90.png 160w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee04-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>MaBeeeは<a rel="noopener" target="_self" href="https://living-maou.com/scratch-start/">Scratch（スクラッチ）<span class="fa fa-external-link internal-icon anchor-icon"></span></a>と接続して、おもちゃやライトなどをプログラムで動かすことができます。</p>
<p>専用アプリではおおまかにしかコントロールできませんが、Scratchを使うと細かく制御できるようになります。</p>
<div class="blank-box bb-tab bb-memo bb-red">対応しているMaBeeeの型番は「<span style="color: #ff0000;"><b>MB-3003WB</b></span>」のみです。</div>
<div class="blank-box bb-blue">
<ol>
<li>Scratch Linkを起動する</li>
<li>MaBee対応版Scratch3.0（ブラウザ版）にアクセス</li>
<li>ScratchとMaBeeeを接続する</li>
<li>プログラムを作る</li>
</ol>
</div>
<p>&nbsp;</p>
<h3><span id="toc4">Scratch Linkをインストールする</span></h3>
<p>ScratchとMaBeeeを接続するには、パソコンに<b>Scratch Link</b>というアプリを入れる必要があります。</p>
<p><a rel="noopener" target="_blank" href="https://scratch.mit.edu/microbit">スクラッチリンクのサイト<span class="fa fa-external-link external-icon anchor-icon"></span></a>からインストーラーをダウンロード。インストーラーを実行してScratch Linkをインストールしてください。</p>
<p>「<a rel="noopener" target="_self" href="https://living-maou.com/scratch-scratchlink/">「Scratch Link」のダウンロードとインストール方法【Windows10】<span class="fa fa-external-link internal-icon anchor-icon"></span></a>」では、Scratch Linkのダウンロード～インストールまでの手順をくわしく紹介しています。</p>
<div class="blogcard-type bct-detail">

<a rel="noopener" target="_self" href="https://living-maou.com/scratch-scratchlink/" title="「Scratch Link」のダウンロードとインストール方法【Win10/Win11】" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://living-maou.com/wp-content/uploads/2022/11/eyecatch_scratch_link-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://living-maou.com/wp-content/uploads/2022/11/eyecatch_scratch_link-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2022/11/eyecatch_scratch_link-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2022/11/eyecatch_scratch_link-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2022/11/eyecatch_scratch_link-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2022/11/eyecatch_scratch_link-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2022/11/eyecatch_scratch_link-320x180.jpg 320w, https://living-maou.com/wp-content/uploads/2022/11/eyecatch_scratch_link.jpg 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">「Scratch Link」のダウンロードとインストール方法【Win10/Win11】</div><div class="blogcard-snippet internal-blogcard-snippet">micro:bitなど外部のデバイスと接続するために必要なソフト「Scratch Link」のダウンロード～インストールまでの手順を紹介。【リビングの魔王】では初心者にも分かりやすいようスクリーンショットを使って丁寧に紹介します。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://living-maou.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">living-maou.com</div></div></div></div></a>
</div>
<p>&nbsp;</p>
<h3><span id="toc5">スクラッチとMaBeeeを接続する</span></h3>
<h4>Scratch Linkを起動する</h4>
<p>スタートメニューから「Scratch Link」を選択し起動します。</p>
<p>ツールバーにScratch Linkのアイコンが表示されます。Bluetoothのアイコンも表示されているか確認しましょう。</p>
<p>Bluetoothがオフだった場合は、「スタートボタン」→「設定」→「デバイス」からオンにできます。（Windows)</p>
<p>&nbsp;</p>
<h4>MaBeee対応版Scratchにアクセスする</h4>
<p>MaBeeeをセットしたおもちゃの電源を入れておきましょう。</p>
<p>拡張機能は、<a rel="noopener" target="_blank" href="https://novars-jp.github.io/scratch-gui/">MaBeee対応版Scratch3.0（ブラウザ版）<span class="fa fa-external-link external-icon anchor-icon"></span></a>から使うことができます。</p>
<p>見た目は普通のScratchとほぼ同じです。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2022/11/MaBeee05.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-4718" src="https://living-maou.com/wp-content/uploads/2022/11/MaBeee05.png" alt="「拡張機能を追加」ボタンをクリック" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2022/11/MaBeee05.png 800w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee05-500x281.png 500w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee05-300x169.png 300w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee05-768x432.png 768w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee05-120x68.png 120w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee05-160x90.png 160w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee05-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>「拡張機能を追加」ボタンをクリック。</p>
<p>&nbsp;</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2022/11/MaBeee06.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-4719" src="https://living-maou.com/wp-content/uploads/2022/11/MaBeee06.png" alt="拡張機能「MaBeee」を追加" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2022/11/MaBeee06.png 800w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee06-500x281.png 500w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee06-300x169.png 300w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee06-768x432.png 768w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee06-120x68.png 120w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee06-160x90.png 160w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee06-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>拡張機能「MaBeee」を追加します。</p>
<p>少し待つと、接続可能なデバイスの一覧が表示されます。</p>
<p>&nbsp;</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2022/11/MaBeee07.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-4720" src="https://living-maou.com/wp-content/uploads/2022/11/MaBeee07.png" alt="「接続する」をクリック" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2022/11/MaBeee07.png 800w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee07-500x281.png 500w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee07-300x169.png 300w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee07-768x432.png 768w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee07-120x68.png 120w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee07-160x90.png 160w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee07-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>「接続する」をクリック。</p>
<p>接続に成功すると「接続されました」と表示されます。</p>
<p>&nbsp;</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2022/11/MaBeee08.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-4721" src="https://living-maou.com/wp-content/uploads/2022/11/MaBeee08.png" alt="「エディタ－へ行く」をクリック" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2022/11/MaBeee08.png 800w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee08-500x281.png 500w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee08-300x169.png 300w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee08-768x432.png 768w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee08-120x68.png 120w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee08-160x90.png 160w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee08-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>「エディタ－へ行く」をクリック。</p>
<p>左のブロック一覧に「MaBeee」という分類が追加され、MaBeeeの出力を制御するブロックが追加されます。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2022/11/MaBeee09.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-4722" src="https://living-maou.com/wp-content/uploads/2022/11/MaBeee09.png" alt="「MaBeee」という分類が追加される" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2022/11/MaBeee09.png 800w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee09-500x281.png 500w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee09-300x169.png 300w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee09-768x432.png 768w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee09-120x68.png 120w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee09-160x90.png 160w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee09-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>これで、プログラミングの準備ができました。</p>
<p>&nbsp;</p>
<h3><span id="toc6">ScratchからMaBeeeを切断する・再接続する</span></h3>
<p>MaBeee接続していると、MaBeeeのブロック一覧の横にチェックマークが表示されます。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2022/11/MaBeee10.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-4723" src="https://living-maou.com/wp-content/uploads/2022/11/MaBeee10.png" alt="ScratchからMaBeeeを切断する" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2022/11/MaBeee10.png 800w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee10-500x281.png 500w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee10-300x169.png 300w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee10-768x432.png 768w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee10-120x68.png 120w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee10-160x90.png 160w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee10-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>ScratchからMaBeeeを切断したいときは、ブロック一覧の横にあるチェックマークをクリックし、「切断する」をクリックします。</p>
<p>&nbsp;</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2022/11/MaBeee11.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-4724" src="https://living-maou.com/wp-content/uploads/2022/11/MaBeee11.png" alt="ScratchとMaBeeeを再接続する" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2022/11/MaBeee11.png 800w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee11-500x281.png 500w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee11-300x169.png 300w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee11-768x432.png 768w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee11-120x68.png 120w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee11-160x90.png 160w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee11-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>また接続し直したいときは、ブロック一覧の横にある「!」マークをクリックし、「接続する」をクリックします。</p>
<p>&nbsp;</p>
<h3><span id="toc7">プロジェクトの保存と読み込み</span></h3>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2022/11/MaBeee12.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-4725" src="https://living-maou.com/wp-content/uploads/2022/11/MaBeee12.png" alt="プロジェクトの保存と読み込み" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2022/11/MaBeee12.png 800w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee12-500x281.png 500w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee12-300x169.png 300w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee12-768x432.png 768w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee12-120x68.png 120w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee12-160x90.png 160w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee12-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>MaBeee対応版Scratchで作ったプログラムは、Scratchのサイトで共有できません。</p>
<p>「ファイル」→「コンピューターに保存する」でプロジェクトファイルを保存しておきましょう。</p>
<p>また使いたいときは、「ファイル」→「コンピューターから読み込む」で保存したプロジェクトファイルを開きます。</p>
<p>&nbsp;</p>
<h2><span id="toc8">イルミネーションをScratchでプログラミングしてみた</span></h2>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2022/11/MaBeee13.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-4726" src="https://living-maou.com/wp-content/uploads/2022/11/MaBeee13.jpg" alt="ライトとスクラッチの星がリンクして変化するプログラム" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2022/11/MaBeee13.jpg 800w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee13-500x281.jpg 500w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee13-300x169.jpg 300w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee13-768x432.jpg 768w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee13-120x68.jpg 120w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee13-160x90.jpg 160w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee13-320x180.jpg 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>ScratchからMaBeeeをコントロールしてみました。</p>
<p>イルミネーションライトとScratchのステージにある星がリンクして変化するプログラムです。</p>
<p><a rel="noopener" target="_self" href="https://living-maou.com/wp-content/uploads/2022/11/MaBeee14.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-4727" src="https://living-maou.com/wp-content/uploads/2022/11/MaBeee14.png" alt="ライトを制御するScratchのプログラム" width="800" height="450" srcset="https://living-maou.com/wp-content/uploads/2022/11/MaBeee14.png 800w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee14-500x281.png 500w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee14-300x169.png 300w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee14-768x432.png 768w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee14-120x68.png 120w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee14-160x90.png 160w, https://living-maou.com/wp-content/uploads/2022/11/MaBeee14-320x180.png 320w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>&nbsp;</p>
<h2><span id="toc9">まとめ</span></h2>
<p>「<a rel="nofollow noopener" target="_blank" href="//af.moshimo.com/af/c/click?a_id=1826192&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062&amp;url=https%3A%2F%2Fwww.amazon.co.jp%2Fdp%2FB074KC6Z7Y">MaBeee（マビー）<span class="fa fa-external-link external-icon anchor-icon"></span></a><img loading="lazy" decoding="async" style="border: 0px;" src="//i.moshimo.com/af/i/impression?a_id=1826192&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062" alt="" width="1" height="1" />」の使い方について紹介しました。</p>
<p>単3電池で動くものであればOKなので、色々なものに使えて飽きることがないのがいいと思いました。また、小学生になじみのあるScratchでプログラミングできるのもいいですね。</p>
<p>ぜひお気に入りのおもちゃで試してみてください。</p>
<!-- START MoshimoAffiliateEasyLink -->
<script type="text/javascript">
(function(b,c,f,g,a,d,e){b.MoshimoAffiliateObject=a;
b[a]=b[a]||function(){arguments.currentScript=c.currentScript
||c.scripts[c.scripts.length-2];(b[a].q=b[a].q||[]).push(arguments)};
c.getElementById(a)||(d=c.createElement(f),d.src=g,
d.id=a,e=c.getElementsByTagName("body")[0],e.appendChild(d))})
(window,document,"script","//dn.msmstatic.com/site/cardlink/bundle.js?20220329","msmaflink");
msmaflink({"n":"ノバルス 乾電池型IoT 《MaBeee》 単3電池形状 1本入 MB-3003WB1","b":"ノバルス","t":"MB-3003WB1","d":"https:\/\/m.media-amazon.com","c_p":"\/images\/I","p":["\/31JA945rh-L._SL500_.jpg","\/41A9T1TaV5L._SL500_.jpg","\/51f0AxjLWTL._SL500_.jpg","\/51Y09pT3+mL._SL500_.jpg","\/51msFAoTf5L._SL500_.jpg","\/51YGYbgFNKL._SL500_.jpg","\/51xLaWITpJL._SL500_.jpg"],"u":{"u":"https:\/\/www.amazon.co.jp\/dp\/B074KC6Z7Y","t":"amazon","r_v":""},"v":"2.1","b_l":[{"id":1,"u_tx":"Amazonで見る","u_bc":"#f79256","u_url":"https:\/\/www.amazon.co.jp\/dp\/B074KC6Z7Y","a_id":1826192,"p_id":170,"pl_id":27060,"pc_id":185,"s_n":"amazon","u_so":1},{"id":25,"u_tx":"楽天市場で見る","u_bc":"#f76956","u_url":"https:\/\/search.rakuten.co.jp\/search\/mall\/%E3%83%8E%E3%83%90%E3%83%AB%E3%82%B9%20%E4%B9%BE%E9%9B%BB%E6%B1%A0%E5%9E%8BIoT%20%E3%80%8AMaBeee%E3%80%8B%20%E5%8D%983%E9%9B%BB%E6%B1%A0%E5%BD%A2%E7%8A%B6%201%E6%9C%AC%E5%85%A5%20MB-3003WB1\/","a_id":1820957,"p_id":54,"pl_id":27059,"pc_id":54,"s_n":"rakuten","u_so":2},{"id":26,"u_tx":"Yahoo!ショッピングで見る","u_bc":"#66a7ff","u_url":"https:\/\/shopping.yahoo.co.jp\/search?first=1\u0026p=%E3%83%8E%E3%83%90%E3%83%AB%E3%82%B9%20%E4%B9%BE%E9%9B%BB%E6%B1%A0%E5%9E%8BIoT%20%E3%80%8AMaBeee%E3%80%8B%20%E5%8D%983%E9%9B%BB%E6%B1%A0%E5%BD%A2%E7%8A%B6%201%E6%9C%AC%E5%85%A5%20MB-3003WB1","a_id":1832853,"p_id":1225,"pl_id":27061,"pc_id":1925,"s_n":"yahoo","u_so":3}],"eid":"u4rGJ","s":"s"});
</script>
<div id="msmaflink-u4rGJ">リンク</div>
<!-- MoshimoAffiliateEasyLink END -->
]]></content:encoded>
					
					<wfw:commentRss>https://living-maou.com/mabeee-review/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
