Ryan
2010-06-10 21:24:52 UTC
The code for shuffle
http://www.student.cs.uwaterloo.ca/~cs246/SE/Assignments/P1/code/shuffle
has no input (no deck, or DECK_SIZE), also it there is no #include
"Card.h" so it has no clue what Card is (it uses Card * c).
In addition, the assignment has no mention of if deck[0] or
deck[DECK_SIZE -1] is the "top" and "bottom" of the deck. This is
important if you want the cards to have the same results to being shuffled.
As well I have renamed it to shuffle.cpp because it has no file
extension, was I correct to do so or was this intended?
http://www.student.cs.uwaterloo.ca/~cs246/SE/Assignments/P1/code/shuffle
has no input (no deck, or DECK_SIZE), also it there is no #include
"Card.h" so it has no clue what Card is (it uses Card * c).
In addition, the assignment has no mention of if deck[0] or
deck[DECK_SIZE -1] is the "top" and "bottom" of the deck. This is
important if you want the cards to have the same results to being shuffled.
As well I have renamed it to shuffle.cpp because it has no file
extension, was I correct to do so or was this intended?