GOPHER HOLE II
Be a gopher-hole player's assistant.
INPUT: holes2.in
A sequence of player's views of gopher hole games, formatted as in
the output of GOPHER HOLE I. The games are not necessarily successive nor
even from the same field. None of the views will be after the player picked
a hole. For example:
+-----+
|###1 |
|#311 |
|11 |
| |
| |
+-----+
+---+
|###|
|#2#|
|###|
+---+
OUTPUT: holes2.out
The output will look the same as the input, except for the uncleared locations
next to (horizontally, vertically, or diagonally) cleared locations. These
are printed with the following notation:
A '*' is printed if it can be logically concluded that a hole
is at this location.
A '$' is printed if it can be logically concluded that a hole
is not at this location.
A '?' if no deterministic conclusion can be drawn about the
existence of a hole at this location.
For the example input, this would be:
+-----+
|*$*1 |
|*311 |
|11 |
| |
| |
+-----+
+---+
|???|
|?2?|
|???|
+---+