Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // find the minimum card in the deck
- void PlayerBST::min(CardNode *root){
- if (root == NULL){
- return;
- }else if (root != NULL){
- if (root->left != NULL){
- root = root->left;
- min(root);
- }else{
- CardNode *minimum = root;
- //cout << "THIS IS THE MIN IN HAND: " << minimum->suit << " " << minimum->value << endl;
- }
- }
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement