Episode #247

Yahtzee Kata

30 minutes
Published on December 8, 2016

This video is only available to subscribers. Get access to this video and 544 others.

In this episode we will implement the Yahtzee Kata, which entails scoring hands based on dice rolls. We'll look at leveraging protocols and protocol extensions to mix & match shared behaviors across disparate types in order to perform matching and scoring of the dice.

Episode Links

  • Source Code
  • Kata Description on Coding Dojo
  • Ruby Quiz #19 - This is the source of the Kata, along with a Ruby implementation. I found it interesting how different our solutions were, both of us leveraging the language's strengths. Definitely take a look (it will almost assuredly teach you a few things about Ruby!)

This episode uses Swift 3.0.