A cribbage engine