Find Jobs
Hire Freelancers

Creating a Game

max $5 USD

Closed
Posted over 19 years ago

max $5 USD

Paid on delivery
Three missionaries and three cannibles are trapped on an island with a small boat. Write a program that transfers all 6 people to shore using the boat. Be careful. The cannibles cannot outnumber the missionairies on the island, in the boat, or on shore, they will eat them and the game ends. Also if you try to put more than 3 people into the boat, it sinks and the game is over. And of course, there must be someone to row the boat in the boat. If the player tries to put more people than possible into the boat, the game ends. For example, if there are currently 3 missionairies and two cannibles on the island and the player wants to put 3 cannibles into the boat, we have problems, so end the game. For each crossing prompt the player for the # of missionairies and the number of cannibles to put into the boat. then perform the validiity checks to make sure that all is good in the south pacific. Print out messages explaining that the player won or why the player lost. void draw_status(int islandM, int islandC, int shoreM, int shoreC,int NoOfCrossings) which will display the number of missionairies and cannibals on the island and the shore as well as teh position of the boat based on the value of NoOfCrossings: even means the boat is at the island, odd means the boat is at the shore. Possilbe algorithm: setup stuff while still can play game loadboat based on to island or to shore, check for issues' if everything ok cross draw_status end_while explain why game ended ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables): a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment. b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request. 3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement). ## Platform C++ programming is what is needed to run the program.
Project ID: 3407410

About the project

6 proposals
Remote project
Active 19 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
6 freelancers are bidding on average $4 USD for this job
User Avatar
See private message.
$3.40 USD in 2 days
5.0 (126 reviews)
5.2
5.2
User Avatar
See private message.
$3.40 USD in 2 days
4.8 (43 reviews)
4.4
4.4
User Avatar
See private message.
$4.25 USD in 2 days
5.0 (29 reviews)
3.1
3.1
User Avatar
See private message.
$4.25 USD in 2 days
4.9 (4 reviews)
0.3
0.3
User Avatar
See private message.
$4.25 USD in 2 days
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$4.25 USD in 2 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
United States
0.0
0
Member since Oct 28, 2004

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.