Squeezing a sokoban game into 10 lines of code
cole-k.com · 5,942 words · saved by 1 readers
Call-by-push-block
If you're only interested in seeing or playing the game, you can find it on my GitHub . The occasion The Haskell Tiny Game Jam is a game jam which challenges participants to write a video game in Haskell using 10 lines of 80 characters. I happen to love Haskell and code golf (abusing a programming language to produce disgustingly short code for fun) so I decided to enter the Feb '23 jam. My journey My game is called Call-by-push-block . It's a Sokoban , or block-pushing game, where you take a lambda code golfing ("golfing" here is meant a little more literally). I started with an initial game
saved by
related reading
- Writing Toy Software Is A Joyblog.jsbarretto.com
- I Taught My Dog to Vibe Code Games | Caleb Leakcalebleak.com
- A half-hour to learn Rustfasterthanli.me
- Colfcolf.dev
- Writing a C compiler in 500 lines of Pythonvgel.me
- Programming a Guessing Game - The Rust Programming Languagedoc.rust-lang.org
- Basic Bit Manipulation - HackMDhackmd.io
- Ampampcode.com
- Leaving Haskell behind - Infinite Negative Utilityjournal.infinitenegativeutility.com
- Procedural textures with hash functionsdouglasorr.github.io
- Code golf - Wikipediaen.wikipedia.org
- GitHub - srush/Tensor-Puzzles: Solve puzzles. Improve your pytorch.github.com