> Do you write a getCard() function in table that calls a getCard()
function in player that calls the Hand.removeCard() function.  

Yup, that's the way to do it.  

> That just seems a bit tightly coupled, but I can't think of any other
way to go about it.

You've got good delegation of responsibilities going on, where the coupling is 
only between adjacent layers. "Table" doesn't care how "Player" implements 
getCard(), and that's a good thing.


Ok, so that's the way to do it.  I was just getting a bit concerned that I was 
missing something when I was writing function after function that just passed a 
request from one layer down to the next layer.  This seemed a bit unnatural.




--------------
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

---------
| 1 |   |
---------  Binary Soduko
|   |   |
---------
 
"C code. C code run. Run code run. Please!"
- Cynthia Dunning

Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message. 




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:260581
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to