EssayGhost Assignment代写,Essay代写,网课代修,Quiz代考

EssayGhost-Essay代写,作业代写,网课代修代上,cs代写代考

一站式网课代修,论文代写

高质量的Assignment代写、Paper代写、Report代写服务

EG1hao
网课代修代上,cs代写代考
C++代做
您的位置: 主页 > 编程案例 > C++代做 >
代做C++/C:project | data structure | assignment代写 | oop – C++代做
发布时间:2021-07-25 22:56:56浏览次数:

Assigned: Saturday, October 26, 2019 Due: Friday, November 8, 2019 by midnight

I. Learner Objectives:

At the conclusion of this programming assignment, participants should be able to:

  • Design, implement and test classes in C++
  • Apply class templates in C++
  • Declare and define constructors
  • Declare and define destructors
  • Compare and contrast public and private access specifiers in C++
  • Describe what is an attribute or data member of a class
  • Describe what is a method of a class
  • Apply and implement overloaded functions
  • Distinguish between pass-by- value and pass-by- reference
  • Discuss classes versus objects
  • Implement container classes
  • Implement a queue class
  • Implement a stack class
  • Utilize an array to manage data
  • Read and write files in C++
II. Prerequisites:

Before starting this programming assignment, participants should be able to:

  • Analyze a basic set of requirements for a problem
  • Compose basic c++ language programs
  • Create basic test cases for a program
  • Apply arrays, strings, and pointers
III. Overview & Requirements:
Yu-Gi-Oh! is a trading card game where the  Objective is to defeat your opponent by
reducing their Life Points to zero.

Understanding the Cards:

Monster cards are summoned to attack your opponents Life Points and defend your own. They are usually orange (effect) or yellow (normal) in color, but there are many other colors as well. Monsters have levels, ranging from 1-12, which are indicated by the stars along the top, and a symbol in the top right corner indicating Attribute. The Attack and Defense stats are listed as ATK and DEF along the bottom.

What you will implement:

Monster Cards: ( Node Struct )

a. Name
b. Attack Points  # of points to take from life points
c. Defense Points  # of points to keep subsequent attack
d. Type  monster type gives extra points to the ATK or DEF points

Implementation :

  1. Each player can start out with a set of cards ( the deck ): a. Player adds card individually b. Player gets a set of predefined cards
  2. Players can go into battle a. Player starts out with 8000 life points b. Each Player chooses 5 cards from the deck i. Player can only choose from the top of the deck c. Coin Toss to see who goes first player 1 or player 2 d. Each player will place one card of their choosing in defense mode
e. Each player will place one card of their choosing in attack mode
f. Each player will choose which card is ACTIVE
i. If one player chooses attack and the other chooses defense
  1. New Life points = Life points – (ATK DEF) ii. If both players choose defense
  2. Cards get discarded iii. If both players choose attack
  3. One with greater ATK wins round g. After the first round i. 5 cards should be in the players hand at all times ii. two more cards can be placed in attack and defense mode iii. Cards must be activated in queue mode
  4. Battle ends when a player has no more Life Points
  5. Players can trade cards: Cards can be added and deleted from any players deck.

Example of output:

Choose an option from the following:

  1. Create Player
  2. Add Cards to Specific Player
  3. Trade Cards with Other Player
  4. Battle Other Player
Input: 4
Round 1:
Player 1 chooses Cyber Dragon in ATK
mode
Player 2 chooses Dark Magician in DEF
mode
Player 2 losses 0 life points
Player 1: 8000 LP
Player 2: 8000 LP
Round 2: ....
  • Note: Options 1 and 2 in the menu need to be run (so that there are two players with a deck of cards) before trading or battling commence.
  • You will have two classes: Stack class and Queue class.
  • The main.cpp will implement the menu above.
IV. Grading Guideline:

This assignment is worth 100 points. Your assignment will be evaluated based on a successful compilation and adherence to the program requirements. We will grade according to the following criteria:

  • Menu 10 points
  • Coding functionality (organization of code) 5 points
  • Gaming aspect 7 0 points o Adding cards to a deck 10 points o Adding to the hand 10 points o Adding to defense queue 10 points o Adding to attack queue 10 points o Life Points Calculation 10 points o Winner Decision 20 points
  • Trading Cards Portion 1 0 points
  • Quit Game 5 points
Extra Credit: implementation of the stack and queue class using a template (10 points)
V. Submitting Assignments:
  1. Must submit your assignment in a zip file through blackboard.
  2. Your project must contain at least two header files (.h files) and three C++ source files (which must be .cpp files).
  3. Your project must build properly. The most points an assignment can receive if it does not build properly is 65 out of 100.
所有的编程代写范围:essayghost为美国、加拿大、英国、澳洲的留学生提供C语言代写、代写C语言、C语言代做、代做C语言、数据库代写、代写数据库、数据库代做、代做数据库、Web作业代写、代写Web作业、Web作业代做、代做Web作业、Java代写、代写Java、Java代做、代做Java、Python代写、代写Python、Python代做、代做Python、C/C++代写、代写C/C++、C/C++代做、代做C/C++、数据结构代写、代写数据结构、数据结构代做、代做数据结构等留学生编程作业代写服务。