diff --git a/Player.cpp b/Player.cpp new file mode 100644 index 0000000..ed3cc9d --- /dev/null +++ b/Player.cpp @@ -0,0 +1,24 @@ +#include "Player.h" + +void Player::addCardToHand(const Card& card) { + hand.push_back(card); +} + +void Player::removeCardFromHand(const Card& card) { + auto it = std::find(hand.begin(), hand.end(), card); + if (it != hand.end()) { + hand.erase(it); + } +} + +void Player::updateChips(int amount) { + chips += amount; +} + +const std::vector& Player::getHand() const { + return hand; +} + +int Player::getChips() const { + return chips; +} \ No newline at end of file