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

  1. print the board
  2. iteratively prompt for input and plot it
  3. implement the game with a fixed target
  4. implement a randomly assigned target

Fifteen Puzzle

  1. print the board
  2. print the board with loops
  3. add an array to maintain a mapping of location and number
  4. add cin, search, update
  5. draw_board(), move(), swap()
  6. mix up the numbers

Mastermind

  1. prompt, receive input, report input
  2. prompt, receive input, report input in a loop
  3. replace 4 variables with an array of 4 elements
  4. convert 4 integer inputs to 1 string input
  5. add hard-wired answer array and compute "totally correct" response
  6. populate answer array with random values
  7. compute "partially correct" response

Peg Game

  1. print the "board" with no formatting and no loop(s)
  2. print the "board" with no formatting
  3. print the "board" with formatting
  4. prompt for a position, toggle the position
  5. implement everything except “jump” logic
  6. design and implement the “jump” logic

Set Game

  1. print all combinations of three three-value variables
  2. print all combinations of ./+/^ X/O/S 1/2/3
  3. initialize and output a "int deck_of_cards[27][3]" data structure
  4. replace "X3" format with "XXX" implementation
  5. design initialize_cards() and draw_card() functions
  6. replace state array with struct
  7. add draw_board(), solicit card number (1-12), remove card
  8. add a "fill" command
  9. modify initialize_cards() to shuffle the deck of cards
  10. design is_a_set()
  11. design compute_sets_present()