There are potentially easier hand input formats to serialize. Supporting multiple formats can help user select the best one for their application.
A potential format would be strings with a suit symbol followed by all ranks in suit:
{"hands": { "S":["DJT863", "CA6432", "S972"], ... }}
64 bit integer bitmask for each hands which maps directly to libdds structure.
{"hands": { "S":32764, ... }} // 13 spades for south: ((1ull << 13) - 1) << 2
There are potentially easier hand input formats to serialize. Supporting multiple formats can help user select the best one for their application.
A potential format would be strings with a suit symbol followed by all ranks in suit:
64 bit integer bitmask for each hands which maps directly to libdds structure.