As per the title. Currently, each American Mah-Jongg Card is considered its own separate mod, which is probably structurally bad. (It also means that the NMJL 2024 Card is the default, despite this being outdated by about seven months.) When we add more and more Cards, users will have to hunt-and-peck for the Card they want.
Going forward, ideally we would have each series of Cards (e.g. NMJL, Marvelous, Siamese, Mah Jongg Network, free Cards, etc.) be its own mod, and within the button for the mod, add a dropdown menu with each Card in the series as an option.
Currently, the "obvious" way to do this is to lump together every NMJL Card into a single .jq file, and then use a case-switch to figure out which subsection of the .jq file to apply to the JSON. That said, it would be organisationally nice if each Card were internally its own separate .jq file like it is now, instead of this idea.
(I suspect we would want the default mod to be the Card for that year from the most popular line? This might be a bit volatile considering the recent developments with multiple American Mah-Jongg companies debuting alternative 2026 Cards. It would also be a bit of a hassle to have to manually update this every year, but maybe automatic updating is a problem for future contributors to solve.)
A good first step would be to separate out the 2024 NMJL Card into its own mod. Then, implement some way to have available_mods entries access one of multiple files depending on a config variable.
As per the title. Currently, each American Mah-Jongg Card is considered its own separate mod, which is probably structurally bad. (It also means that the NMJL 2024 Card is the default, despite this being outdated by about seven months.) When we add more and more Cards, users will have to hunt-and-peck for the Card they want.
Going forward, ideally we would have each series of Cards (e.g. NMJL, Marvelous, Siamese, Mah Jongg Network, free Cards, etc.) be its own mod, and within the button for the mod, add a dropdown menu with each Card in the series as an option.
Currently, the "obvious" way to do this is to lump together every NMJL Card into a single .jq file, and then use a case-switch to figure out which subsection of the .jq file to apply to the JSON. That said, it would be organisationally nice if each Card were internally its own separate .jq file like it is now, instead of this idea.
(I suspect we would want the default mod to be the Card for that year from the most popular line? This might be a bit volatile considering the recent developments with multiple American Mah-Jongg companies debuting alternative 2026 Cards. It would also be a bit of a hassle to have to manually update this every year, but maybe automatic updating is a problem for future contributors to solve.)
A good first step would be to separate out the 2024 NMJL Card into its own mod. Then, implement some way to have
available_modsentries access one of multiple files depending on a config variable.