CS 153 Data Structures I

Assignment #9

Due: 3/22/01

Purposes: to learn about programming recursively by solving a game puzzle.

Options:

  1. Write the program in 'console mode' (CS 53/74 method. Command line start. No windows.
  2. Write the program using the Dialog window approach

The Game Puzzle: a 7x7 board with 2x2 missing corners.

-
-
X
X
X
-
-
-
-
X
X
X
-
-
X
X
X
X
X
X
X
X
X
X
0
X
X
X
X
X
X
X
X
X
X
-
-
X
X
X
-
-
-
-
X
X
X
-
-

The game is played by jumping a piece (X) over an adjacent piece into an open position (0). Diagonal jumps are not allowed. The game is 'won' when only one piece remains

 

Hints:

  1. main() should
  2. bool make_jump(move_number) should