[102] a.out set5.dat 4 Your greeting and instructions here Domino Menu 1. Print your dominoes 2. Add a domino to the head of the train 3. Add a domino to the tail of the train 4. Pick a domino from the bone yard 5. Pass you turn (only if bone yard is empty 6. Print this menu 7. Quit The train (1) : [3 | 3] Your turn....(Enter 6 for Menu) Please enter a choice: 1 Your Dominoes (4): [3 | 5] [2 | 2] [0 | 3] [1 | 3] Your turn....(Enter 6 for Menu) Please enter a choice: 2 Enter domino values: 3 5 The train (2): [5 | 3] [3 | 3] System's turn....System drew from the bone yard System has 5 dominoes left The train (2) : [5 | 3] [3 | 3] Your turn....(Enter 6 for Menu) Please enter a choice: 3 Enter domino values: 0 3 The train (3): [5 | 3] [3 | 3] [3 | 0] System's turn....System played [4 | 5] System has 4 dominoes left The train (4) : [4 | 5] [5 | 3] [3 | 3] [3 | 0] Your turn....(Enter 6 for Menu) Please enter a choice: 1 Your Dominoes (2): [2 | 2] [1 | 3] Your turn....(Enter 6 for Menu) Please enter a choice: 4 Choosing from the boneyard... [5 | 5] The train (4): [4 | 5] [5 | 3] [3 | 3] [3 | 0] System's turn....System played [2 | 4] System has 3 dominoes left The train (5) : [2 | 4] [4 | 5] [5 | 3] [3 | 3] [3 | 0] Your turn....(Enter 6 for Menu) Please enter a choice: 2 Enter domino values: 2 2 The train (6): [2 | 2] [2 | 4] [4 | 5] [5 | 3] [3 | 3] [3 | 0] System's turn....System played [1 | 2] System has 2 dominoes left The train (7) : [1 | 2] [2 | 2] [2 | 4] [4 | 5] [5 | 3] [3 | 3] [3 | 0] Your turn....(Enter 6 for Menu) Please enter a choice: 1 Your Dominoes (2): [5 | 5] [1 | 3] Your turn....(Enter 6 for Menu) Please enter a choice: 2 Enter domino values: 1 3 The train (8): [3 | 1] [1 | 2] [2 | 2] [2 | 4] [4 | 5] [5 | 3] [3 | 3] [3 | 0] System's turn....System played [0 | 1] System has 1 dominoes left The train (9) : [3 | 1] [1 | 2] [2 | 2] [2 | 4] [4 | 5] [5 | 3] [3 | 3] [3 | 0] [0 | 1] Your turn....(Enter 6 for Menu) Please enter a choice: 1 Your Dominoes (1): [5 | 5] Your turn....(Enter 6 for Menu) Please enter a choice: 4 Choosing from the boneyard... [2 | 5] The train (9): [3 | 1] [1 | 2] [2 | 2] [2 | 4] [4 | 5] [5 | 3] [3 | 3] [3 | 0] [0 | 1] System's turn....System drew from the bone yard System has 2 dominoes left The train (9) : [3 | 1] [1 | 2] [2 | 2] [2 | 4] [4 | 5] [5 | 3] [3 | 3] [3 | 0] [0 | 1] Your turn....(Enter 6 for Menu) Please enter a choice: 1 Your Dominoes (2): [2 | 5] [5 | 5] Your turn....(Enter 6 for Menu) Please enter a choice: 4 Choosing from the boneyard... [0 | 4] The train (9): [3 | 1] [1 | 2] [2 | 2] [2 | 4] [4 | 5] [5 | 3] [3 | 3] [3 | 0] [0 | 1] System's turn....System drew from the bone yard System has 3 dominoes left The train (9) : [3 | 1] [1 | 2] [2 | 2] [2 | 4] [4 | 5] [5 | 3] [3 | 3] [3 | 0] [0 | 1] Your turn....(Enter 6 for Menu) Please enter a choice: 4 Choosing from the boneyard... [1 | 1] The train (9): [3 | 1] [1 | 2] [2 | 2] [2 | 4] [4 | 5] [5 | 3] [3 | 3] [3 | 0] [0 | 1] System's turn....System played [1 | 4] System has 2 dominoes left The train (10) : [3 | 1] [1 | 2] [2 | 2] [2 | 4] [4 | 5] [5 | 3] [3 | 3] [3 | 0] [0 | 1] [1 | 4] Your turn....(Enter 6 for Menu) Please enter a choice: 1 Your Dominoes (4): [1 | 1] [0 | 4] [2 | 5] [5 | 5] Your turn....(Enter 6 for Menu) Please enter a choice: 3 Enter domino values: 0 4 The train (11): [3 | 1] [1 | 2] [2 | 2] [2 | 4] [4 | 5] [5 | 3] [3 | 3] [3 | 0] [0 | 1] [1 | 4] [4 | 0] System's turn....System played [0 | 2] System has 1 dominoes left The train (12) : [3 | 1] [1 | 2] [2 | 2] [2 | 4] [4 | 5] [5 | 3] [3 | 3] [3 | 0] [0 | 1] [1 | 4] [4 | 0] [0 | 2] Your turn....(Enter 6 for Menu) Please enter a choice: 3 Enter domino values: 2 5 The train (13): [3 | 1] [1 | 2] [2 | 2] [2 | 4] [4 | 5] [5 | 3] [3 | 3] [3 | 0] [0 | 1] [1 | 4] [4 | 0] [0 | 2] [2 | 5] System's turn....System drew from the bone yard System has 2 dominoes left The train (13) : [3 | 1] [1 | 2] [2 | 2] [2 | 4] [4 | 5] [5 | 3] [3 | 3] [3 | 0] [0 | 1] [1 | 4] [4 | 0] [0 | 2] [2 | 5] Your turn....(Enter 6 for Menu) Please enter a choice: 3 Enter domino values: 5 5 The train (14): [3 | 1] [1 | 2] [2 | 2] [2 | 4] [4 | 5] [5 | 3] [3 | 3] [3 | 0] [0 | 1] [1 | 4] [4 | 0] [0 | 2] [2 | 5] [5 | 5] System's turn....System played [2 | 3] System has 1 dominoes left The train (15) : [2 | 3] [3 | 1] [1 | 2] [2 | 2] [2 | 4] [4 | 5] [5 | 3] [3 | 3] [3 | 0] [0 | 1] [1 | 4] [4 | 0] [0 | 2] [2 | 5] [5 | 5] Your turn....(Enter 6 for Menu) Please enter a choice: 1 Your Dominoes (1): [1 | 1] Your turn....(Enter 6 for Menu) Please enter a choice: 4 Choosing from the boneyard... [0 | 0] The train (15): [2 | 3] [3 | 1] [1 | 2] [2 | 2] [2 | 4] [4 | 5] [5 | 3] [3 | 3] [3 | 0] [0 | 1] [1 | 4] [4 | 0] [0 | 2] [2 | 5] [5 | 5] System's turn....System drew from the bone yard System has 2 dominoes left The train (15) : [2 | 3] [3 | 1] [1 | 2] [2 | 2] [2 | 4] [4 | 5] [5 | 3] [3 | 3] [3 | 0] [0 | 1] [1 | 4] [4 | 0] [0 | 2] [2 | 5] [5 | 5] Your turn....(Enter 6 for Menu) Please enter a choice: 4 Choosing from the boneyard... [1 | 5] The train (15): [2 | 3] [3 | 1] [1 | 2] [2 | 2] [2 | 4] [4 | 5] [5 | 3] [3 | 3] [3 | 0] [0 | 1] [1 | 4] [4 | 0] [0 | 2] [2 | 5] [5 | 5] System's turn....System drew from the bone yard System has 3 dominoes left The train (15) : [2 | 3] [3 | 1] [1 | 2] [2 | 2] [2 | 4] [4 | 5] [5 | 3] [3 | 3] [3 | 0] [0 | 1] [1 | 4] [4 | 0] [0 | 2] [2 | 5] [5 | 5] Your turn....(Enter 6 for Menu) Please enter a choice: 1 Your Dominoes (3): [1 | 5] [0 | 0] [1 | 1] Your turn....(Enter 6 for Menu) Please enter a choice: 3 Enter domino values: 1 5 The train (16): [2 | 3] [3 | 1] [1 | 2] [2 | 2] [2 | 4] [4 | 5] [5 | 3] [3 | 3] [3 | 0] [0 | 1] [1 | 4] [4 | 0] [0 | 2] [2 | 5] [5 | 5] [5 | 1] System's turn....Boneyard is empty... pass System has 3 dominoes left The train (16) : [2 | 3] [3 | 1] [1 | 2] [2 | 2] [2 | 4] [4 | 5] [5 | 3] [3 | 3] [3 | 0] [0 | 1] [1 | 4] [4 | 0] [0 | 2] [2 | 5] [5 | 5] [5 | 1] Your turn....(Enter 6 for Menu) Please enter a choice: 3 Enter domino values: 1 1 The train (17): [2 | 3] [3 | 1] [1 | 2] [2 | 2] [2 | 4] [4 | 5] [5 | 3] [3 | 3] [3 | 0] [0 | 1] [1 | 4] [4 | 0] [0 | 2] [2 | 5] [5 | 5] [5 | 1] [1 | 1] System's turn....Boneyard is empty... pass System has 3 dominoes left The train (17) : [2 | 3] [3 | 1] [1 | 2] [2 | 2] [2 | 4] [4 | 5] [5 | 3] [3 | 3] [3 | 0] [0 | 1] [1 | 4] [4 | 0] [0 | 2] [2 | 5] [5 | 5] [5 | 1] [1 | 1] Your turn....(Enter 6 for Menu) Please enter a choice: 1 Your Dominoes (1): [0 | 0] Your turn....(Enter 6 for Menu) Please enter a choice: 7 Your good-bye message here [103]