06-14-2023, 07:35 PM
I have created the trick-taking game Agram, albeit with some limitations. I plan to continue working on making card games with more complexity in Ludii, but even so, this one is as described in the source documentation. I have begun efforts to permute objects, or a sequence of numbers, or something, for a general way to "shuffle". I successfully made a big stack of all cards (which, in Agram, are Pieces with states and values, taking cues from the Ludii implementation of Quarto), and randomly fanned them into the two adjacent stacks, then consolidated them back, to have a "shuffle" that resembles the way humans do it. As it stands, this "washes out" the states and values, but I'm working on techniques to fix this. Some other paths I'm considering are using the standard map to biject the numbers 1 to (n choose k) to a list of (k+1) whole numbers that sum to (n-k), or to just generate 52 random numbers where each is less or equal to its index. I am also working on better suits.