comp.lang.ada
 help / color / mirror / Atom feed
* Card game deck but with trumps suit for tarot "divination" Is there a better way than enumerating all cards?
@ 2018-01-28  7:48 bozovic.bojan
  2018-01-28  8:57 ` Jacob Sparre Andersen
  0 siblings, 1 reply; 20+ messages in thread
From: bozovic.bojan @ 2018-01-28  7:48 UTC (permalink / raw)


These cards contain of 4 suits of 14 cards each, and special "trump" so called "major arcana" cards, 22 of them, for total of 78 cards. I created enumeration type and listed all 78 cards (with Tarot_Card'Pos of course 0..77 an Tarot_Card_Position in that range, and Deck as array(Tarot_Card_Position) of Card_Properties record with name and meaning fields. Using Ada.Numerics.Discrete_Random it works, but I wonder if better solution is possible)! When I've tried to make 4 suits of 14 cards and 22 cards in trump "suit" I however failed to see a solution and how I would iterate over such type, so I wonder if that route is possible. Thanks!


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2018-02-08 23:06 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-28  7:48 Card game deck but with trumps suit for tarot "divination" Is there a better way than enumerating all cards? bozovic.bojan
2018-01-28  8:57 ` Jacob Sparre Andersen
2018-01-28  9:23   ` bozovic.bojan
2018-01-28  9:46     ` Jeffrey R. Carter
2018-01-28 14:17       ` bozovic.bojan
2018-01-28 16:39     ` Dennis Lee Bieber
2018-01-29 23:16     ` Randy Brukardt
2018-01-30  2:30       ` bozovic.bojan
2018-02-02 19:07       ` Robert Eachus
2018-02-02 23:00         ` Dennis Lee Bieber
2018-02-02 23:05         ` Randy Brukardt
2018-02-03  8:17           ` Jeffrey R. Carter
2018-02-03 16:59           ` Robert Eachus
2018-02-06  0:39             ` Randy Brukardt
2018-02-06  3:17               ` Robert Eachus
2018-02-06  8:30           ` Petter Fryklund
2018-02-07 20:03             ` Card game deck but with trumps suit for tarot "divination" Is there a better way Robert Eachus
2018-02-07 21:10               ` Bojan Bozovic
2018-02-08 23:06                 ` Robert Eachus
2018-01-28 11:01   ` Card game deck but with trumps suit for tarot "divination" Is there a better way than enumerating all cards? gautier_niouzes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox