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
AWKで動くへっぽこテトリスクローン / Tetris clone in AWK
Search
KUSANAGI Mitsuhisa
March 17, 2018
Programming
1.5k
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
AWKで動くへっぽこテトリスクローン / Tetris clone in AWK
AWKで実装したテトリス風ゲームAWKTCについて(2018/03/26修正)
* GitHubリポジトリ:
https://github.com/mikkun/AWKTC
KUSANAGI Mitsuhisa
March 17, 2018
More Decks by KUSANAGI Mitsuhisa
See All by KUSANAGI Mitsuhisa
ラズパイ用シェルスクリプトで監視カメラもどきを作る / Shell Script for Raspberry Pi
mikkun
0
1.1k
JavaScript製シューティングゲームをフルスクラッチで作ってみた / JavaScript Shooter Game from Scratch
mikkun
0
2.3k
シェルスクリプトでGnuCashを使いやすく / About gnucash-util-jp
mikkun
0
1.8k
Other Decks in Programming
See All in Programming
AWS CDKのカスタムリソースでContinuum(旧Security Agent)を実装した話 | Implementing Continuum (formerly Security Agent) via AWS CDK Custom Resource
akihisaikeda
2
130
wkhtmltopdfの次どうするか問題2026
willnet
2
1.8k
20260914 AIエージェント時代のPlatform Engineering LLM基盤とプロダクトの責務境界線
kanfab1
7
2.4k
Heart of Swift Concurrency
koher
0
1.2k
WebRTC映像をAirPlayに対応させる挑戦.pdf
monolithic_adam
0
340
速習iPhone Duo対応
yuukiw00w
2
960
Are APIs Still Relevant in the AI Era?
soyuka
0
420
AI が書く Go コードの品質を劇的に向上させる Linter: “declscope”
mpyw
0
480
Streamlitで実現する自然言語データアプリ開発
ayumu_yamaguchi
1
340
技術的負債を組織課題として解く-増えすぎたマイクロサービスとの戦い-
reimaru
1
2.8k
Simple Storage Service(S3) is not simple
iwatsukayura
0
190
AWSに止められる覚悟してますか?
morizo_1984
2
510
Featured
See All Featured
Embracing the Ebb and Flow
colly
88
5.2k
30 Presentation Tips
portentint
PRO
1
420
KATA
mclloyd
PRO
35
16k
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
480
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
470
The Spectacular Lies of Maps
axbom
PRO
1
1.1k
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
2
930
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
320
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
570
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
390
The Language of Interfaces
destraynor
162
27k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
450
Transcript
AWK で動くへっぽこテトリスクローン KUSANAGI Mitsuhisa (@mikkun_ jp) 2018年 3月17日 (2018年 3月26日
修正版) 第34回シェル芸勉強会 LT大会
日柳 光久 とは 非エンジニアのおっさん 個人事業主 / ラベル印刷業 (製品例) ホビープログラマ &
シェル芸人見習い AWK で動くへっぽこテトリスクローン 2
AWKTC とは AWKTC is Workable Klutzy Time-wasting Command (AWKTC は動作可能なへっぽこで時間を無駄にするコマンド)
端末 (黒い画面) 上で遊べるテトリス風 CLI ゲーム ゲーム画面はアスキーアートで表現 フィールドの幅を変更可能 (4〜24列) 動作を確認した OS: Debian GNU/Linux 9 FreeBSD 11.1-RELEASE 最新版 (v1.1.1) ではお助けアイテムと全消しボーナスを実装 AWK で動くへっぽこテトリスクローン 3
ゲーム画面 (1) $ . / a w k t c
. a w k # 既定値 ( 1 2 列) AWK で動くへっぽこテトリスクローン 4
ゲーム画面 (2) $ . / a w k t c
. a w k 4 # 最小値 ( 4 列) AWK で動くへっぽこテトリスクローン 5
ゲーム画面 (3) $ . / a w k t c
. a w k 2 4 # 最大値 ( 2 4 列) AWK で動くへっぽこテトリスクローン 6
得られたこと 1. g a w k の l
i n t オプションは便利 (終了の際にパイプを閉じた時の警告以外は出ないようにした) 2. AWK のようなテキスト処理言語でもゲームは作れる 3. しかし sed で書くほどの根性は持ち合わせていなかった 4. 「黒い画面」は楽しい (個人差あり) 5. 仕事中に a w k t c . a w k を実行してはいけない AWK で動くへっぽこテトリスクローン 7
URLs: AWKTC のリポジトリ: https://github.com/mikkun/AWKTC このスライド: https://speakerdeck.com/mikkun/tetris-clone-in-awk ――ご清聴ありがとうございました。 AWK で動くへっぽこテトリスクローン 8