Application for online game, DOT NET Programming

Assignment Help:

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...


Related Discussions:- Application for online game

Yuy, Ask queyuyuystion #Minimum 100 words accepted#

Ask queyuyuystion #Minimum 100 words accepted#

Costing, how much guys cost for small 5 pages website designing in .net?

how much guys cost for small 5 pages website designing in .net?

Explain the different services provided by dlr to clr, Explain the differen...

Explain the different services provided by DLR to CLR. The services given by DLR to CLR are used for supporting dynamic languages. These services include the following: Exp

Difference between "web farms" and "web garden", What is the difference bet...

What is the difference between "Web farms" and "Web garden"? The "Web farms" are used to have some redundancy to reduce the failures. It consists of two or more web server of t

What is the appfabric component, What is the AppFabric component? The A...

What is the AppFabric component? The AppFabric component is used to make access control and dole out messages across clouds and enterprises. It has a service-oriented architect

Explain the concept of possible validation errors, Introduction to .NET Tec...

Introduction to .NET Technology 1. Explain the following with respect to .NET Technologies: a. Web Applications b. Web Server Connections 2. Write a sample program using AS

Import columns of data into data table for data grid view, Import Columns o...

Import Columns of Data into Data Table for Data Grid View in C# and WPF Need help with a project in C# / WPF. Trying to read a csv file or text file with columns of data that wi

What are linq query expressions, What are LINQ query expressions? A LIN...

What are LINQ query expressions? A LINQ query, also known as a query expression, having of a combination of query clauses that identify the data sources for the query. It conta

Globalization, how to access global resource file using javascript

how to access global resource file using javascript

Object in dot net, What is an Object in Dot Net? This is the basic unit...

What is an Object in Dot Net? This is the basic unit of a system. An object is an entity that has identity, attributes, and behavior. The Objects are members of a class. The cl

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd