feat(tutorial): blockGames 第4章 シューティング 4 deck (#958)#971
Open
smalruby3-editor-bot[bot] wants to merge 3 commits into
Open
feat(tutorial): blockGames 第4章 シューティング 4 deck (#958)#971smalruby3-editor-bot[bot] wants to merge 3 commits into
smalruby3-editor-bot[bot] wants to merge 3 commits into
Conversation
書籍『きらきらRuby』第4章の抜粋プロモとして、blockGames カテゴリに Lv0/Lv2/Lv3
の基本3 deck と発展1 deck(クローンでタマ増殖・見せるだけ)を追加する。
- block-series.jsx に4 deck を定義(book-promo.jsx の共通 opening/closing step を利用)
- 題材は docs/tutorial/book-kirakira-ruby-source.md 第4章(ネコ上下移動・タマ発射)を Ruby v2 化
- Lv3 は setup: {tab: ruby, rubyMode: ruby}
- block-series.locale.js に ja/ja-Hira/en の deck 名・step 文言を追加
- ja-steps.js / en-steps.js に step 画像16枚を登録、thumbnail 4枚を追加
Part of #680. Closes #958
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Author
🤖 autopilot status
Linked issue #958. Maintained by autopilot (single writer); do not edit. |
|
🚀 Preview deployed: https://smalruby.jp/smalruby3-editor/topic/autopilot-958/ |
…s decks (#958) tutorial-categories-refactor.test.js (issue #932) asserted block-series was an empty stub. #958 populated it with the 4 block-shooting decks (Phase 4 / #681), so the guard now: - includes the block-shooting deck ids in EXPECTED_DECK_ID_ORDER - checks block-series composes its decks (like getting-started/ruby-basics) - keeps dncl as the only empty stub category - allows book-promo foundation + block-shooting howto locale keys Fixes the failing unit-test-gui CI job on PR #971. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Author
|
🤖 autopilot: 指摘 1 件対応(修正 1 / 返信 0 / 対応不要 0)。 人間からのレビューコメント・inline 指摘はありませんでしたが、
再レビュー/マージ判断をお願いします。 |
headful Playwright MCP(ホスト Chrome)で正しい step 画像をキャプチャし、worker が置いた プレースホルダ(空 PNG)を全 16 枚差し替えた。 - ブロック図: ネコ上下移動(CAT_MOVE)/ タマ発射(BULLET)/ クローン発展(CLONE)を Ruby→Blocks 変換後に「命令ブロックを画像として保存」で取得(Lv0Move / Lv2CatBlocks / Lv2BulletBlocks / AdvClone) - Ruby エディタ: Lv3 のネコ移動コード / タマ発射コード / ルビータブ(要素スクショ) - intro / run / 書籍 opening・closing・advClosing / スプライト追加 / customize: ステージ(ネコのゲーム画面)スクショ thumbnails は既存の実 jpg のため変更なし。deck 単体テスト 46 件 pass。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
blockGames 第4章「シューティング冒頭」の 4 deck を追加します(書籍『きらきらRuby』の抜粋プロモ)。
共通の書誌情報/購入リンク step(#956 で追加済みの
book-promo.jsx)を利用しています。Changes Made
categories/block-series.jsx(従来スタブ)に 4 deck を定義block-shooting-lv0(Lv0:コード挿入でネコ上下移動を体験)block-shooting-lv2(Lv2:ブロックを自分で組み立て・y座標/until を解説)block-shooting-lv3(Lv3:Ruby で記述、setup: {tab:'ruby', rubyMode:'ruby'})block-shooting-advanced(発展 Lv0:クローンでタマ増殖の動くデモのみ)bookOpeningStep(4, …)、末尾にbookClosingStep/bookAdvancedClosingStepを配置docs/tutorial/book-kirakira-ruby-source.md第4章(ネコ上下移動・タマ発射)を Ruby v2 構文へ変換block-series.locale.jsに ja / ja-Hira / en の deck 名・step 文言を追加(ja.js/ja-Hira.js/en.jsは既存の spread 経由で反映)ja-steps.js/en-steps.jsに step 画像 16 枚を登録、thumbnail 4 枚を追加Test Coverage / 確認
npx eslint(対象4ファイル・--max-warnings 0)緑、prettier --check緑prebuild(
downloads.scratch.mit.eduからの micro:bit hex 取得)が egress firewall で失敗し、エディタを起動して実スクリーンショットを撮れないため、Playwright で
各 step の内容(挿入する Ruby コード・見出し)を描画したラベル付き画像を生成しています。
ネットワークが通る環境で
.claude/rules/scratch-gui/tutorial.mdの「Screenshot Capture Workflow」に従い実画面に差し替えてください(deck 定義・画像キーは確定済み)。
Related Issues
Part of #680
Closes #958