bp::list CardsSetToList(const CardsSet& cs) { bp::list result; for (Card move : cs) { result.append(CardToString(move)); } return result; }
CString CForce::GetFullDescription() { return FormString("Play the %s from %s to force out the opponents' %s.", CardToString(MAKEDECKVALUE(m_nSuit,m_nCardVal)), (m_nTargetHand == IN_HAND)? "hand" : "dummy", CardValToString(m_nTargetCardVal)); }
void CBlackJack::Hit(CBasePlayer &p) { Card c = CardDeck.DrawCard(); p.Hit(c); PrintCardDraw(p.GetName(), CardToString(c)); return; }
void MakeMove(int self_id) { Debug() << "Oop, it's our go"; DrawCard(self_id); // It's our go, play a card Card card; for (auto c : _players[self_id].hand) { if (c == Card_Princess) continue; card = c; break; } std::cout << "play " << CardToString(card) << std::endl; std::cout.flush(); _players[self_id].RemoveHandCard(card); // Handle changes to hand in the played cmd }