Lessons from UNO

The vanilla UNO itself is a simple game to implement. Initially I thought of doing a completely command-line based interface, but that gets very unwieldy. So I quickly switched to termui. Being built for dashboards, the UI library itself isn’t the most glamorous and I am contemplating moving to bubbletea. But that has to wait. session with 4 players In this post, I will note down a few of the stuff I have learned while implementing this prototype....

<span title='2023-04-18 19:41:54 +0530 IST'>April 18, 2023</span>

Date interval operations

Trivia - Off-by-one errors and Interval notations Dumping some info about working with intervals with a focus in implementation in Go. Date intervals in particular, and one dimensional integer intervals in general (if you want to be really formal). We will denote an interval as [a .. b] that represents all the numbers i such that a ≤ i ≤ b. In some cases it is actually neater to work with “half-open” intervals, which are denoted as [a ....

<span title='2022-11-02 07:02:30 +0530 IST'>November 2, 2022</span>