Do you remember playing the peg game when you were a child?
Have you visited restaurants that have triangularly shaped boards lying out on the tables?
The boards have 15 holes drilled into them: 5 rows of 1, 2, 3, 4 and 5 holes
respectively, as shown below.

All of the holes are initially filled with pegs (golf tees) except one (hole zero).

A move in the peg game is a jump of one peg over an adjacent peg into
an open hole. The peg over which you jump is removed from the board. Using the board
shown above, peg 3 could jump over peg 1 and into hole number 0. Peg 1 would be removed.
The board shown below illustrates the result of jump 3 => 0.

The object of the game is to continue jumping until only one peg remains
on the board. Of course, if no adjacent pegs remain, or if adjacent pegs have no open holes
to which they can jump, no more moves can be made. In either case, when no more moves can
be made, the game is considered to be complete. Often, the game ends with more than
one peg remaining as shown below.

Ultimately, you are to answer the following questions with the correct answers or with your best guesses, given what you know about the peg game at this time. Type your reasoning describing how you arrived at your answers as a justification for your answers in your README file.
Examples of a set of winning moves and a set of losing moves are provided at the end of the handout.
If you have correctly answered all of questions above by now, without using a computer, you have analytical skills well beyond my own and I congratulate your on possessing such wonderful abilities. If you have not arrived at all the solutions, you should search for additional information and revise your initial guesses and confirm that the answers you believe are correct truly are correct. To confirm your answers, you may logically justify the answers using techniques of logic and proof, you may play the peg game on a board and verify the answers by hand, or you may simulate the peg game on the computer, confirm that the simulation is equivalent to the actual peg game, and allow the simulation to gather information that enables you to better answer the questions.
If you choose to simulate the game, you must document each of the following on your project web page:
![]() |
||||||
![]() |
![]() |
![]() |
||||
![]() |
![]() |
![]() |
||||
![]() |
![]() |
![]() |
Winner! |
![]() |
|||||
![]() |
![]() |
![]() |
|||
![]() |
![]() |
![]() |
|||
![]() |