Hi Paul.

My goodness, you are absolutely correct. This is lousy assert checking on my end. Thanks for pointing it out :) i will have to edit this :)

The same logic should work for small straight. Sorted set where we check [0] and [4]

Thanks again for reaching out! This is why I love Medium :)

CG supervisor with 17 years of experience in the Animation- and VFX industry. Studying Design, Use and Interaction (UX) at the University of Oslo

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store