Homework 4, Concentration.

Short Description:

Implement the support classes for a game project.

Goals

When you finish this homework, you should have:

Formal Description

Create the code to support a game board class.

For this project, we will implement a non-templated game board. While templating is probably the way to go, I would like to keep this stage more simple. We will modify this game board in the last assignment.

In general we will be implementing a Concentration style card game. In this game, 2n cards are placed face down in a rectangular pattern. Players take turns "flipping" two cards. If the cards match, the player removes the cards, scores a point and takes another turn. The game continues until all pairs of cards are removed. In the sample implementation, there is no scoring or record of turns. If you wish, you may add this aspect to the game.

You are to implement the following classes. You should use the header files provided. You may not change these files.

The following files are also supplied

Notes

Required Files

A single tar file containing the source code and makefile for this program.

Submission

Submit the assignment to the D2L folder homework 4 by the due date.