XRay

Document Sample
XRay Powered By Docstoc
					X-Ray!              By Pearson Software Consulting
By Chip Pearson         http://www.cpearson.com
chip@cpearson.com
                                                      Learning Mode (shows targets as you play)
                                                      Trace Mode (show path traces)

                                                  Shots Fired          0

                                                      Targets          6

                                                      Marked           0

                                                  Unmarked             6


                                                  6             3          6




                  Hit

                  Reflection

     %            Path Complete
 targets as you play)
h traces)
                                      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
1    %   DO NOT ALTER THIS PAGE!!!!!!!!!!!!!!!!!!!!!
2    (
3    6              4

4    J              5

5    O              6

6    Q              7

7    R
8    S
9    X
10   [
11   ^
12   _
13   `
14   d
15   f
16   n
17   o
18   s
19   v
20   z
21   
22   
23   
24   
25   
26   
27   i
28   "
29   
30      f
31      k
32      m
58   0.921100801
28   0.025671419
46   0.721439398
17   0.021358056
22   0.622007985
16   0.412377004
20   0.602346913
40   0.881047593
21   0.679845685
 1   0.289809045
12   0.449009203
27   0.807938851
24   0.896590988
29   0.005359558
57   0.610903206
15   0.979774305
56   0.061800488
36   0.723947595
52   0.105631863
47   0.026880919
 4   0.462552928
54   0.385178727
59   0.841699779
34   0.585700185
39   0.297334135
35   0.400022091
 5   0.901855286
31    0.47925191
19   0.000649467
61   0.487080582
26    0.07544337
 9    0.58950573
25   0.159394182
43   0.849129577
14     0.8477907
 8    0.14352115
30   0.694878895
 6   0.922331322
63    0.51667769
53   0.206134515
64    0.29610548
50   0.992317607
44   0.854344813
37   0.873743785
62   0.144614944
38    0.77821414
 3   0.381130496
55   0.292245706
23   0.919952296
18   0.866429219
51   0.616950508
 2   0.010725903
13   0.878478106
45   0.051552305
60    0.66953024
48   0.873088818
41     0.2195201
49   0.961687363
42   0.096054442
 7    0.63686551
10   0.573744068
32   0.975954183
33   0.498747166
11     0.8580066

				
DOCUMENT INFO
Shared By:
Categories:
Stats:
views:19
posted:4/30/2010
language:English
pages:76