"CHESS for ZORK ZERO (c) Copyright 1988 Infocom, Inc. All Rights Reserved." ;"used for both Plain and Construction" ;"used for both Plain and Construction" ;"if the sum of RANK and FILE is even, you're on a white square. If the sum is odd, you're on a black square." ) "AUX" PIECE) 2> 0> ) (T )> > ) ( )>) ( ) ( )>) ( ) (T )> )> ) ( >> >> )>)>> )) ;"called by NEXT-ROOM?" ) ( > > > >> )> >)> >)> >)> >)> 8> ,FILE> 1>> ,PLAIN> ; ; ) "AUX" CNT) > ) ( > ) ( >> >>> ;"as in >ROOK, GO SOUTH ONE" ; > CHARACTER, NW.NW]" CR>) (T )>) (> ) ( ) (T >)> > > >>>> ;"checks to make sure that all directions given are the same, except in the case of knights" ) ( ) (T )>)> ) ( >> ) ( > ) ( ) ( > > >> )> >> > >>> ) (T )>) ( ,WHITEBIT> ,BLACKBIT>>> )>> ) (T )> ) (T )> )> > > 8> <- .NEW-FILE 1>>> > > )> >)> >)> >)> >)> > > > > ) (T )> )> 8> <- .NEW-FILE 1>>> > > )>> >> ;"for later use, after chess piece says 'I'm off!'" )> > ;"pawn blocked by another piece" ) (.X ) ( > )> ) (> ) (T )> > ;"promote pawn to queen" ) ( > ;"promote pawn to queen" )> ) (T )> ,WINNER> )>> ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( )>> )) > ) ( .NEW-LOC> >> > >> )> 0>)>)> >> )>> ) (VAL <>)) > T) ( > >> ) (T ;"take the TAKEE" )> ;"this routine is called by a predicate"> ) OLD-LOC) ,PLAIN-LOC) (T ,CONSTRUCTION-LOC)>> 6 10 15 17 -6 -10 -15 -17> ) (T )>) ( 1 7 8 9 -1 -7 -8 -9> ) (T )>) ( 7> 0> ) ( 9> 0> ) (T )>) (T 7> 0> ) ( 9> 0> ) (T )>)>) ( > >> ) (T )>) ( > ) ( 7> 0> 9> 0>>> ) ( 7> 0> 9> 0>>> ) (T )>) ( > > ;"pawn can move two spaces on first move" ) (T )>) ( 7 9> ) (T )>) ( 8> ) (T )>) (T )>) ( > > ;"pawn can move two spaces on first move" ) (T )>) ( 7 9> ) (T )>) ( 8> ) (T )>) (T )>) (T )>> ) "AUX" (CNT 0) (TAKEE <>)) ,CONSTRUCTION-OFFSET) (T ,PLAIN-OFFSET)>>> > >> > )> )>)> > > )>> ) ( > ) (T )>> ) "AUX" (CHANGE 0)) ,NORTH-EXITS 11>>> ) ( > ) ( .CALLED-BY-EXIT-F> ;"kludge") ( )>) ( ,SE-EXITS 7>>> ) ( ,NORTH-EXITS 11> ,NORTH-EXITS 11>>> ) ( ,NE-EXITS 17>> ) ( ,EAST-EXITS 15>> ) ( ,SE-EXITS 7> ,SE-EXITS 7>>> )> ) ( ) (T )>> )> )) ;"called by NEXT-ROOM?" )> ,CONSTRUCTION> > ;"hit object with hammer" ) ( > )>> ) "AUX" (CNT 0)) >)> >)> >)> >)> ,NORTH-EXITS 11> >)> ,NE-EXITS 17> >)> ,EAST-EXITS 15> >)> ,SE-EXITS 7> >)> ) (T )> > )> > )> > )> > )> ,NORTH-EXITS 11> > )> ,NE-EXITS 17> > )> ,EAST-EXITS 15> > )> ,SE-EXITS 7> > )> )> )> ) ( 1>> 1>> )>> ) ( )>> ) "AUX" (CHANGE 0)) )> > )> 1>> 1>> ) (T > ,CONSTRUCTION)>> > > > > > ) ( .L> >> > 0>)>)> >>> ;"codes for putting items in storage in fake rooms, shared by Plain, Construction, and all five FrobozzCo Building fake rooms" > 0> > .OBJ> ) (T >)>>> > >) (T )> > ) ( 0> > .F> > ) (T >)>>)> >> > ) ( <+ .L .OFFSET>> > .RM> 0>)> >>>