<div dir="ltr"><< Todd said:<br>
A deck, hand, pile, all can be implemented as just an<br>
OrderedCollection. You might start with a Deal or BridgeRound or<br>
something. It might have some methods like:<br>
<br>
initialize<br>
| hands deck |<br>
deck := Card bridgeDeck shuffled asOrderedCollection. "just like<br>
english"<br>
north := OrderedCollection new.<br>
south := OrderedCollection new.<br>
east := OrderedCollection new.<br>
west := OrderedCollection new.<br>
trick := OrderedCollection new.<br>
<br><br>-- snip -- >><br><br><br>Todd, thanks for writing that up. I found it really interesting to see how you tackled the problem. I think it would be great if - as time permits - the experts of the list could take a problem - nice simple ones would be good, and show how you might solve it. It is also very interesting to see how you refine/modify each others' solutions.<br>
<br>cheers<br>AB<br></div>