Homework 4

  1. Develop an algorithm for solving the 3-peg, 4-color mastermind game. Colors may be repeated. Number of moves is worst case scenario.

    Grading: 60 or more moves is 0 points. For every move less than 60, you get one point.

  2. Develop an algorim for solving the 4-peg, 4-color mastermind game. Colors may NOT be repeared. Number of moves is worst case scenario.

    Grading: 20 or more moves is 0 points. For every move less than 20, you get 4 points.