Skip to content

Instantly share code, notes, and snippets.

View janderit's full-sized avatar
🙃

Philip Jander janderit

🙃
View GitHub Profile
@janderit
janderit / functionalBowling.fs
Created December 3, 2019 16:59
Functional solution to the Bowling Kata
//
// Functional Bowling Kata solution in F#
//
// uses recursive determination of the score starting with a certain frame number
// and lookahead for the bonus roll scores
//
let private frames_in_game = 10
type FrameType = Strike | Spare | Normal