ÿþ/ *   S u m b r e r o   6   b y   3   C r o s s i n g s   a n d   V e c t o r s   d a t a  
 / /   C o p y r i g h t   2 0 0 6 ,   A . E . V e l t s t r a  
 / /   P a r t   o f   t h e   S u m b r e r o   s o l v e r  
 / /   T h i s   s c r i p t   d e f i n e s   t h e   c r o s s i n g s   a n d   v e c t o r s   b y   t h e   n a m e   a t t r i b u t e    
 / /   o f   ' a n s w e r '   a n d   ' g i v e n '   i n p u t s   o f   t h e   s u m b r e r o   f o r m .  
 / /   E m b e d d i n g   p a g e   m u s t   e m b e d   t h e   s u m b r e r o . j s   j a v a s c r i p t   b e f o r e   e m b e d d i n g   t h i s   f i l e .  
 * /  
  
 / *   V e c t o r s   a r e   l i n e s   f o r m e d   b y   t h e   t e x t   /   n u m b e r   i n p u t s   ( o n l y   ' a n s w e r ' s )   o n   t h e   f o r m .  
 / /   E a c h   V e c t o r   i s   d e f i n e d   b y   t h e   n a m e   a t t r i b u t e   o f   a   ' g i v e n '   i n p u t   o n   t h e   f o r m ,  
 / /   a n d   h o l d s   a n   a r r a y   o f   n a m e s   o f   t h o s e   ' a n s w e r '   i n p u t s   o n   t h e   f o r m ,   t h a t   f o r m   i t s   l i n e .  
 * /  
 V e c t o r s [ ' x 0 ' ]   =   n e w   A r r a y ( ' a 0 - 0 ' , ' a 0 - 1 ' , ' a 0 - 2 ' ) ;  
 V e c t o r s [ ' x 1 ' ]   =   n e w   A r r a y ( ' a 1 - 1 ' , ' a 1 - 2 ' , ' a 1 - 3 ' ) ;  
 V e c t o r s [ ' x 2 ' ]   =   n e w   A r r a y ( ' a 2 - 1 ' , ' a 2 - 2 ' , ' a 2 - 3 ' ) ;  
 V e c t o r s [ ' x 3 ' ]   =   n e w   A r r a y ( ' a 3 - 2 ' , ' a 3 - 3 ' , ' a 3 - 4 ' ) ;  
 V e c t o r s [ ' x 4 ' ]   =   n e w   A r r a y ( ' a 4 - 2 ' , ' a 4 - 3 ' , ' a 4 - 4 ' ) ;  
 V e c t o r s [ ' x 5 ' ]   =   n e w   A r r a y ( ' a 5 - 3 ' , ' a 5 - 4 ' , ' a 5 - 5 ' ) ;  
 V e c t o r s [ ' y 1 ' ]   =   n e w   A r r a y ( ' a 2 - 1 ' , ' a 1 - 1 ' , ' a 0 - 1 ' ) ;  
 V e c t o r s [ ' y 2 ' ]   =   n e w   A r r a y ( ' a 4 - 2 ' , ' a 3 - 2 ' , ' a 2 - 2 ' , ' a 1 - 2 ' , ' a 0 - 2 ' ) ;  
 V e c t o r s [ ' y 3 ' ]   =   n e w   A r r a y ( ' a 5 - 3 ' , ' a 4 - 3 ' , ' a 3 - 3 ' , ' a 2 - 3 ' , ' a 1 - 3 ' ) ;  
 V e c t o r s [ ' y 4 ' ]   =   n e w   A r r a y ( ' a 5 - 4 ' , ' a 4 - 4 ' , ' a 3 - 4 ' ) ;  
 V e c t o r s [ ' z 0 ' ]   =   n e w   A r r a y ( ' a 1 - 3 ' , ' a 0 - 2 ' ) ;  
 V e c t o r s [ ' z 1 ' ]   =   n e w   A r r a y ( ' a 3 - 4 ' , ' a 2 - 3 ' , ' a 1 - 2 ' , ' a 0 - 1 ' ) ;  
 V e c t o r s [ ' z 2 ' ]   =   n e w   A r r a y ( ' a 5 - 5 ' , ' a 4 - 4 ' , ' a 3 - 3 ' , ' a 2 - 2 ' , ' a 1 - 1 ' , ' a 0 - 0 ' ) ;  
 V e c t o r s [ ' z 3 ' ]   =   n e w   A r r a y ( ' a 5 - 4 ' , ' a 4 - 3 ' , ' a 3 - 2 ' , ' a 2 - 1 ' ) ;  
 V e c t o r s [ ' z 4 ' ]   =   n e w   A r r a y ( ' a 5 - 3 ' , ' a 4 - 2 ' ) ;  
  
 / *   C r o s s i n g s   a r e   t h e   t e x t   /   n u m b e r   i n p u t s   ( b o t h   ' a n s w e r ' s   a n d   ' g i v e n ' s )   o n   t h e   f o r m .  
 / /   E a c h   C r o s s i n g   i s   d e f i n e d   b y   t h e   n a m e   a t t r i b u t e   o f   a n   i n p u t   o n   t h e   f o r m ,  
 / /   a n d   h o l d s   a n   a r r a y   o f   t h e   n a m e s   o f   t h o s e   V e c t o r s   i n   t h e   V e c t o r s   a r r a y ,  
 / /   i n   w h i c h   l i n e   i t   p a r t i c i p a t e s .  
 * /  
 C r o s s i n g s [ ' a 0 - 0 ' ]   =   n e w   A r r a y ( ' x 0 ' , ' z 2 ' ) ;  
 C r o s s i n g s [ ' a 0 - 1 ' ]   =   n e w   A r r a y ( ' x 0 ' , ' y 1 ' , ' z 1 ' ) ;  
 C r o s s i n g s [ ' a 0 - 2 ' ]   =   n e w   A r r a y ( ' x 0 ' , ' y 2 ' , ' z 0 ' ) ;  
 C r o s s i n g s [ ' a 1 - 1 ' ]   =   n e w   A r r a y ( ' x 1 ' , ' y 1 ' , ' z 2 ' ) ;  
 C r o s s i n g s [ ' a 1 - 2 ' ]   =   n e w   A r r a y ( ' x 1 ' , ' y 2 ' , ' z 1 ' ) ;  
 C r o s s i n g s [ ' a 1 - 3 ' ]   =   n e w   A r r a y ( ' x 1 ' , ' y 3 ' , ' z 0 ' ) ;  
 C r o s s i n g s [ ' a 2 - 1 ' ]   =   n e w   A r r a y ( ' x 2 ' , ' y 1 ' , ' z 3 ' ) ;  
 C r o s s i n g s [ ' a 2 - 2 ' ]   =   n e w   A r r a y ( ' x 2 ' , ' y 2 ' , ' z 2 ' ) ;  
 C r o s s i n g s [ ' a 2 - 3 ' ]   =   n e w   A r r a y ( ' x 2 ' , ' y 3 ' , ' z 1 ' ) ;  
 C r o s s i n g s [ ' a 3 - 2 ' ]   =   n e w   A r r a y ( ' x 3 ' , ' y 2 ' , ' z 3 ' ) ;  
 C r o s s i n g s [ ' a 3 - 3 ' ]   =   n e w   A r r a y ( ' x 3 ' , ' y 3 ' , ' z 2 ' ) ;  
 C r o s s i n g s [ ' a 3 - 4 ' ]   =   n e w   A r r a y ( ' x 3 ' , ' y 4 ' , ' z 1 ' ) ;  
 C r o s s i n g s [ ' a 4 - 2 ' ]   =   n e w   A r r a y ( ' x 4 ' , ' y 2 ' , ' z 4 ' ) ;  
 C r o s s i n g s [ ' a 4 - 3 ' ]   =   n e w   A r r a y ( ' x 4 ' , ' y 3 ' , ' z 3 ' ) ;  
 C r o s s i n g s [ ' a 4 - 4 ' ]   =   n e w   A r r a y ( ' x 4 ' , ' y 4 ' , ' z 2 ' ) ;  
 C r o s s i n g s [ ' a 5 - 3 ' ]   =   n e w   A r r a y ( ' x 5 ' , ' y 3 ' , ' z 4 ' ) ;  
 C r o s s i n g s [ ' a 5 - 4 ' ]   =   n e w   A r r a y ( ' x 5 ' , ' y 4 ' , ' z 3 ' ) ;  
 C r o s s i n g s [ ' a 5 - 5 ' ]   =   n e w   A r r a y ( ' x 5 ' , ' z 2 ' ) ;  
  
 f u n c t i o n   C h e c k A l l ( )   {  
     / / C h e c k   t h e   e n t i r e   f o r m   i n   o n e   g o   ( f . i .   i n v o k e   a t   f o r m . o n s u b m i t ( ) )  
     / / O v e r r i d e s   t h e   s a m e   f u n c t i o n   i n   t h e   s u m b r e r o . j s   s c r i p t   f i l e :    
 	 / / t h a t   g e n e r i c   s c r i p t   d o e s n ' t   k n o w   t h e   f o r m   d a t a .  
  
     / / 6   c r o s s i n g s   n e e d   t o   b e   c h e c k e d   t o   c h e c k   t h e   e n t i r e   S u m b r e r o   6   b y   3   p u z z l e .  
     C h e c k C r o s s i n g ( ' a 5 - 3 ' ) ;  
     C h e c k C r o s s i n g ( ' a 4 - 4 ' ) ;  
     C h e c k C r o s s i n g ( ' a 3 - 2 ' ) ;  
     C h e c k C r o s s i n g ( ' a 2 - 3 ' ) ;  
     C h e c k C r o s s i n g ( ' a 1 - 1 ' ) ;  
     C h e c k C r o s s i n g ( ' a 0 - 2 ' ) ;  
  
     r e t u r n   f a l s e ;  
 } 
