Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1 Mandatory features (40 marks) 1.1 Game characteristics [20 marks] - The program implements a competitive text-based game for two users. - The game progresses
1 Mandatory features (40 marks) 1.1 Game characteristics [20 marks] - 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. 1.2 User interaction (10 marks] - 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). 1.3 Code requirements [10 marks] - 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. 2 Additional features (30 marks) - 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
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started