Can anybody create this program for me and post the code on this board?
Design a program that will randomly place a treasure on an island. also, the program will randomly (each time you resart the game_ place not only the treasure but also other terains on the island; such as desert, forest, plains, mountain. you can also have special features which can be used to fine the treasure. oh, by the way, the island is surrounded by shark infested waters, if you go into the water 3 times you die.
a simple way to do this is to make a 10 x 10 island that is surrounded by water (11x11 array). use your random number generator to fill the 10 x 10 array with random numbers, leaving the edge values always the same number (water). so that the numberic array value would look something like this:
7=shark infested water
9=treasure (notice, there is only 1)
The player is place randomly on the island and must find the treasure. keep track of how many moves it takes the player to win. the player with the lowerst score is the ultimate winner. as a player moves around the island, they should use the arrow keys to move up, down, right, left. as they move, a new picture will show them what terrain they are in. what would be nice is to see what was next to their square, so they could make an intelligent decision for their next move.