X-Ray!
By Pearson Software Consulting http://www.cpearson.com
By Chip Pearson
[email protected]
TRUE
✘ ✘
Learning Mode (shows targets as you play) Trace Mode (show path traces)
TRUE
Shots Fired
0
Targets
6
Marked
0
Unmarked
6
6
Hit Reflection Path Complete
3
6
X-Ray ! How To Play X-Ray! was written by Chip Pearson and Pearson Software Consulting Services. Visit us on the web at www.cpearson.com The VBA code for X-Ray is completely unprotected. Feel free to view it and change it. X-Ray! is a simple problem solving game. Hidden in the target region of the board, the dark gray cells, are between 4 and 7 "targets". The objective is to fire "shots" from the edge cells, the light gray cells, into the target, and figure out the location of the targets based on where each shot ends up. A shot will end in one of three ways: Hit A hit occurs when the path of the shot collides with a target. Reflection A Reflection occurs when the path of the shot returns to its original cell. Exit An Exit occurs when the path of the shot exits the target area into another edge cell. Hits are indicated by a RED background in the edge cell. Reflections are indicated by a YELLOW backgroup in the EDGE CELL Exits are indicated by a pair of matching symbols in the entry and exit edge cells. There is one simple rule governing how the paths are computed. A path may never pass directly above, below, to the left, or to the right of a target cell. Instead, it will change directions. Therefore, a Hit from an edge cell may not mean that there was a direct, straight line path from the cell to the target. Instead, the path may have changed directions several times before colliding with a target. A path which exits the target grid may have taken many turns on its way between the entry and exit cells.
Simple Paths This is a simple hit. The path is direct from the entry cell (red) to the target (green)
This is a simple exit path.
It makes one turn, because it cannot travel next to the target cell (green).
This is a simpel reflection. The path must return to its original location, because it cannot turn without passing a target.
If a cell is on the edge of the target area, the cell directly next to it will be a hit, and the cells on either side of it will be reflections.
Complex Examples: This is a compound exit path. Note that it takes three turns between entering and exiting the target range.
This is a compound hit path. Note that the path makes four changes in direction before colliding with a target.
This is a compound reflection. The path changes direction twice before being reflected its original cell.
Starting A New Game
Click the New Game button to start a new game. The number of targets is determined by the value in the combo box.
Making A Shot
There are three ways to make a shot: Click the Shoot button Double click on the cell you want to shoot from. Choose Sheet from the right click menu.
Learning The Game
There are two modes to help you learn to play. Learning Mode: This mode will display the targets as green squares (like the examples). Trace Mode: This will display the path trace arrows when you make a show (like the examples) Turn off both modes to really play the game.
Marking Targets
When you think you know where a target is, select that cell in the target grid, and either choose Mark/UnMark from the right-click menu, or click the Mark/UnMark button, or double click on the cell. When you mark a target, a yellow dot will appear in the cell:
l
Winning The Game
When you have correctly marked all the targets, the GAME OVER message box will pop up. If you give up, you can click the SOLVE button to display the targets and end the game.
GAME OVER
DO NOT ALTER THIS PAGE!!!!!!!!!!!!!!!!!!!!!
1 2
(
3 4
4
J
5 6 7
6
Q R
8 9
X
10 11 12 13 14 15 16 17 18 19
n o s v
20 21
¢
22 23 24 25 26
© ª « µ
27 28 29
5
" Ù
7
30 31 32
m
1 57 62 53 51 5 33 28 17 11 9 3 32 41 61 19 46 2 48 22 16 29 50 18 26 38 42 55 8 27 54 23 14 58 36 37 31 49 6 45 10 13 59 30 35
0.98 0.84 0.39 0.27 0.77 0.94 0.34 0.16 0.34 0.47 0.27 0.22 0.45 0.5 0.6 0.09 0.85 0.92 0.31 0.55 0.81 0.75 0.92 0.98 0.1 1 0.53 0.92 0.16 0.19 0.89 0.15 0.03 0.28 0.42 0.8 0.21 0.76 0.97 0.56 0.23 0.23 0.78 0.68 0.73
44 15 21 56 25 34 4 40 64 39 24 60 20 63 7 12 52 47 43
0.37 0.77 0.59 0.29 0.08 0.13 0.1 0.83 0.05 0.08 0.92 0.05 0.61 0.84 0.21 0.8 0.73 0.36 0.83