introductionthis assignment aims to give you a


Introduction

This assignment aims to give you a "real world experience" that occurs far too often in the workplace. You have been hired to complete as much as possible a project that has not been fully specified at this stage. You have been given (in your mind) an impossible delivery date. There is some supporting documentation to the project. In order to fulfil your contract you must deliver the prototype program which fulfils the stated functionality by the required date.

The Task

The Good Product Software Company has hired you to complete the implementation of a prototype that is an early stage in the development of software for Online Card, Dice and Coin and Board games. The programmer who was to implement the prototype has left the company at short notice and has left behind only the source code of various Classes and some notes regarding the prototype.

The following text is that programmer's notes about the prototype and the Classes

The application will list 5 options, to choose to play either a Card game, a Dice game, a Coin game, a Board game or to exit the application. Each of the Game options will display a menu which will allow the user to choose one game from a list of possible games or cancel the selection. At the time of writing only two  Dice games and two Coin games has been specified and all other types of games have had only 1 game specified but I have been told to allow for the addition of other games in future releases of the software. A description and rules of each game are in separate documents.

GamesUI( Games User Interface) - GamesUI.cs

The GamesUI class will be the top level class and is responsible for interaction with the user.  It will need to display to the screen, a menu of choices that the user can select from and the appropriate sub-menu(s) when required.  These choices will implement each of the required functions listed below. Rules and description of each game is contained in separate documents.

Choose a Board game:

1)      Hare & Tortoise

Choose a Card Game:

1)      Twenty-One

Choose a Coin game:

1)      Simple Two-Up

2)      Complex Two-Up

Choose a Die game:

1)      Snake Eyes

2)      Ship, Captain & Crew

Low Level Classes

Have implemented the following three classes to represent a card, a coin and a die. They are all complete and that no other methods or variables need to be added to them for this project.

Card Class - Card.cs

This class represents one playing card that has a face value (Ace, King, Queen etc) and a suit value (Clubs, Diamonds, Hearts and Spades).

Coin Class - Coin.cs

This class represents a two-sided coin (heads & tails) that can be flipped.

Die Class - Die.cs

This class represents a many-sided die with each face having a distinct and unique value between 1 and the number of faces. Future dice games may have any number of faces though the minimum number of faces will be 4,

Higher Level Classes

Pack Class - Pack.cs

This class represents a deck of playing cards (52 cards - does not include Joker cards).  Should not need any more instance variables or constants.

Have implemented the following public methods in this class:

            Pack() // Constructor

     Card DealOneCard()

The following five (5) classes represent a class that plays a particular game. For each class have not yet implemented  constructors, accessors or mutators though have provided some method headings and dummy return value where required so that project compiles successfully. Probably need more private instance constants & variables in each as well as private "helper" methods.

Hare & Tortoise Class - HareTortise.cs

Plays the board game of the Hare & the Tortoise according to the rules specified in Hare and Tortoise.doc

Twenty-One Class - TwentyOne.cs

Plays the card game of Twenty-One according to the rules specified in Twenty-One Rules.doc.

Snake Eyes Class - SnakeEyes.cs

Plays the  dice game of Snake Eyes according to the rules specified in Snake Eyes Rules.do

Ship, Captain & Crew Class - Ship.c

Plays the dice game of Ship, Captain & Crew according to the rules specified in The Ship Captain and Crew game.do

Two-Up class - TwoUp.cs

Plays the coin game of Two-Up according to the rules specified in TwoUpRules.doc

At this stage not sure if I need to have separate classes to play the 2 versions described or a single class will be sufficient.

Where to Start

Become familiar with the various classes and how they interact before attempting to implement any additional functionality.

The GamesUI class should have functionality added to it incrementally, with each new function being tested as soon as it is completed. Snake Eyes and Simple Two-Up are the easiest to play. The challenge in this assignment is to complete what you can before the due date. Better to hand in a working project which does something correctly than one which does not run.

Note this assignment is not a GUI based assignment.

Sample User Interactions

You are free to change the look of the user interactions if you wish. Do not waste your time however designing a pretty screen interface if the rest of the project is not attempted. The main menu (mock-up not actual screen hot):

Welcome to Games Online

To make a selection:  Enter the number of your selection     

1.  Board Games

2.  Card Games

3.  Coin Games

4.  Dice Games

0.  Exit the program

What type of Game do you wish to play? 4

Select your game to play.     

1.   Snake Eyes

2.   Ship, Captain & Crew

0.   Cancel Selection

Which Game? 1

Let's play:

Your dice roll totalled 3 Sorry you lose

You have 0 points and I have 2.

Play again? (Y or N) N

Thanks for playing.

Press any key to continue...

Request for Solution File

Ask an Expert for Answer!!
DOT NET Programming: introductionthis assignment aims to give you a
Reference No:- TGS0206489

Expected delivery within 24 Hours