> I think the whole board-state could be represented with 13+52 byte array, having markers between the cards to indicate different piles.
A multiple-gap buffer is more difficult to handle than a linked list, yeah.
A multiple-gap buffer is more difficult to handle than a linked list, yeah.
fyi I noticed that your mallocz seems to reimplement calloc: https://pubs.opengroup.org/onlinepubs/009695399/functions/ca...