Find Jobs
Hire Freelancers

C functions for a card game

$30-5000 USD

Completed
Posted over 21 years ago

$30-5000 USD

Paid on delivery
This is an assignment to build up 5 functions for a card game. The description all the functions are given as well as the prototype. The functions that you write for this assignment will be used in subsequent assignments, so you should try and do a good job here of testing your functions to ensure that they will work properly in future assignments. This first assignment involves writing functions that you will use for writing the rest of the game. For this assignment, you are to write functions in C alone. No C++ is involved at this stage. For the functions listed below, you will need to define the following C struct. struct Card{ /*fill in this portion with appropriate members*/ }; This structure represents a playing card. Each playing card has a suit and a face value. The suits are diamonds (D), clubs (C), hearts (H) and spades (S). The face values are 2, 3, 4, 5, 6, 7, 8, 9, 10, Jack (J), Queen (Q), King (K) and Ace (A). How you choose to represent a card is entirely up to you. However, your structure must be named as above. In the game that we will be writing, the cards will have a specific ranking. The face values of the cards from lowest to highest will be: 2, 3, 4, 5, 6, 7, 8, 9, 10, Jack, Queen, King, Ace. If two cards have the same face value, the suit will determine which card has a higher value. The order of suits from lowest to highest will be: diamonds, clubs, hearts, spades. Thus, the order of the cards, from lowest to highest, will be: 2 of diamonds, 2 of clubs, 2 of hearts, 2 of spades, 3 of diamonds, ...., Ace of hearts, Ace of spades. ## 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. ## Platform Must work on Unix, Visual C++, Borland. ## Deadline information Do not use complicated statements, this is a beginner's course.
Project ID: 2870041

About the project

20 proposals
Remote project
Active 22 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$17 USD in 14 days
5.0 (43 reviews)
4.8
4.8
20 freelancers are bidding on average $19 USD for this job
User Avatar
See private message.
$17 USD in 14 days
5.0 (35 reviews)
5.0
5.0
User Avatar
See private message.
$17 USD in 14 days
4.4 (72 reviews)
5.5
5.5
User Avatar
See private message.
$25.50 USD in 14 days
4.7 (41 reviews)
4.7
4.7
User Avatar
See private message.
$12.75 USD in 14 days
5.0 (47 reviews)
4.5
4.5
User Avatar
See private message.
$8.49 USD in 14 days
4.8 (62 reviews)
4.2
4.2
User Avatar
See private message.
$8.50 USD in 14 days
5.0 (53 reviews)
3.3
3.3
User Avatar
See private message.
$21.25 USD in 14 days
5.0 (7 reviews)
2.6
2.6
User Avatar
See private message.
$6.80 USD in 14 days
4.5 (18 reviews)
2.4
2.4
User Avatar
See private message.
$12.75 USD in 14 days
5.0 (3 reviews)
1.8
1.8
User Avatar
See private message.
$12.75 USD in 14 days
4.9 (5 reviews)
1.8
1.8
User Avatar
See private message.
$34 USD in 14 days
5.0 (4 reviews)
1.3
1.3
User Avatar
See private message.
$11.05 USD in 14 days
4.9 (6 reviews)
1.1
1.1
User Avatar
See private message.
$12.75 USD in 14 days
4.0 (4 reviews)
0.9
0.9
User Avatar
See private message.
$12.75 USD in 14 days
5.0 (2 reviews)
0.9
0.9
User Avatar
See private message.
$25.50 USD in 14 days
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$17 USD in 14 days
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$51 USD in 14 days
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$34 USD in 14 days
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$12.75 USD in 14 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of CANADA
Canada
5.0
5
Member since Mar 12, 2002

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.