player.resetSkipCount();
if (getJudge() == player || state != GameState.PLAYING) {
return ErrorCode.NOT_YOUR_TURN;
}
final List<WhiteCard> hand = player.getHand();
WhiteCard playCard = null;
synchronized (hand) {
final Iterator<WhiteCard> iter = hand.iterator();
while (iter.hasNext()) {
final WhiteCard card = iter.next();
if (card.getId() == cardId) {
playCard = card;
if (WhiteDeck.isBlankCard(card)) {
playCard.setText(cardText);
}
// remove the card from their hand. the client will also do so when we return