CSE 131 Module 9: Game


Before beginning any work, do a Team...Pull in your repository.


This lab is the beginning of the game we are doing this semester. The part you do in lab is meant to be fairly straightforward. You then add features to the lab for your project.


Mastermind is a logic-based board game for two players.
establishes a hidden list of colored pegs, here called the puzzle
tries to discover the puzzle by supplying a sequence of guesses
Given a puzzle p and a guess g, the codemaker provides the following feedback: A sample board showing game play appears below:
From Wikipedia

Your work for this lab

We will implement a simple form of this game, leaving embellishments for project ideas. The basic game is played with no repeated colors in the code, but we do require that you accommodate a specified number of peg colors and a specified number of holes per row in the game.

Here's all you have to do:


You must choose from the following something to do for project credit. We will add to this list as suggestions come in, but for now here are the ideas and options. The professors will create instances of these kinds of things and shoot videos to give you an idea of how they might work.

We also expect that you will want some help thinking about how to accomplish what you set out to do. Count on us and the TAs to give you advice about that!

Here are some extra videos that may be helpful in organizing your project solution:

You need choose only one of the following to receive full credit.

Submitting your work (read carefully)

Last modified 21:38:55 CST 05 February 2018
When you are done with this lab, you must be cleared by the TA to receive credit.

This demo box is for lab 9
Last name WUSTL Key Propagate?
(NOT your numeric ID) Do not propagate
lower case only
e.g. Smith j.smith

Acknowledgements and assertion of integrity

You must select one of the options below
The work submitted here was performed in accordance with this course's policy on collaboration.
On your honor, you have neither given nor received any unauthorized aid on this assignment.

However, the following TAs, students, or professors were supportive in completing this assignment.
Their help was also in accordance with course policies.

Thanks to (leave blank if appropriate):

In spite of seeking help as allowable by this course's policy on collaboration, you were unable to complete this assignment. No credit will be received for this assignment.

You would like to be contacted by an instructor to facilitate staying on track in this course.

Comments about this:

You have NOT abided by this course's policy on collaboration. No credit will be received for this assignment, but by checking this box, no academic integrity violation will be filed for this assignment.

You would like to be contacted by an intructor to faciliate staying on track in this course.

Comments about this:

TAs double check!
  • This demo box is for lab 9
  • The student has committed and pushed the work, and verified that it appears at bitbucket.
TA: Password: