Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
脱出ゲームのすゝめ
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
kokuyouwind
April 11, 2016
Programming
70
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
脱出ゲームのすゝめ
脱出ゲームを作ったので、それをPRするLTスライドです。
https://github.com/kokuyouwind/escape-from-the-repository
kokuyouwind
April 11, 2016
More Decks by kokuyouwind
See All by kokuyouwind
疑似コードによるプロンプト記述、どのくらい正確に実行される?
kokuyouwind
0
610
謎解きサイトを Rails SPA で作って RubyKaigi で配布した話
kokuyouwind
0
99
ドメイン指定Cookieとサービス間共有Redisで作る認証基盤サービス
kokuyouwind
0
47
Do LLMs dream of Type Inference?
kokuyouwind
0
50
Let's use LLMs from Ruby 〜 Refine RBS types using LLM 〜
kokuyouwind
0
8.7k
APMをちゃんと使おうとしたら、いつのまにか独自gemを作っていた話
kokuyouwind
0
990
RBS meets LLMs - Type inference using LLM
kokuyouwind
0
1.1k
オンラインボードゲームを作りたい人生だった
kokuyouwind
0
720
1年間本番運用してわかった、スタートアップこそAWS Copilot CLIを使うべきNつの理由
kokuyouwind
2
12k
Other Decks in Programming
See All in Programming
パズルゲームの作り方 / how to make puzzle games
kaityo256
PRO
2
260
GitHubハンズオン講座 — 実務レベルのチーム開発のフローを身につけよう
junhat6
0
110
App Intentsのビルドプロセスを支える技術
kntkymt
0
490
SREの越境 / SRE Collaboration
y0hgi
2
290
Workers Cache を知る
syumai
0
320
JAWS-UG 東京支部が始める、JAWS-UG支部コラボ / JAWS-UG lunchtime LT Collaboration
y0hgi
0
170
速習iPhone Duo対応
yuukiw00w
2
910
ゲームコントローラやキーボードのファームウェアをSwiftで書く
kishikawakatsumi
1
270
JRuby: Past, Present, and Future
headius
0
210
世界の中心で、AI(App Intents)をさけぶ ー App Intents中心設計の実践ガイド
touyou
0
740
iOSDCのペンライトを自動制御したい!
akkeylab
0
320
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
370
Featured
See All Featured
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
203
76k
Product Roadmaps are Hard
iamctodd
55
13k
The Pragmatic Product Professional
lauravandoore
37
7.5k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.6k
Exploring anti-patterns in Rails
aemeredith
4
520
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
3
1.3k
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.2k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
510
Unsuck your backbone
ammeep
672
58k
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
74
42k
Building Applications with DynamoDB
mza
96
7.2k
Skip the Path - Find Your Career Trail
mkilby
1
240
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