Home›GitHub Copilot›GitHub Copilot CLIで作る手続き生成型ローグライク
Dungeons & Desktops: Building a procedurally generated roguelike with GitHub Copilot CLI

GitHub Copilot CLIで作る手続き生成型ローグライクDungeons & Desktops: Building a procedurally generated roguelike with GitHub Copilot CLI

元記事を読むRead original articlegithub.blog(新しいタブで開きます)(opens in a new tab)
AI2 点サマリSummary highlight
  • GitHubのエンジニアが、Copilot CLIを使い任意のコードベースをダンジョンに変換するローグライク拡張機能を開発する過程を紹介。
  • 自然言語プロンプトでゲームロジックや描画を実装し、AI支援ホビー開発の実例を示している。

A Hubber used GitHub Copilot CLI to build an extension turning any codebase into a procedurally generated roguelike dungeon, showing how natural-language prompts enable AI-assisted hobby coding.

本ページの本文と要約は AI による自動生成です。日本語版と英語版は言語ごとに独立して生成されるため、表現や詳しさが異なる場合があります。正確性は元記事 (github.blog) をご確認ください。The body and summaries are AI-generated independently for each language, so wording and detail may differ. Verify accuracy at the original source (github.blog).

要約と収集メタデータに基づく AI 解説。元記事全文の転載・翻訳ではありません。AI explainer based on the summaries and collected metadata, not a copy or translation of the full source article.

GitHubのエンジニアが、GitHub Copilot CLIを使い、コードベースをプレイ可能なローグライクのダンジョンへ変換する拡張機能を開発した。自然言語のプロンプトによってゲームロジックや描画を実装する、AI支援ホビー開発の実例だ。

コードベース

開発の出発点は、現在のリポジトリをローグライクのダンジョンへ変換するGitHub CLI拡張機能をGoで作る、というシンプルなプロンプトだった。ダンジョンの生成にはBSPを用いるよう指定されている。完成した「GitHub Dungeons」は、リポジトリをもとに部屋、通路、敵を備えたマップを生成する。

ターミナル

ゲーム画面はターミナル内に直接描画される。プレイヤーは矢印キーでダンジョンを移動し、バグと戦いながら出口を探す。HPがゼロになると最初からやり直しとなるため、探索と戦闘を続けつつ出口へ到達することが目的になる。

リポジトリ

生成されるマップはリポジトリごとに異なり、同じコードベースでもコミットが行われるたびにレイアウトが変化する。コードベースを単なる題材として扱うのではなく、ダンジョンそのものを生成する材料として利用している点が、この拡張機能の中心的な仕組みである。

/yolo

開発ではCopilot CLIの「/yolo」も使用された。「/yolo」は「/allow-all」の別名で、「you only live once」を意味する。永久死を中心に据え、HPを失えば最初からやり直すローグライクのゲーム性とも対応したコマンド名になっている。

GitHub Dungeons

A Hubber used GitHub Copilot CLI to build an extension that turns a codebase into a procedurally generated roguelike dungeon. The project matters as an example of AI-assisted hobby coding in which natural-language prompts help implement game logic and terminal rendering.

GitHub Dungeons is a playable terminal game generated from the current repository. It creates rooms, corridors, and enemies from the codebase, then renders the resulting dungeon directly in the terminal.

A Simple Prompt

The project began with a prompt asking Copilot CLI to build a GitHub CLI extension in Go. The extension was instructed to take the current repository and transform it into a playable roguelike dungeon, with dungeons generated using BSP.

From that initial natural-language instruction, the project developed into a game with navigation, combat, and an objective. The player moves with the arrow keys, fights bugs, and searches for the exit. If the player’s HP reaches zero, the run starts over.

Every Repository Produces Differently

The codebase is part of the dungeon-generation process rather than merely the location where the game is stored. Every repository produces a different map, giving each codebase its own arrangement of rooms and corridors.

The layout is also tied to the repository’s changing state. Every commit reshapes the map, so changes to the codebase are reflected in the generated dungeon.

You Only Live Once

The development process also used the Copilot CLI command /yolo. The command means “you only live once” and is an alias for /allow-all.

That name aligns with the game’s roguelike structure, which is built around permadeath. The player has one life during a run, and losing all HP means beginning again.

ポコとTECHガイドPoko & TECH Guide

ポコと当サイトのTECHガイドが、記事の要約と収集した情報から読みどころを語るAI生成の対話です。Poko and TECH Dashboard's own TECH Guide discuss the article's highlights in an AI-generated conversation based on its summary and collected source details.

  1. ポコPoko普段コードを書くとき、これは何が変わるの?自分のリポジトリが、そのまま遊べるゲームになるってこと?What changes when I’m coding day to day? Does my repository literally become a game I can play?
  2. TECHガイドTECH Guideこの記事では、自然言語で指示し、コードベースから部屋や通路、敵を作るゲームを実装しておる。端末上で移動し、バグと戦って出口を探せるのじゃ。The post shows natural-language prompts building a game from a codebase, complete with rooms, corridors, and enemies. You play in the terminal, fight bugs, and search for the exit.
  3. ポコPokoへえ、すごい!でも前は、自然言語だけでこういうゲームを作れなかったの?Wow, that’s wild! But couldn’t people build a game like this with natural-language instructions before?
  4. TECHガイドTECH Guide以前は不可能だった、とは書かれておらんよ。今回はGitHub Copilot CLIへのプロンプトと、許可をまとめて与える「/yolo」で開発した例なんじゃ。The post doesn’t say it was impossible before. This example was built through GitHub Copilot CLI prompts and “/yolo,” a command that grants all permissions.
  5. ポコPokoつまり一番の収穫は、コードがゲームの材料になって、コミットするたびにダンジョンの形まで変わる面白さだね!So the big takeaway is that your code becomes game material, and every commit can reshape the dungeon. That sounds fun!
  6. TECHガイドTECH Guideそうじゃのう。次に注目したいのは、リポジトリごとに異なるマップが生まれ、更新で配置がどう変わるかという点じゃ。Exactly. The next thing to watch is how each repository produces a different map, and how the layout changes as commits reshape it.
記事情報・収集記録Article details & collection record
出典Source
GitHub Copilot Blog公式Official
公開日時 (JST)Published (JST)
収集日時 (JST)Collected (JST)
配信形式Format
ブログBlog
原文言語Source language
EN
重要度の位置づけImportance in this lane
InfoInformational(GitHub Copilot 218件中、同等以上 218件)(218 of 218 GitHub Copilot entries are equal or higher)
出典の平均重要度(掲載直近 30 件・最大 30 件)Source average (last 30 listed, up to 30)
1.7 / 31=情報 · 2=中 · 3=高1=Info · 2=Medium · 3=High
情報の寿命Half-life
長期 (アーキテクチャ)Long-term (architecture)

🧠GitHub Copilot の他の記事More from GitHub Copilotもっと見る →View more →

ページ上部へScroll to top