Write a C++ Card Game

Pågående Publicerat 7 år sedan Betalades vid leverans
Pågående Betalades vid leverans

Overview:

You are to implement a computer-based variant of the card game War. This is a two-player card game played with a standard deck of cards in which the aim of the game is to capture all cards in the deck. When one player has all 52 cards, the game is over.

Basic Play:

To begin, all 52 cards from a standard deck of cards are evenly split randomly between two players.

The game plays as follows:

• Each player turns over the top card in their deck. This is called a "Battle".

• Whichever player has the highest card claims both cards and puts them at the end of their collection. The value of the card is based on the number value, with 2 being the lowest and Ace being highest. "Picture" cards are ordered lowest to highest Jack, Queen, King, Ace.

• If both cards have the same value, "War" breaks out (detailed below)

• This continues until one player has all 52 cards, in which the game ends

War:

If the value of both cards is the same, "War" takes place. It has the following rules:

• Each player takes the top 4 cards from their deck. The 4th card is revealed. Whoever has the highest value on that 4th card claims all cards. If it is a draw again, this process is repeated.

Game Modes:

Your game should have two modes that can be chosen at the beginning of your program:

1. Versus Computer Mode - In this mode one player can play against a computer opponent

2. Simulation Mode - In this mode you simulate a complete game with no human players. At the end of the game, you must report on who won, how many "battles" and how many "Wars" occurred in the game

Functionality:

• Game set up, including getting player names, dealing cards, etc.

• Basic game play, including battles

• Implementation of "war" functionality

• Appropriate display to screen

• Implementation of simulation mode

• End game condition

Extra Functionality:

You should make some individual additions to this, however could include such features as (but is certainly not limited to):

• Changing how a draw in "war" is handled

• Making a particular type of card have special powers in a battle or war

Program Design:

You should implement your program using the following classes (as a minimum, you may include more if appropriate):

• Player class: Holds details of the player including a collection of cards, contains only aspects that relate to a "card", i.e. no data members or member functions that are not directly related to a card

• Card class: Consists of the value and suit of the card, contains only aspects that relate to a "player", i.e. no data members or member functions that are not directly related to a player

C++-programmering Datorspelsdesign

Projekt-id: #11393760

About the project

23 offerter Distansprojekt Aktivt 7 år sedan

23 frilansare har lagt bud på i genomsnitt $193 för det här jobbet

vano101

Hello. Do you need console game, correct? If yes, it's quite easy project, it's possible to complete it in day or two.

$36 AUD inom 2 dagar
(1029 omdömen)
7.5
it2051229

hi there I have done WAR game before. I would like to do this project if given the opportunity. let me know if you are interested so I can have further details. thanks.

$40 AUD inom 1 dag
(639 omdömen)
7.3
freelancerLatino

Hello, I love c&c]] since more than 21 years ago ... you can see my previous works. Also, I have master and PhD in computer science. I should be a good option. PLease, let me know if it is a console application, or gra Mer

$250 AUD inom 5 dagar
(111 omdömen)
7.3
utkarshkatiyar19

hello. i have a lot of experience in c++ programming. i can easily complete this task for you. we can have a chat. thanks

$250 AUD inom 8 dagar
(315 omdömen)
7.2
hbxfnzwpf

I am very proficient in c and c++. I have 16 years c++ developing experience now, and have worked for more than 6 years. My work is online game developing, and mainly focus on server side, using c++ under linux environ Mer

$150 AUD inom 3 dagar
(123 omdömen)
6.8
xeathprynx

Hello, i am expert in java/c/c++ and i can deliver any task in least time and least payments. The code will be well commented and well formatted for better understanding. I believe in long term relations so first che Mer

$100 AUD inom 2 dagar
(105 omdömen)
5.6
usamamw141

Hi there, I just want to say that I am new here but I can do the quality work. Give me your project to do and I will give you the perfect code with after delivery support. Feel free to inbox me now.

$30 AUD inom 3 dagar
(70 omdömen)
5.4
gabontau

I can do that. Send me a message to discuss details.

$88 AUD inom 3 dagar
(9 omdömen)
4.1
kpol4k

Hi, I'm experienced C/C++ developer working curently in Verifone company. I can implement this project for you in C++ or C++11 if you want. It should take for me no longer than 2 workings days (count from job acceptin Mer

$55 AUD inom 2 dagar
(15 omdömen)
3.9
ketenev

Hello i would like to apply for this project. I already have a C++ certification and thus i think i can handle this project.

$30 AUD inom 3 dagar
(11 omdömen)
2.6
chiguire

I have a lot of experience with projects like this. I have work a lot with C++ I'm sure I will be able to help you. Just need more information about what you need. Please contact me with more details

$50 AUD inom 3 dagar
(2 omdömen)
1.4
Musharraf4333

Hello Sir, you are required to built a computer based card game in c++. I can make this assignment of yours by using object oriented programming C++. In this case, you will ealsy get to understand the code and all the Mer

$35 AUD inom 2 dagar
(1 omdöme)
0.5
heshamahmed95

i've worked with c++ for over 3 year and i've made some simple games with c++ and SDL for gui but i've some questions first do you it with gui or just console game? would you run the game on windows or linux machine Mer

$45 AUD inom 4 dagar
(0 omdömen)
0.0
ABDRman

I have understood your requirements. I am looking forward to work with you. Timely delivery guaranteed.

$111 AUD inom 7 dagar
(0 omdömen)
0.0
KapilDevkota

I am an expert on C++ programming, which as you may know, is the most efficient of all Object Oriented Language. The game that you required a program of can be efficiently created using only a single class, but as you Mer

$66 AUD inom 5 dagar
(0 omdömen)
0.0
themtilhan

Hello first of all, I would like to clear a few things if it is alright, 1 ) "Appropriate display to screen" in this I am assuming you are talking about graphic programming but what kind of graphics you are expec Mer

$133 AUD inom 4 dagar
(0 omdömen)
0.0
ddannel

It's the first time I hear about this game. I think it's simple to impement it. I implemented yet an italian card game called "scopa".

$55 AUD inom 10 dagar
(0 omdömen)
0.0