Show HN: A Wordle implementation in pure SQL

Hi HN,

I made a Wordle clone where the game runs inside PostgreSQL. The game state lives in tables, and a SQL function acts as the game engine — you pass in an input, and it returns the new state.

Other than the game loop to feed inputs, everything happens in SQL. This was a fun project in pushing SQL beyond its usual use case, sharing in case others find it interesting too.

I guess you could extend this idea to any turn-based game (as long as you have the patience to implement it in SQL).

4 points panpan2 1 year ago 0 comments

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton