Order of C++ Subjects and Project Increments
C++ Subjects |
Grid Game |
Fifteen |
Mastermind |
Peg Game |
Set Game |
cout |
|
1 |
|
1 |
|
variable |
|
|
|
|
|
string type |
|
|
|
|
|
cin |
|
|
1 |
|
|
char, int, double, bool |
|
|
|
|
|
string class |
|
|
|
|
|
variable scope |
|
|
|
|
|
expressions |
|
|
|
|
|
if-else |
|
|
|
|
|
while loop |
|
|
|
|
|
for loop |
1 |
2 |
2 |
|
1 |
arrays, part I |
2 |
3 |
3 |
2 |
2 |
getline() |
|
|
|
|
|
stringstream |
3 |
4 |
4 |
|
|
arrays, part II |
|
|
5 |
3 |
3 |
array on array |
|
|
|
|
4 |
functions |
|
5 |
|
4 – 6 |
5 |
rand() |
4 |
6 |
6 |
|
|
struct |
|
|
|
|
6 – 11 |
vector, deque, map |
|
|
|
|
|
Grid Game
- print the board
- iteratively prompt for input and plot it
- implement the game with a fixed target
- implement a randomly assigned target
Fifteen Puzzle
- print the board
- print the board with loops
- add an array to maintain a mapping of location and number
- add cin, search, update
- draw_board(), move(), swap()
- mix up the numbers
Mastermind
- prompt, receive input, report input
- prompt, receive input, report input in a loop
- replace 4 variables with an array of 4 elements
- convert 4 integer inputs to 1 string input
- add hard-wired answer array and compute "totally correct" response
- populate answer array with random values
- compute "partially correct" response
Peg Game
- print the "board" with no formatting and no loop(s)
- print the "board" with no formatting
- print the "board" with formatting
- prompt for a position, toggle the position
- implement everything except “jump” logic
- design and implement the “jump” logic
Set Game
- print all combinations of three three-value variables
- print all combinations of ./+/^ X/O/S 1/2/3
- initialize and output a "int deck_of_cards[27][3]" data structure
- replace "X3" format with "XXX" implementation
- design initialize_cards() and draw_card() functions
- replace state array with struct
- add draw_board(), solicit card number (1-12), remove card
- add a "fill" command
- modify initialize_cards() to shuffle the deck of cards
- design is_a_set()
- design compute_sets_present()