FeatureBase is a binary-tree database built on Roaring Bitmaps. This makes it suitable for running analytics on massive data sets in real time. If you've never used FeatureBase before, you can get it running locally in about 5 minutes.
Today, we're going to take a look at using FeatureBase to simulate and analyze a very large number of Set games in real-time.
Set is a card game designed by Marsha Falco in 1974 and published by Set Enterprises in 1991. The deck consists of 81 unique cards that vary in four features across three possibilities for each kind of feature: number of shapes (one, two, or three), shape (diamond, squiggle, oval), shading (solid, striped, or open), and color (red, green, or purple).
In a game of Set, the cards are shuffled and then 12 cards are drawn from the top of the deck and placed on the table. Game play then com