Game Development Reference
In-Depth Information
116. print('''Instructions:
117. You are the captain of the Simon, a treasure-hunting ship.
Your current mission
118. is to find the three sunken treasure chests that are
lurking in the part of the
119. ocean you are in and collect them.
120.
121. To play, enter the coordinates of the point in the ocean
you wish to drop a
122. sonar device. The sonar can find out how far away the
closest chest is to it.
123. For example, the d below marks where the device was
dropped, and the 2's
124. represent distances of 2 away from the device. The 4's
represent
125. distances of 4 away from the device.
126.
127. 444444444
128. 4 4
129. 4 22222 4
130. 4 2 2 4
131. 4 2 d 2 4
132. 4 2 2 4
133. 4 22222 4
134. 4 4
135. 444444444
136. Press enter to continue...''')
137. input()
138.
139. print('''For example, here is a treasure chest (the c)
located a distance of 2 away
140. from the sonar device (the d):
141.
142. 22222
143. c 2
144. 2 d 2
145. 2 2
146. 22222
147.
148. The point where the device was dropped will be marked with
a 2.
149.
150. The treasure chests don't move around. Sonar devices can
detect treasure
151. chests up to a distance of 9. If all chests are out of
range, the point
152. will be marked with O
153.
154. If a device is directly dropped on a treasure chest, you
have discovered
155. the location of the chest, and it will be collected. The
sonar device will
156. remain there.
157.
Search WWH ::




Custom Search