2011-05-23, 11:48 PM
I think if you studied "has a" and "can" relationships you'd be much better off in OOP.
What you're describing here is: "A deck has a poker hand" (FALSE). "A deck can deal cards to players" (FALSE). "A Card has a suit" (TRUE). "A Card has a value" (TRUE). You're not totally off-base here, but some of your programming doesn't make logical sense. I'd recommend you fix it.
What you're describing here is: "A deck has a poker hand" (FALSE). "A deck can deal cards to players" (FALSE). "A Card has a suit" (TRUE). "A Card has a value" (TRUE). You're not totally off-base here, but some of your programming doesn't make logical sense. I'd recommend you fix it.
