Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I am really in need of help with this assignment, any help would be much appreciated. Thanks In this assignment, you will make a simple,
I am really in need of help with this assignment, any help would be much appreciated. Thanks
In this assignment, you will make a simple, text-based exploration game. In the game, the player will use text commands('n',s', , and 'w") to explore a simulated 2D world. The game will print a suitable message and terminate if the player reaches a special victory location or any of a number of death locations, or when the player enters the quit ('q command. For any other location, the player will be shown a description and then asked "Next? The process of receiving input from the player and responding will repeat until the game terminates. The purpose of this assignment is to ensure that you understand how to use two-dimensional arrays, including declaring types using two-dimensional arrays and passing two-dimensional arrays to functions. For Part A, you will implement a World type to represent the game world. For Part B, you will write a main function to play the game. For Part C, you will divide the program into three files (World.h, World.cpp, and Main.cpp) The World Data The world is represented by a 2-dimensional array of integers, each of which is referred to as a node The player can move in any of four directions: north, east, south, and west, but may not enter any node with a value of 0 or pass any boundary of the array. The world for Assignment 1, which is named the Blizzard World, has 24 possible legal values (numbered 0 to 23) for nodes, with the following meanings: ValueMeaning Inaccessible Death Start node Victory node Ordinary node 0 2 The following world with six (6) rows and nine (9) columns is used in this assignment: NORTHStep 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