Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
脱出ゲームのすゝめ
Search
kokuyouwind
April 11, 2016
Programming
0
57
脱出ゲームのすゝめ
脱出ゲームを作ったので、それをPRするLTスライドです。
https://github.com/kokuyouwind/escape-from-the-repository
kokuyouwind
April 11, 2016
Tweet
Share
More Decks by kokuyouwind
See All by kokuyouwind
Let's use LLMs from Ruby 〜 Refine RBS types using LLM 〜
kokuyouwind
0
7.3k
APMをちゃんと使おうとしたら、いつのまにか独自gemを作っていた話
kokuyouwind
0
840
RBS meets LLMs - Type inference using LLM
kokuyouwind
0
890
オンラインボードゲームを作りたい人生だった
kokuyouwind
0
580
1年間本番運用してわかった、スタートアップこそAWS Copilot CLIを使うべきNつの理由
kokuyouwind
2
11k
なるべく楽したいAWSセキュリティ
kokuyouwind
1
80
Railsパフォーマンス・チューニング入門
kokuyouwind
0
330
Rubyパターンマッチに闇の力が備わり最強に見える
kokuyouwind
0
130
Slackワークフロー活用術
kokuyouwind
0
120
Other Decks in Programming
See All in Programming
Leading Effective Engineering Teams in the AI Era
addyosmani
7
680
エンジニアインターン「Treasure」とHonoの2年、そして未来へ / Our Journey with Hono Two Years at Treasure and Beyond
carta_engineering
0
470
contribution to astral-sh/uv
shunsock
0
570
Researchlyの開発で参考にしたデザイン
adsholoko
0
100
Node-REDのノードの開発・活用事例とコミュニティとの関わり(Node-RED Con Nagoya 2025)
404background
0
110
CSC305 Lecture 11
javiergs
PRO
0
320
Vueのバリデーション、結局どれを選べばいい? ― 自作バリデーションの限界と、脱却までの道のり ― / Which Vue Validation Library Should We Really Use? The Limits of Self-Made Validation and How I Finally Moved On
neginasu
3
1.7k
Reactive Thinking with Signals and the Resource API
manfredsteyer
PRO
0
120
Webサーバーサイド言語としてのRustについて
kouyuume
1
5k
ビルドプロセスをデバッグしよう!
yt8492
0
170
One Enishi After Another
snoozer05
PRO
0
170
Inside of Swift Export
giginet
PRO
1
260
Featured
See All Featured
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Typedesign – Prime Four
hannesfritz
42
2.8k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
31
2.7k
The World Runs on Bad Software
bkeepers
PRO
72
11k
Building an army of robots
kneath
306
46k
How To Stay Up To Date on Web Technology
chriscoyier
791
250k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
10
630
jQuery: Nuts, Bolts and Bling
dougneiner
65
7.9k
Reflections from 52 weeks, 52 projects
jeffersonlam
355
21k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
2
210
XXLCSS - How to scale CSS and keep your sanity
sugarenia
249
1.3M
Transcript
脱出ゲームのすゝめ 黒曜 @kokuyouwind
$ whoami 黒曜 / 株式会社Misoca に転職して半年 ふだんのギークバーは初 アナログゲームナイトによく出没 現職: Ruby
on Rails/React 前職: PHP/Scala 趣味: OCaml @kokuyouwind
さくらインターネットとも コミュニティとも 全く関係ない話をします
リアル脱出ゲーム http://realdgame.jp/
リアル脱出ゲーム http://realdgame.jp/ ある部屋にあなたは突然閉じ込められる。 周りには同じ境遇の⼈たちがたくさんいる。 部屋にはさまざまなアイテム、暗号、パズルが隠されているようだ。 暗号を解き、鍵を開き、箱を開け、 制限時間内に最後の鍵を⼿に⼊れることができれば あなたは脱出に成功する。
楽しい! ⾃分も作りたい!
作った
作った プログラマ向けの謎解き Github で公開 ファイルを編集したり コマンドを打ったりして 進⾏するゲーム プログラミング系の知識 脱出ゲームのひらめき git
ならではの仕掛け https://github.com/kokuyouwind/escape-from-the-repository
例題
例題 アクセサヒープクラスフラグ マクロコンパイラマージクロージャ アセンブラバブルブールコメント 整列の前後を読め
例題 アクセサヒープクラスフラグ マクロコンパイラマージクロージャ アセンブラバブルブールコメント 整列の前後を読め ( ソート)
例題 アクセサヒープクラスフラグ マクロコンパイラマージクロージャ アセンブラバブルブールコメント 整列の前後を読め ( ソート)
例題 アクセサヒープクラスフラグ マクロコンパイラマージクロージャ アセンブラバブルブールコメント 整列の前後を読め ( ソート)
例題 アクセサヒープクラスフラグ マクロコンパイラマージクロージャ アセンブラバブルブールコメント 整列の前後を読め ( ソート) 答え:さくらクラブ
「謎解きを作る」という謎解き
謎解きを作るという謎解き Q. 正しい⼊⼒のときだけ出⼒が得られるスクリプトを書け。 ただし、ファイルを⾒ただけでは⼊⼒も出⼒も わからないようにせよ。 また、1 スクリプトに対し正しい⼊⼒は数種類あり、 それぞれ別の出⼒を返すようにせよ。
謎解きを作るという謎解き $ cat key invalid $ ./run.sh error: invalid key
$ echo 'key1' > key $ ./run.sh これは正しいkey です $ echo 'key2' > key $ ./run.sh これは別の正しいkey です
謎解きを作るという謎解き #!/bin/sh cd `dirname $0` file=$(md5sum key | cut -c
1) openssl aes-256-cbc -d -in data/$f -pass file:key
謎解きを作るという謎解き
謎解きを作るという謎解き Q. 正しいkey を設定したはずなのに復号に失敗した。 なぜか。
謎解きを作るという謎解き Q. 正しいkey を設定したはずなのに復号に失敗した。 なぜか。 A. key の終端に改⾏が⼊っていた。 openssl ではpass
は最初の⾏しか使⽤しないが、 md5sum 値が変わって別の⼊⼒ファイルを⾒ていた。
謎解きを作るという謎解き #!/bin/sh cd `dirname $0` cat key | tr -d
'\n' > key file=$(md5sum key | cut -c 1) openssl aes-256-cbc -d -in data/$f -pass file:key
謎解きを作るという謎解き Q. ファイルを実⾏したらkey ファイルが空になった。 なぜか。
謎解きを作るという謎解き Q. ファイルを実⾏したらkey ファイルが空になった。 なぜか。 A. 出⼒ファイルは新規モードでオープンするので、 ⼊⼒が空になった。
謎解きを作るという謎解き #!/bin/sh cd `dirname $0` cat key | tr -d
'\n' > key2; mv ke file=$(md5sum key | cut -c 1) openssl aes-256-cbc -d -in data/$f -pass file:key
謎解きを作るという謎解き 他にも⾊々ありましたが、時間がないので割愛…
まとめ 作ったので遊んでみてね! 謎を解くのも楽しいけど、謎を作るのも楽しい ただしシェルスクリプトはつらい 新しい謎解きゲームも考えていきたい 協⼒者募集!( 制作とかテストプレイヤーとか) https://github.com/kokuyouwind/escape-from-the-repository