Diff for /gforth/sokoban.fs between versions 1.6 and 1.8

version 1.6, 2003/03/09 15:16:52 version 1.8, 2007/12/31 18:40:24
Line 6 Line 6
   
 \ Gforth is free software; you can redistribute it and/or  \ Gforth is free software; you can redistribute it and/or
 \ modify it under the terms of the GNU General Public License  \ modify it under the terms of the GNU General Public License
 \ as published by the Free Software Foundation; either version 2  \ as published by the Free Software Foundation, either version 3
 \ of the License, or (at your option) any later version.  \ of the License, or (at your option) any later version.
   
 \ This program is distributed in the hope that it will be useful,  \ This program is distributed in the hope that it will be useful,
Line 15 Line 15
 \ GNU General Public License for more details.  \ GNU General Public License for more details.
   
 \ You should have received a copy of the GNU General Public License  \ You should have received a copy of the GNU General Public License
 \ along with this program; if not, write to the Free Software  \ along with this program. If not, see http://www.gnu.org/licenses/.
 \ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.  
   
 \ Contest from Rick VanNorman in comp.lang.forth  \ Contest from Rick VanNorman in comp.lang.forth
   
Line 137  Variable score     0 score !  \ total nu Line 136  Variable score     0 score !  \ total nu
         S" &* " S" .&$" r@ play-rule          S" &* " S" .&$" r@ play-rule
               IF  r> soko +!  1 rocks +! -1 score +!  EXIT  THEN                IF  r> soko +!  1 rocks +! -1 score +!  EXIT  THEN
         S" &$." S" .@*" r@ play-rule          S" &$." S" .@*" r@ play-rule
               IF  r> soko +!  1 rocks +! -1 score +!  EXIT  THEN                IF  r> soko +! -1 rocks +!  1 score +!  EXIT  THEN
         -1 moves +!  r> drop  ;          -1 moves +!  r> drop  ;
   
 1            move: soko-right  1            move: soko-right

Removed from v.1.6  
changed lines
  Added in v.1.8


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>