The program implements a competitive text-based game for two users. The game progresses in consecutive turns....
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
The program implements a competitive text-based game for two users. The game progresses in consecutive turns. In a turn, each user plays once by performing one or more actions, e.g. moving pieces on a board, managing assets, etc. A score is updated after each turn. After a certain number of turns (configurable by the users), one of the players wins the game. User interaction All the interaction is done via the keyboard. Users are presented with alternatives matched to specific keys, which they will have to press to pick the corresponding choice. On start, the program displays a welcome text with some instructions and a menu with choices (including "new game" and "instructions"). While in play, the game should always display the turn number, the score and the current player's name. While in play, the current player will perform the turn's actions via one or more menus. When the games finishes, the welcome screen reappears and users may play another game. The user experience, when playing the game, is fluid (to achieve this, keep the menu structure as simple and clear as possible). Code requirements - The program compiles without errors. - The program includes loops, functions and other mechanisms, as appropriate. - The code layout is clear and easy to read. - Variables and functions have meaningful names. - Whenever the code does not provide enough context, there are some relevant comments. Additional features - The game supports more than two players. - A single user can play against the computer (this will require writing a strategy for the game). The text represents a 2D board, kept in a two-dimensional array. - There is an interesting story line, e.g., multiple levels of increased difficulty. - The game also has a cooperative mode. - The program uses "clever" data structures (e.g., vectors, linked lists) to keep track of the game turns, and presents a summary of the game at the end. - All inputs are properly validated, so that the program does not crash when, for example, the user inputs a character instead of an integer. - There are other nontrivial features that enhance the gaming experience. Be aware that one or two features from the list above should be enough to get you full marks, if they are correctly implemented. The program implements a competitive text-based game for two users. The game progresses in consecutive turns. In a turn, each user plays once by performing one or more actions, e.g. moving pieces on a board, managing assets, etc. A score is updated after each turn. After a certain number of turns (configurable by the users), one of the players wins the game. User interaction All the interaction is done via the keyboard. Users are presented with alternatives matched to specific keys, which they will have to press to pick the corresponding choice. On start, the program displays a welcome text with some instructions and a menu with choices (including "new game" and "instructions"). While in play, the game should always display the turn number, the score and the current player's name. While in play, the current player will perform the turn's actions via one or more menus. When the games finishes, the welcome screen reappears and users may play another game. The user experience, when playing the game, is fluid (to achieve this, keep the menu structure as simple and clear as possible). Code requirements - The program compiles without errors. - The program includes loops, functions and other mechanisms, as appropriate. - The code layout is clear and easy to read. - Variables and functions have meaningful names. - Whenever the code does not provide enough context, there are some relevant comments. Additional features - The game supports more than two players. - A single user can play against the computer (this will require writing a strategy for the game). The text represents a 2D board, kept in a two-dimensional array. - There is an interesting story line, e.g., multiple levels of increased difficulty. - The game also has a cooperative mode. - The program uses "clever" data structures (e.g., vectors, linked lists) to keep track of the game turns, and presents a summary of the game at the end. - All inputs are properly validated, so that the program does not crash when, for example, the user inputs a character instead of an integer. - There are other nontrivial features that enhance the gaming experience. Be aware that one or two features from the list above should be enough to get you full marks, if they are correctly implemented.
Expert Answer:
Answer rating: 100% (QA)
A complete program with all the described features is beyond the scope of a single response However ... View the full answer
Related Book For
Understanding Business Ethics
ISBN: 9781506303239
3rd Edition
Authors: Peter A. Stanwick, Sarah D. Stanwick
Posted Date:
Students also viewed these operating system questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Googles ease of use and superior search results have propelled the search engine to its num- ber one status, ousting the early dominance of competitors such as WebCrawler and Infos- eek. Even later...
-
Bill and Mary are married. Mega Corporation employs them both. In 2018, Mary earned $70,000 and Bill earned $135,000, in both cases W-2 wages. How much FICA tax were they required to pay for 2018?
-
Shaun is a student who has received an academic scholarship to State University. The scholarship paid $17,400 for tuition, $2,800 for fees, and $1,100 for books. In addition, Shaun's dormitory fees...
-
Sharon, age 28, is a single parent who earns $30,000 annually as a secretary at a local university. She is the sole support of her son, age 3. Sharon is concerned about the financial well-being of...
-
Identify five types of sales reports a consumer products company might generate. Specify the purpose of such a report and who should have access.
-
The following profit payoff table was presented in Problem 1: The probabilities for the states of nature are P(s1) = 0.65, P(s2) = 0.15, and P(s3) = 0.20. a. What is the optimal decision strategy if...
-
Greetings, I have two cases with different types of responses, I would like you to collaborate with me with the solution focused on business intelligence for an e-commerce: Statement 1 The Tiloud...
-
What does the calculated data tell us about Red Dress Press, Inc.? Provide an analysis that includes comparison to industry averages as well as year to year comparison. Is Red Dress Press, Inc....
-
Samra's guardians invested money for her into a 529 College Savings Plan, which compounds annually. The growth of the savings plan per year, x , can be represented by the exponential function f ( x )...
-
Write up the following transactions in the books of J. Dunn: 2017 May 1 Started in business with cash 30,000. 2 Bought goods on time from T. Lamb 700. 3 Paid rent by cash 1,740. 4 Paid 25,000 of the...
-
Since monetary policy changes made through the fed funds rate occur with a lag, policymakers are usually more concerned with adjusting policy according to changes in the forecasted or expected...
-
These first three sections of the chapter have explained the meaning of a standard and the various different approaches to the creation of a standard. Read the sections again and satisfy yourself...
-
For the datapath from Figure 4.24, draw the logic diagram for the part of the control unit that implements just the first signal. Assume that we only need to support LW, SW, BEQ, ADD, and J (jump)...
-
Thumbtacks capital structure is shown in table below. If taxes are paid annually and Thumbtacks combined tax rate is 36 percent, determine the weighted average cost of capital. Loans Bonds Common...
-
Calculate the forecast for August using exponential smoothing method (Given: Forecast for July is 100 and a = 0.30). [Select the appropriate range in which your answer falls.] !3! Month Actual Demand...
-
a) Calculate the goodwill that was paid by Major Ltd on the acquisition of Minor Ltd. [10 marks] b) Prepare the consolidated statement of financial position for Major Ltd at 31 July 20X8. [30 marks]...
-
In 1938, a 29-year-old English stockholder was invited by a friend to visit Prague when their planned skiing trip to Switzerland was cancelled. Instead, Sir Winton visited refugee camps in...
-
Do you think Greed Is Good? Can a free market economic system survive without human greed?
-
In the past, Apple marketed that its products were made in the United States. In todays global marketplace, that is no longer the case. Almost all the products sold by Apple are produced outside of...
-
Test the overall significance of a regression model and identify the components of this test from your computer output.
-
Identify the sample.
-
Based on the strategy, what type of sampling technique will be used to identify the sample? a. Why did you choose this type of technique?
Mathematical Bioeconomics The Mathematics Of Conservation 3rd Edition - ISBN: 0470372990 - Free Book
Study smarter with the SolutionInn App