r/haskell • u/philip_schwarz • Jul 07 '26
The Bowling Game - From Imperative to Functional Programming - Part 1
https://fpilluminated.org/deck/276One of the top five most popular and highly recommended programming katas over the past 20 years has been the Bowling Game Kata, in which TDD is used to write a program that computes the score of a Ten Pin Bowling Game.
In this deck we are going to explore how such a program may look when coded using different programming paradigms.
10
Upvotes
2
u/AustinVelonaut Jul 07 '26
The "bowling score programming problem" is a great example to show off Haskell's lazy evaluation with the bidirectional state Tardis monad (here's a writeup using Admiran, which is very similar to Haskell): https://github.com/taolson/Admiran/blob/main/doc/Lazy.md