JaredHatfield / card-surface

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

In Blackjack, the Player's state should be reset when the player leaves the game and cards returned to the deck #76

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When a player leaves a game their state needs to be changed so that the game 
is aware that they left.

Original issue reported on code.google.com by jjhatf02 on 14 Apr 2010 at 4:23

GoogleCodeExporter commented 9 years ago
It will be the responsibility of the specific game to insure the cards that are 
in the 
player's hand and playing area are not garbage collected.

In this case the cards in the hand and the two card piles need to be returned 
to the 
deck.

Original comment by jjhatf02 on 16 Apr 2010 at 12:03

GoogleCodeExporter commented 9 years ago

Original comment by jjhatf02 on 16 Apr 2010 at 12:03

GoogleCodeExporter commented 9 years ago
Work on this began with r300.

The game still falls into an inconsistent state because the player turn is not 
advanced.  Additionally, if not players are playing the game the game gets 
stuck 
because it is in an advanced state that allows no actions to be performed by 
the user.

Original comment by jjhatf02 on 16 Apr 2010 at 12:17

GoogleCodeExporter commented 9 years ago
This was fixed by Aaron sometime today in one of the many, many commits.

Original comment by jjhatf02 on 23 Apr 2010 at 3:32