GitPS / PiCasino

Java based casino game hosted on a Raspberry Pi.
GNU General Public License v3.0
1 stars 0 forks source link

Cards class #22

Closed ghost closed 10 years ago

ghost commented 10 years ago

As we briefly discussed, we were going to have a card class that can construct a cards from an integer[0,51]. I would propose that Card #52 be an Unknown. GUI would display it as the back of a card and the GameState would treat it as a placeholder for an unknown card.

Your Thoughts?

ghost commented 10 years ago

Furthermore, while dealing, a server would deal a specific card to each player when it is their card, but it would tell everyone else that it dealt that player an unknown. This acts as a place holder so the GameStates can progress logically, private cards values can be concealed, and Guis can easily know how to treat the placeholder card.

areis422 commented 10 years ago

Works for me

Andrew Reis CompTIA Network+ Microsoft Certified Technology Specialist Cell: (608) 797-1481 Email: reis.andr@uwlax.edu

On Wed, Oct 30, 2013 at 1:36 PM, ajjensen13 notifications@github.comwrote:

Furthermore, while dealing, a server would deal a specific card to each player when it is their card, but it would tell everyone else that it dealt that player an unknown. This acts as a place holder so the GameStates can progress logically, private cards values can be concealed, and Guis can easily know how to treat the placeholder card.

— Reply to this email directly or view it on GitHubhttps://github.com/GitPS/PiCasino/issues/22#issuecomment-27424903 .