Game Development Reference
In-Depth Information
Figure 13-1: The first sonar device shows a ring
of possible places the treasure could be located.
Figure 13-2: Combining the rings of all three sonar
devices shows only one possible place for the treasure.
But if we have multiple sonar devices working together, we can narrow it down to an
exact place where all the rings intersect each other. (See Figure 13-2)
Sample Run
S O N A R !
Would you like to view the instructions? (yes/no)
no
1 2 3 4 5
012345678901234567890123456789012345678901234567890123456789
0 `~~~`~~~`~`~~`~~~~~`~``~~~~`~`~~~`~``~``~~````~`~```~`~~~~`` 0
1 ~`~~~```~~~~`~`~~`~``~`~~```~`~`~~`~`~~~~~~`~`````~`~~`~~~~` 1
2 `~``~``~~~`~``~`~`~``~`````~~~~~~~~~`~`~~`~``~~~~~```~~`~``` 2
Search WWH ::




Custom Search