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
ガチャを巡る闘い / War of Gacha
Search
KSK
July 16, 2018
0
97
ガチャを巡る闘い / War of Gacha
KSK
July 16, 2018
Tweet
Share
More Decks by KSK
See All by KSK
Supernova Studio 使いはじめてみたら割と良さそう / supernova_studio
ksk1030m
1
830
CSV出力 - Viewからやるか? 他からやるか? / How to output CSV
ksk1030m
1
610
4画面出力とレシート印刷で作る体験型デジタルサイネージ / Unity signage
ksk1030m
1
3.1k
実録リファラル採用-僕と副社長の1827日- / my referral
ksk1030m
0
1.2k
GitLabを仕事で使っていた私が思うことをつらつらと / about GitLab
ksk1030m
1
990
エンジニア目線で考えるPR戦略 / PR by Engineer
ksk1030m
1
1.4k
Metabase ライブ環境構築 / metabase_live_coding
ksk1030m
0
340
昔の自分に伝えたい容量回復のためのDockerの仕組み / docker_tips
ksk1030m
1
540
Capistranoの罠と他人がハマった事例を見て思うこと / capistrano-trap
ksk1030m
0
310
Featured
See All Featured
Agile that works and the tools we love
rasmusluckow
329
21k
Why You Should Never Use an ORM
jnunemaker
PRO
59
9.5k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
4 Signs Your Business is Dying
shpigford
184
22k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
34
6k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
358
30k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
30
9.6k
Navigating Team Friction
lara
189
15k
A Modern Web Designer's Workflow
chriscoyier
695
190k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
50
5.5k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
48
9.6k
GitHub's CSS Performance
jonrohan
1031
460k
Transcript
ΨνϟΛ८Δಆ͍ ksk1030 @δϟϯϧෆͷେLTେձ / 2018.07.20
ࠓͷ͓ ΨνϟΛ࡞Δͱ͖ʹى͖ͦ͏ͳ͜ͱˍͦͷରԠ ͢͜ͱ ɹ- ։ൃΛਐΊ্͍ͯ͘Ͱͷߟ͑ํ ͞ͳ͍͜ͱ ɹ- ϩδοΫઃܭͷৄࡉ
ઌʹ·ͱΊ ɾఆٛΛ໌֬ʹ ɾૣ͗͢Δ࠷దԽ͠ͳ͍ ɾޙͰରԠ͢Δࡍͷίετ͚ͩݟੵ͓ͬͯ͘
͜ͱͷൃ Ψνϟ࡞ͬͯཉ͍ͬ͠εʂ ී௨ͳػೳೖͬͯΔײ͡Ͱ
࡞ͬͯΈ·ͨ͠
ɹGachaʹఆٛ͞ΕͨcostΛදࣔ ɹLotteryBox͔ΒϥϯμϜͰItemΛநબ
ಆ͏ऀୡ ҧ͏ҧ͏ʂ
ΞΠςϜ͝ͱͷॏΈ͚ ඞཁͰ͠ΐʁ 10࿈ʁ ϨΞϦςΟ͝ͱͷ ͍֬ΔΑͶ ಆ͏ऀୡ
Αݴ͑ ࡞ͬͯΈ·ͨ͠
ɹPlanͷemissionNumͰ1ݸͱ͔10ݸͱ͔ഉग़Λఆٛ ɹLotterItem / LotteryRarityͷweightͰॏΈ͚
ߋʹಆ͏ऀୡ ҰఆظؒϨΞ5֬ 2ഒͱ͔͋ΓͩΘʔ ͑ɺવϝϯςͳ͠Ͱ ΓସΘΔΑͶʁ ͜ͷ3ؒݶఆͰग़Δ ΞΠςϜͱ͔Γ͍ͨ
ߋʹߋʹಆ͏ऀୡ ҰఆظؒϨΞ5֬ 2ഒͱ͔͋ΓͩΘʔ ͑ɺવϝϯςͳ͠Ͱ ΓସΘΔΑͶʁ ͜ͷ3ؒݶఆͰग़Δ ΞΠςϜͱ͔Γ͍ͨ কདྷతʹBoxΨνϟ Γ͍ͨΑͶ 10࿈ͷ߹ߴϨΞϦςΟ
1ຕ֬ఆɺͬͯͷݕ౼͍ͨ͠
ߋʹߋʹಆ͏ऀୡ ҰఆظؒϨΞ5֬ 2ഒͱ͔͋ΓͩΘʔ ͑ɺવϝϯςͳ͠Ͱ ΓସΘΔΑͶʁ ͜ͷ3ؒݶఆͰग़Δ ΞΠςϜͱ͔Γ͍ͨ কདྷతʹBoxΨνϟ Γ͍ͨΑͶ 10࿈ͷ߹ߴϨΞϦςΟ
1ຕ֬ఆɺͬͯͷݕ౼͍ͨ͠ άϩʔεͷجຊग़ͯ͠վળͷ܁Γฦ͠ ɹ- ΤϯλϝܥίϯςϯπͳΒͳ͓͞Β ະདྷͷ͜ͱΘ͔Βͳ͍ ػೳ૿͍͑ͯ͘ɺมߋʹ͑͏ΔਐΊํ ऴΘΒͳ͍ઓ͍
ߟ͑ํ ɾݱஈ֊ͰඞཁͳػೳΛɺՄೳͳݶΓγϯϓϧ ɹʹ࣮͢Δ ɹ- KISS / YAGNI ͷݪଇ ɹ- ϓϥϯφʔͷσʔλߋ৽ָʹͳΔ
ɾকདྷతʹΔՄೳੑ͕͋Δ͜ͱɺରԠ͢Δ ɹ߹ͷDBपΓͷେม͞ΛؑΈͯஅ͢Δ ɹ- ϩδοΫɺUIDBʹൺΕͳΜͱ͔ͳΔ
ɹ֬ͷ࣌ݶࣗಈΓସ͑ ɹᶃΞΠςϜ͝ͱɿLotteryItemʹstartAtͷΧϥϜΛ͚ͩ͢ → ίετ ɹᶄϨΞϦςΟ͝ͱɿLotteryRarityGroupͷςʔϒϧͷՃ͕ඞཁ → ߴίετ
͏Ұ·ͱΊ ɾఆٛΛ໌֬ʹ ɹ- ʮී௨ʯͬͯԿʁ ɾૣ͗͢Δ࠷దԽ͠ͳ͍ ɹ- Ͱ͖Δ͚ͩγϯϓϧʹ ɾޙͰରԠ͢Δࡍͷίετݟੵ͓ͬͯ͘ ɹ- ޙ͔ΒରԠͰ͖ΔͷੵۃతʹΔ
※࣮ࡍͷઃܭͰɺͬͱߟ͑Δ͜ͱ ɹग़͠·͕ͨ͠ɺͦΕ·ͨผͷ͓…
ࣗݾհ ɾKeisuke Nakatane (@ksk1030) ɾORSO Inc. ৽نࣄۀ։ൃࣨ ɾαʔόɿΞϓϦɿϑϩϯτ ʹɹ̓ɹɿɹ̍ɹɿɹ̎ɹɹ͘Β͍ ɾલ৬ژͷήʔϜͰਓࣄ
ɾΤϯδχΞੵۃ࠾༻தʂʂ
Thank you for listening !!