Quote from: JLWest on June 20, 2022, 07:12:17 pmNo, I never considered sets. I have a array of records.That would be ill informed for a card game (for lack of an abusive term) because for a card game you can use include/exclude, so the set will represent the cards that are still in the deck or already played. If you write a card game, sets are the way to go.E.g. Poker can be written in less than 100 lines using sets. Bridge a bit more, but that is just handling logic, so does not count to your problem.An array of records can be handled with e.g. the sets in rtl-generics.
No, I never considered sets. I have a array of records.
Might get more complicated than a simple set if more than one deck is involved... or a game has more than one indistinguishable joker.MarkMLl
No disrespect Thaddy but I don't think a bridge game came be written in less than 200 lines.