Show Bid Request
Solitaire
Bid Request Id: 30179
|
|
|
Posted by: |
BigB4x2 (2 ratings)
(Software buyer rating 10)
|
Non-action Ratio: |
Very Good - 0.00%
|
Buyer Security Verifications: |
Good
|
Approved on: |
Oct 7, 2002 1:01:12 PM EDT
|
Bidding Closes: |
Oct 8, 2002 5:20:33 PM EDT
|
Viewed (by coders): |
105 times
|
Deadline: |
10/9/2002
TIME EXPIRED
|
|
|
|
Description:
Write a C++ program that allows the user to play a simplified version of the card game Solitaire. You do not have to provide any GUI. A simple text interface will suffice. However, please clear the screen after each move the user makes.
You will need to declare a class of type Card. At the very minimum, this class should have a constructor and three private variables -- a string variable for the card suit, a string variable for the card color (red or black) and an integer variable for the card number (1 to 13). You can add other accessor functions and operator overloads as you see fit. You will have to overload the != operator in the card class.
We will use the following terminology to describe the game (w.r.t how the cards are laid out when you play it on your computer):
The cards in the top left corner will be referred to as source denoted "s".
The four stacks (one for each suit) to its right, where the cards eventually end up will be referred to as the sink denoted "t".
The seven stacks beneath it will be referred to as workspace denoted by a number from 1 through 7.
Use the following declarations:
List< Card > source; //linked list that contains the cards in the source
Stack< Card > sink[4]; //an array of four stacks, one for each suit, for the sink
Stack< Card > workspace[7] ; //an array of 7 stacks referred to as workspace
The player can make the following moves:
ss //move a card from the source to the souce - that is go to the next card in the source list
st //move a card from the source to the appropriate stack in the sink
ij //move a card from workspace[i] to workspace[j]
//where i and j are numbers between 1 and 7;
//the possible moves are
//12,13,14,15,16,17,
//21,23,24,25,26,27,
//31,32,34,35,36,37,
//41,42,43,45,46,47,
//51,52,53,54,56,57,
//61,62,63,64,65,67,
//71,72,73,74,75,76.
it //move a card from workspace[i] to the appropriate stack in the sink
//where i is a number between 1 and 7.
si //move a card from the source to workspace[i]
//where i is a number between 1 and 7.
For each move, you should verify the validity of the move. If the move is not allowed, print an appropriate message and allow the user to continue playing. If the user finishes the game successfully, print a congratulatory message and terminate.
For extra credit (20 points) detect if the user cannot make any more va
Deliverables: 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request.
3) Complete ownership and distribution copyrights to all work purchased.
4)To include the files provided and make the entire program compatable.
Platform:
Microsoft Visual C++ Vers. 6
Must be 100% finished and received by buyer on:
Oct 9, 2002 EDT
Deadline legal notes: All times are expressed in the time zone of the site EDT (UT - 5). If the buyer omitted a time, then the deadline is 11:59:59 PM EDT on the indicated date.
Additional Files:
This bid request includes IMPORTANT additional attached files. Please download and read fully before bidding.
Remember that contacting the other party outside of the site (by email, phone, etc.) on all business projects < $500 (before the buyer's money is escrowed) is a violation of both the software buyer and seller agreements.
We monitor all site activity for such violations and can instantly expel transgressers on the spot, so we thank you in advance for your cooperation.
If you notice a violation please help out the site and report it. Thanks for your help.
|
|
Bidding/Comments:
|
All monetary amounts on the site are in United States dollars.
Rent a Coder is a closed auction, so coders can only see their own bids and comments. Buyers can view every posting made on their bid requests. |
See all rejected bids (and all comments)
Name |
Bid Amount |
Date |
Coder Rating |
|
|
This bid was accepted by the buyer!
|
$20 (USD)
|
Oct 7, 2002 2:15:14 PM EDT
|
9.83
(Excellent)
|
|
|
Hi. I researched very carefully your assignement. It is simple and straight forward.
I'd be glad to do this task for you.
I've over 6 years experience programming in C++.
I've already done poker card game.
I will follow the specifications exactly.
It can be finished in 2 days.
I will deliver commented code and help understand it if necessary.
Good luck to you in this project. Sincerely, Alex. |
|
|
|
|
|