- Added sample output in a comment to end of main.cpp.
- Wrongly mixing cards value and cards suit when calling dealCard() on deck.cpp. This caused suit and value reversed from the original deck.
- Updated .gitignore file to prevent Visual Studio project files from leaking into the repo
- Fixed vector range bug in playCard() method in Hand object and reverted erroneous change to shuffleDeck() method
- Fix array out of bounds issue on deck.cpp.
- Updated Players vector in Game to hold pointers instead of objects so that the players can perform actions from within the game (such as draw cards from the game deck)
- Added dealCards() method to game to deal parameterized number of cards to all joined players
- Updated drawCard() method with a suppress output flag to allow console message suppression for dealCards() or other purposes
- Added additional demo code to main showing Player, Deck, and Game functionality
- Updates dealCard() to reassign all remaining cards to a new array, return that, and delete the old one to avoid memory leak
- Cleanup of last code changes
- Added more demo code to main showing how gameDeck retains memory of dealt cards and is shuffle-able using remaining cards in any remaining amount
- Deck.cpp - reworked shuffle() into a single function using a nested loop and rand() to assign cards to a new dynamic Card array
- Also created an init() function for deck that triggers off of newGame with an optional card number input
- Updated Player code to allow them to play cards with output which gets removed from their hand and placed into a seperate Deck property which Game should be able to analyze to determine win conditions
- Game.h, Game.cpp - Implemented standard 52 card deck.
- Card.cpp - changed displayCard() to display the full name of the card rather than the contents.
- main.cpp - all old test code moved to testmain.cpp
- Game.h, Game.cpp, Player.h, Player.cpp files authored
- Updated main temporarily so it still compliles
- Made game object with the intent for it to be extensibe for Daniel's Hi/Lo game
- Work in progress, please post feedback in the Canvas forum
- Hand.h and Hand.cpp - authored files
- card.cpp - added missing getSuit() and getValue() methods
- main.cpp - updated to include demo code for Hand object
- Card.h and Card.cpp - added == operator overload to compare cards
- deck.h and deck.cpp - can add back a card that has been dealt out
- main.cpp - contains test code for the new functionality
- card.h and card.cpp - displayCard() is now a const function
- deck.h and deck.cpp - Replaced empty placeholder files with my implementation.
- main.cpp - contains test code for my deck object if anyone wants to tinker with it.