[Tutor] How to have unique identifiers for multiple object instances of a given class?

Steven D'Aprano steve at pearwood.info
Sun Aug 26 20:47:25 EDT 2018


On Sun, Aug 26, 2018 at 05:38:52PM -0500, boB Stepp wrote:

> I feel that I may be missing something truly obvious.  I am pondering
> the design of a solitaire scorekeeper program.  It is just meant to be
> an electronic scorekeeper for hands of solitaire that I plan with a
> "real" deck of cards, instead of a computer game.  I might want to
> play and track a variety of solitaire games.  And I might want to play
> one game for a bit and then switch to another.


What you say is a little ambiguous. When you say solitaire, do you mean 
the specific card game known as "Solitaire", or do you mean the generic 
term for dozens of different solitaire-type single person card games?

When you describe changing games, do you mean changing from (say) 
"Grandfather's Clock" to "Spider" to "Solitaire", or do you mean 
start a new game by reshuffling the cards and dealing out a new hand?

It might help if you explain how you currently track these games, on 
paper.




-- 
Steve


More information about the Tutor mailing list