SlideShare a Scribd company logo
ClickHouse SQL Games
by Ramazan Polat
ClickHouse Istanbul Meetup - 2022-10-21
Intro
Ramazan Polat
ClickHouse Developer at
Santiment.net is a behavior analytics platform for cryptocurrencies,
sourcing on-chain, social and development information on 2000+ coins.
Title: ClickHouse SQL Games
Author: Ramazan Polat
Event: ClickHouse Istanbul Meetup
Date: 2022-10-21
Organizers: Altinity and P.I. Works
Repo:
https://github.com/ramazanpolat/clickhouse-sql-games
Slides: TBA
What ClickHouse can do
✅ Run on any architect (x86, ARM, M1, RISC, Power9, …)
✅ Scale to 1000s of nodes
✅ Run AI models
✅ Beat almost any competitor in benchmarks
(the list goes on and on…)
❓ How about playing games?
What games?
Not like this one…
* Image generated with Midjourney
You imagine a number in your head and let ClickHouse guess the number
DEMO
1st game: Guess the number
Game code:
https://github.com/ramazanpolat/clickhouse-sql-games
2nd game: WORDLE
Game code:
https://github.com/ramazanpolat/clickhouse-sql-games
DEMO
Bonus: WORDLE cheater
1. Goto https://bit.ly/sql-games *
2. Put gray letters in BLACKLIST, yellow and green ones in WHITELIST then run query
WITH
'abc' AS BLACKLIST,
'de' AS WHITELIST
SELECT num, upper(word) FROM (
WITH
splitByString('',word) AS word_arr,
splitByString('', lower(BLACKLIST)) AS black_arr,
splitByString('', lower(WHITELIST)) AS white_arr,
arraySum(arrayMap( black -> position(black IN word),black_arr))>0 as has_blacklist_letters,
arrayMap(white -> position(white IN word)>0, white_arr) as white_arr_comp,
arraySum(white_arr_comp) == length(white_arr) as has_whitelist_letters
SELECT rowNumberInAllBlocks()+1 AS num, word
FROM
url('https://raw.githubusercontent.com/ramazanpolat/clickhouse-sql-games/main/wordle/sgb-words.txt','CSV','word String')
WHERE has_blacklist_letters=0 AND has_whitelist_letters=1
)
ORDER BY word;
* Full url: https://fiddle.clickhouse.com/4d557fe5-479d-4de2-b0c7-6baa64bcd8d4
a) Chat bot
b) Order pizza
c) Play Doom!
d) Other: ___________________
What next?
If you are a ClickHouse SQL game developer, you can send your game to the following
repo with a PR: https://github.com/ramazanpolat/clickhouse-sql-games
Your move!
Thank You!
You can find games and codes in the following repo
https:/
/github.com/ramazanpolat/clickhouse-sql-games
ramazanpolat@gmail.com
https:/
/www.linkedin.com/in/ramazanpolat/

More Related Content

Similar to ClickHouse SQL Games

Developing for consoles as an indie in 2019
Developing for consoles as an indie in 2019Developing for consoles as an indie in 2019
Developing for consoles as an indie in 2019
David Voyles
 
Developing games for consoles as an indie in 2019
Developing games for consoles as an indie in 2019Developing games for consoles as an indie in 2019
Developing games for consoles as an indie in 2019
David Voyles
 
Artificial Intelligence_ How is it significant to the gaming industry_.pdf
Artificial Intelligence_ How is it significant to the gaming industry_.pdfArtificial Intelligence_ How is it significant to the gaming industry_.pdf
Artificial Intelligence_ How is it significant to the gaming industry_.pdf
Anil
 
Introduction to Game Development
Introduction to Game DevelopmentIntroduction to Game Development
Introduction to Game DevelopmentSumit Jain
 
The Five Levels of Generative AI for Games
The Five Levels of Generative AI for GamesThe Five Levels of Generative AI for Games
The Five Levels of Generative AI for Games
Jon Radoff
 
Intro to Indie Game Development
Intro to Indie Game DevelopmentIntro to Indie Game Development
Intro to Indie Game Development
Shahed Chowdhuri
 
Videogames: Raising Interactive Digital Entertainment Industry
Videogames: Raising Interactive Digital Entertainment IndustryVideogames: Raising Interactive Digital Entertainment Industry
Videogames: Raising Interactive Digital Entertainment IndustryMarlin Sugama
 
G3 GDC 2015 - Bringing Western Mobile Games to China
G3 GDC 2015 - Bringing Western Mobile Games to ChinaG3 GDC 2015 - Bringing Western Mobile Games to China
G3 GDC 2015 - Bringing Western Mobile Games to China
keithm9
 
BIT.GAMES Company Overview
BIT.GAMES Company OverviewBIT.GAMES Company Overview
BIT.GAMES Company Overviewdbrain
 
Social Gaming GameIS User Group Meeting
Social Gaming GameIS User Group MeetingSocial Gaming GameIS User Group Meeting
Social Gaming GameIS User Group Meeting
Almog Koren
 
Khalid elshimy
Khalid elshimyKhalid elshimy
Khalid elshimy
immortalwell
 
GMGC2015 Beijing - How To Successfully Distribute Your HTML5 Game
GMGC2015 Beijing - How To Successfully Distribute Your HTML5 GameGMGC2015 Beijing - How To Successfully Distribute Your HTML5 Game
GMGC2015 Beijing - How To Successfully Distribute Your HTML5 Game
Global Mobile Game Confederation (GMGC)
 
Bringing the Real World Into the Game World
Bringing the Real World Into the Game WorldBringing the Real World Into the Game World
Bringing the Real World Into the Game World
Intel® Software
 
Blockchain Gaming Revolution
Blockchain Gaming RevolutionBlockchain Gaming Revolution
Blockchain Gaming Revolution
Fred Murumaa
 
Sse indie europe_group6b
Sse indie europe_group6bSse indie europe_group6b
Sse indie europe_group6bErik Bywall
 
GameFi Report 2023: GameFi Levels Up | CoinGecko
GameFi Report 2023: GameFi Levels Up | CoinGeckoGameFi Report 2023: GameFi Levels Up | CoinGecko
GameFi Report 2023: GameFi Levels Up | CoinGecko
CoinGecko
 
Modeling and Analyzing Social Networks of Games
Modeling and Analyzing Social Networks of GamesModeling and Analyzing Social Networks of Games
Modeling and Analyzing Social Networks of Games
Leonardo Moraes
 
Vlad Micu “20 things succesful game developers do beyond making games”
Vlad Micu “20 things succesful game developers do beyond making games”Vlad Micu “20 things succesful game developers do beyond making games”
Vlad Micu “20 things succesful game developers do beyond making games”Lviv Startup Club
 

Similar to ClickHouse SQL Games (20)

Developing for consoles as an indie in 2019
Developing for consoles as an indie in 2019Developing for consoles as an indie in 2019
Developing for consoles as an indie in 2019
 
Developing games for consoles as an indie in 2019
Developing games for consoles as an indie in 2019Developing games for consoles as an indie in 2019
Developing games for consoles as an indie in 2019
 
Artificial Intelligence_ How is it significant to the gaming industry_.pdf
Artificial Intelligence_ How is it significant to the gaming industry_.pdfArtificial Intelligence_ How is it significant to the gaming industry_.pdf
Artificial Intelligence_ How is it significant to the gaming industry_.pdf
 
Tabletopia-presentation
Tabletopia-presentationTabletopia-presentation
Tabletopia-presentation
 
Introduction to Game Development
Introduction to Game DevelopmentIntroduction to Game Development
Introduction to Game Development
 
The Five Levels of Generative AI for Games
The Five Levels of Generative AI for GamesThe Five Levels of Generative AI for Games
The Five Levels of Generative AI for Games
 
Intro to Indie Game Development
Intro to Indie Game DevelopmentIntro to Indie Game Development
Intro to Indie Game Development
 
Videogames: Raising Interactive Digital Entertainment Industry
Videogames: Raising Interactive Digital Entertainment IndustryVideogames: Raising Interactive Digital Entertainment Industry
Videogames: Raising Interactive Digital Entertainment Industry
 
G3 GDC 2015 - Bringing Western Mobile Games to China
G3 GDC 2015 - Bringing Western Mobile Games to ChinaG3 GDC 2015 - Bringing Western Mobile Games to China
G3 GDC 2015 - Bringing Western Mobile Games to China
 
CV_Kolesnyk
CV_KolesnykCV_Kolesnyk
CV_Kolesnyk
 
BIT.GAMES Company Overview
BIT.GAMES Company OverviewBIT.GAMES Company Overview
BIT.GAMES Company Overview
 
Social Gaming GameIS User Group Meeting
Social Gaming GameIS User Group MeetingSocial Gaming GameIS User Group Meeting
Social Gaming GameIS User Group Meeting
 
Khalid elshimy
Khalid elshimyKhalid elshimy
Khalid elshimy
 
GMGC2015 Beijing - How To Successfully Distribute Your HTML5 Game
GMGC2015 Beijing - How To Successfully Distribute Your HTML5 GameGMGC2015 Beijing - How To Successfully Distribute Your HTML5 Game
GMGC2015 Beijing - How To Successfully Distribute Your HTML5 Game
 
Bringing the Real World Into the Game World
Bringing the Real World Into the Game WorldBringing the Real World Into the Game World
Bringing the Real World Into the Game World
 
Blockchain Gaming Revolution
Blockchain Gaming RevolutionBlockchain Gaming Revolution
Blockchain Gaming Revolution
 
Sse indie europe_group6b
Sse indie europe_group6bSse indie europe_group6b
Sse indie europe_group6b
 
GameFi Report 2023: GameFi Levels Up | CoinGecko
GameFi Report 2023: GameFi Levels Up | CoinGeckoGameFi Report 2023: GameFi Levels Up | CoinGecko
GameFi Report 2023: GameFi Levels Up | CoinGecko
 
Modeling and Analyzing Social Networks of Games
Modeling and Analyzing Social Networks of GamesModeling and Analyzing Social Networks of Games
Modeling and Analyzing Social Networks of Games
 
Vlad Micu “20 things succesful game developers do beyond making games”
Vlad Micu “20 things succesful game developers do beyond making games”Vlad Micu “20 things succesful game developers do beyond making games”
Vlad Micu “20 things succesful game developers do beyond making games”
 

Recently uploaded

原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
u86oixdj
 
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
ahzuo
 
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
g4dpvqap0
 
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
axoqas
 
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdfEnhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
GetInData
 
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
slg6lamcq
 
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
Timothy Spann
 
Adjusting OpenMP PageRank : SHORT REPORT / NOTES
Adjusting OpenMP PageRank : SHORT REPORT / NOTESAdjusting OpenMP PageRank : SHORT REPORT / NOTES
Adjusting OpenMP PageRank : SHORT REPORT / NOTES
Subhajit Sahu
 
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
oz8q3jxlp
 
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptxData_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
AnirbanRoy608946
 
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
u86oixdj
 
Machine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptxMachine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptx
balafet
 
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Subhajit Sahu
 
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdfCh03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
haila53
 
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
mzpolocfi
 
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
ahzuo
 
Everything you wanted to know about LIHTC
Everything you wanted to know about LIHTCEverything you wanted to know about LIHTC
Everything you wanted to know about LIHTC
Roger Valdez
 
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
74nqk8xf
 
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdfUnleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
Enterprise Wired
 
My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.
rwarrenll
 

Recently uploaded (20)

原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
 
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
 
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
 
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
 
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdfEnhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
 
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
 
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
 
Adjusting OpenMP PageRank : SHORT REPORT / NOTES
Adjusting OpenMP PageRank : SHORT REPORT / NOTESAdjusting OpenMP PageRank : SHORT REPORT / NOTES
Adjusting OpenMP PageRank : SHORT REPORT / NOTES
 
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
 
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptxData_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
 
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
 
Machine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptxMachine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptx
 
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
 
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdfCh03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
 
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
 
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
 
Everything you wanted to know about LIHTC
Everything you wanted to know about LIHTCEverything you wanted to know about LIHTC
Everything you wanted to know about LIHTC
 
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
 
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdfUnleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
 
My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.
 

ClickHouse SQL Games

  • 1. ClickHouse SQL Games by Ramazan Polat ClickHouse Istanbul Meetup - 2022-10-21
  • 2. Intro Ramazan Polat ClickHouse Developer at Santiment.net is a behavior analytics platform for cryptocurrencies, sourcing on-chain, social and development information on 2000+ coins. Title: ClickHouse SQL Games Author: Ramazan Polat Event: ClickHouse Istanbul Meetup Date: 2022-10-21 Organizers: Altinity and P.I. Works Repo: https://github.com/ramazanpolat/clickhouse-sql-games Slides: TBA
  • 3. What ClickHouse can do ✅ Run on any architect (x86, ARM, M1, RISC, Power9, …) ✅ Scale to 1000s of nodes ✅ Run AI models ✅ Beat almost any competitor in benchmarks (the list goes on and on…) ❓ How about playing games?
  • 4. What games? Not like this one… * Image generated with Midjourney
  • 5. You imagine a number in your head and let ClickHouse guess the number DEMO 1st game: Guess the number Game code: https://github.com/ramazanpolat/clickhouse-sql-games
  • 6. 2nd game: WORDLE Game code: https://github.com/ramazanpolat/clickhouse-sql-games DEMO
  • 7. Bonus: WORDLE cheater 1. Goto https://bit.ly/sql-games * 2. Put gray letters in BLACKLIST, yellow and green ones in WHITELIST then run query WITH 'abc' AS BLACKLIST, 'de' AS WHITELIST SELECT num, upper(word) FROM ( WITH splitByString('',word) AS word_arr, splitByString('', lower(BLACKLIST)) AS black_arr, splitByString('', lower(WHITELIST)) AS white_arr, arraySum(arrayMap( black -> position(black IN word),black_arr))>0 as has_blacklist_letters, arrayMap(white -> position(white IN word)>0, white_arr) as white_arr_comp, arraySum(white_arr_comp) == length(white_arr) as has_whitelist_letters SELECT rowNumberInAllBlocks()+1 AS num, word FROM url('https://raw.githubusercontent.com/ramazanpolat/clickhouse-sql-games/main/wordle/sgb-words.txt','CSV','word String') WHERE has_blacklist_letters=0 AND has_whitelist_letters=1 ) ORDER BY word; * Full url: https://fiddle.clickhouse.com/4d557fe5-479d-4de2-b0c7-6baa64bcd8d4
  • 8. a) Chat bot b) Order pizza c) Play Doom! d) Other: ___________________ What next?
  • 9. If you are a ClickHouse SQL game developer, you can send your game to the following repo with a PR: https://github.com/ramazanpolat/clickhouse-sql-games Your move!
  • 10. Thank You! You can find games and codes in the following repo https:/ /github.com/ramazanpolat/clickhouse-sql-games ramazanpolat@gmail.com https:/ /www.linkedin.com/in/ramazanpolat/