c# 2d simple game for assignment
Budget: $10 – $30 USD
This game lets you travel to an exotic island (perhaps one in the Caribbean) …but only if you can find it. You are flying an airplane and are on your way to this paradise when the navigation system breaks down and loses part of its ability to communicate with you (no doubt due to a hardware problem). The only way to navigate now is through trial (qualified guessing) and error, accompanied by some feedback from the navigation system, which now only provides a hint of the
island’s location relative to that of each guess. A guess consists of two numbers (row and column) specifying a point on the map. When the guess is entered into the navigation system, it will tell you whether the island is
• To the East or the West of the point (guess)
• To the North or the South of the point (guess)
• If the row of the point (guess) is the same as that of the island’s location (on the same horizontal line)
• If the column of the point (guess) is the same as that of the island’s (on the same vertical line)
The trial and error will continue until you enter the coordinates that match those of the island’s location.
We want a program to simulate the situation just described. The user is initially shown a map of the area where the island is located, but, due to the faulty navigation system, only water (in the form of the symbol ~) can be seen here initially. The user determines the size of the map at the start of the game by entering the number of rows and columns. Each point on the map is identified with a row index and a column index. Here is an example of the map
0123456789
0 ~~~~~~~~~~
1 ~~~~~~~~~~
2 ~~~~~~~~~~
3 ~~~~~~~~~~
4 ~~~~~~~~~~
island’s location relative to that of each guess. A guess consists of two numbers (row and column) specifying a point on the map. When the guess is entered into the navigation system, it will tell you whether the island is
• To the East or the West of the point (guess)
• To the North or the South of the point (guess)
• If the row of the point (guess) is the same as that of the island’s location (on the same horizontal line)
• If the column of the point (guess) is the same as that of the island’s (on the same vertical line)
The trial and error will continue until you enter the coordinates that match those of the island’s location.
We want a program to simulate the situation just described. The user is initially shown a map of the area where the island is located, but, due to the faulty navigation system, only water (in the form of the symbol ~) can be seen here initially. The user determines the size of the map at the start of the game by entering the number of rows and columns. Each point on the map is identified with a row index and a column index. Here is an example of the map
0123456789
0 ~~~~~~~~~~
1 ~~~~~~~~~~
2 ~~~~~~~~~~
3 ~~~~~~~~~~
4 ~~~~~~~~~~