示例#1
0
bp::list CardsSetToList(const CardsSet& cs) {
	bp::list result;
	for (Card move : cs) {
		result.append(CardToString(move));
	}
	return result;
}
示例#2
0
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));
}
示例#3
0
void CBlackJack::Hit(CBasePlayer &p)
{
  Card c = CardDeck.DrawCard();
  p.Hit(c);
  PrintCardDraw(p.GetName(), CardToString(c));
  return;
}
示例#4
0
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
}