JaredHatfield / card-surface

Automatically exported from code.google.com/p/card-surface
0 stars 0 forks source link

Need some way to create a player and create the cardPiles that the player has. #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I need a way to create a player so I can make a cardPile and insert all the 
cards.  This needs to work the same way as Game so that you see it and 
compare it to a real game.  I cannot simply inherit from Player because 
Player's constructor is internal, therefore, Player cannot be inherited.

Original issue reported on code.google.com by aaron7ba...@gmail.com on 14 Mar 2010 at 11:56

GoogleCodeExporter commented 9 years ago
Correct...

Is this on the server or the table?  On the server you are not allowed to do 
any of those 
actions.  That should all be handled by the table.  For the table, this should 
all be 
handled by the GameTableInstance.

Since you are working on the communication library at what level do you want to 
compare 
the components to see the similarities.  I would rather not make the 
constructor for the 
player public because that could lead to some major confusion.  I would be 
happy to make 
the constructor for the Pile, CardPile, and ChipPile public for you to use.

The underlying question I want answered first is how is the game state going to 
be 
updated?  I feel like this work should all be done within the GameTableInstance 
thereby 
giving a lot more access to the underlying structure of the Game.  I realize 
there are 
some missing functions but I'll be adding those this week as I continue to 
flesh out the 
Blackjack game.

Original comment by jjhatf02 on 15 Mar 2010 at 12:41

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r114.

Original comment by jjhatf02 on 15 Mar 2010 at 4:11